homepage Welcome to WebmasterWorld Guest from 50.17.107.233
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Website
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
Flash 5 and iFrames
wanting a simple button to open in an iFrame window
doodlebee




msg:1565641
 3:55 am on Jul 2, 2004 (gmt 0)

*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!

 

winstun




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

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

eg. "../1.html"

smokeyb




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

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.

doodlebee




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

Thanks - I will give it a try :)

winstun




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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved