Forum Moderators: open

Message Too Old, No Replies

Linking a Flash button to Frameset in Website

Flash & Dreamweaver MX 2004

         

angeerb

11:43 pm on Jan 6, 2005 (gmt 0)

10+ Year Member



Hi, I am fairly new to flash and javascript. I am working with a website that uses frames - the top, left and mainframe. The top and left are both used for navigation and the main is where the results are displayed. I have designed a menu file in flash for the left frame. Upon clicking a button I need the result to show in the mainframe. We currently use an index file that defines the frameset and links to a javascript file that outlines how the current menu should work and function. Right now, wherever you are in our site the url always displays: [mysite.com....] So, in Flash using getURL, I am unsure what to put as the url. For ex.: [mysite.com...] displays only the products page, without the top and left frames. I have the following script on my home button right now:
on (release) {
getURL("http://www.mysite.com/html/home.html", "_parent");
}
I recieve only home.html. If I change parent to mainFrame, which is the name of the main frame in js, I get the same result. Only the home page displays in a new window without the top & left navigation frames.
I hope I explained this correctly.
I am grateful for any help you can offer.
Thanks,
angee

smokeyb

12:12 am on Jan 7, 2005 (gmt 0)

10+ Year Member



Welcome to WebmasterWorld angeerb
Have you tried a local link - on (release) {
getURL(html/home.html", "mainFrame");
}
Worth a try

angeerb

4:13 pm on Jan 7, 2005 (gmt 0)

10+ Year Member



Thanks for the quick response. I tried your idea. It did not work at first, but then I took the html/ out and just referenced the home.html and "Presto!" I also put the fla file in the html folder because Dreamweaver was referencing it as being elsewhere. Does that make a difference, I mean does the fla file have to be uploaded with the swf file? I'll probably figure it out. Thanks again. This site ROCKS!
angee

rocknbil

6:37 pm on Jan 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No, .fla = working and .swf = optimized movie.

The only other files you'd ever have to upload are if you're importing external data into your movie.