Forum Moderators: open

Message Too Old, No Replies

Flash5 script question

wanting a simple button to open in an iFrame window

         

doodlebee

2:07 pm on Jul 6, 2004 (gmt 0)

10+ Year Member


*newbie warning here*
I just wanted to say that I am new with the Flash stuff, and that I've never been very good at writing my own javascript. So we're looking for trouble, anyway!

I have a neat scroll menu thing going on - basically it's thumbnail images that scroll across the top of a page. The file is "About.html", and the .SWF file is of the same name, and embedded in the html page. Below the embedded section, on the same page, is an iFrame window named "bottom".

In the page header, I have a small javascript:

function showiframe (winurl, winname){
window = window.open.iframe(winurl, winname);
}

In the flash file, when you click on the first thumbnail, ideally, it would open "1.html" in the iFrame. The script I have for the button is as such:

button.onRelease = function(){
getURL("javascript:showiframe('./1.html', 'bottom')
}

For the record, the .SWF file is located in a sub-folder - which is the reason for the "./1.html", as "1.html" is in the folder above the flash file.

Anyway, this isn't working. Anyone have any ideas of how I can make this function properly? It seems like such a simple thing to do, but it's just not working. Murphy's Law and all, you know.

Thanks in advance!

korkus2000

3:10 pm on Jul 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Did you find an answer to this? Also try ../ infront of the link instead of ./. If you give it an absolute value of [example.com...] does it work?