Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Flash 5 and iFrames

wanting a simple button to open in an iFrame window



3:55 am on Jul 2, 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!


12:06 pm on Jul 5, 2004 (gmt 0)

10+ Year Member

not sure if it was a typo or not, but did you try 2 periods at the start of the link?

eg. "../1.html"


11:32 pm on Jul 5, 2004 (gmt 0)

10+ Year Member

welcome to WebmasterWorld doodlebee
Why don't you try posting this question in the html or javascript forums here. I bet it would be fixed in a jiffy.


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

10+ Year Member

Thanks - I will give it a try :)


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

10+ Year Member

I just realized my post was as silly as I feel now...

Featured Threads

Hot Threads This Week

Hot Threads This Month