Hey Kirupa folks! I’ve recently been doing some renovation work to my personal website, and have run into a minor problem that I just can’t seem to figure out. The website is structured via a bunch of external .swfs that get loaded and unloaded into each other. All of the .swf’s were Flash 7 files, but I’ve been trying to upgrade them to Flash 8. Here’s my dilemma:
I have an art gallery on my site that has a .swf associated with each picture (each .swf is a thumbnail). I was making use of a Javascript function embedded in Flash code to open a new Internet browser window when one of these .swf’s was clicked on. HOWEVER, I’ve noticed that the function ONLY works for Flash 7 or lower. It’s extremely bizarre. Now that I’ve upgraded to Flash 8, it just doesn’t work anymore.
Here is how I’ve structured the website and the thumbnails: There’s one main .swf (for the site) that has the art page loaded into it. Once the art page .swf is loaded, the thumbnails get loaded into the art page. So the thumbnails are 2 levels deep. Now, the Javascript function was embedded into the timeline of the MAIN .swf that has everything in it. So essentially, it’s in the root timeline of the entire thing. So in each thumbnail, I was having to do like a _root._root kind of thing to access it.
First of all, I want to know why the function isn’t working now that I’ve upgraded the files to Flash 8, but I also want to know if there’s a better way to do these pop-up windows in Flash. I’d like to put the code right on the thumbnail buttons if I can.
Also, I was wondering if there’s anything special I need to do to my security settings in Flash to preview pop-up windows locally. I downloaded a tutorial off of kirupa.com from the following address:
http://www.kirupa.com/developer/fla…opup_window.htm
…and noticed that the pop-up window for that tutorial didn’t work on my computer (but it worked on the site).
Sorry for that long message. Thanks guys! =)