all groups > macromedia flash sitedesign > april 2007 >
You're in the

macromedia flash sitedesign

group:

Flash navigation and html files


Flash navigation and html files Flashatma
4/14/2007 8:29:36 PM
macromedia flash sitedesign:
I have a Flash navigation banner. The navigation banner contains seven buttons.
Each button when clicked goes to different frames in the Flash movie. So, the
first interaction is to make the movie to go to a particular frame, which I was
able to do easily. On those frames, I also would like to load or link to HTML
page. Like frame 10 will be page1.htm, frame 18 will be page2.htm so on and so
forth. How do I link .htm files and the single navigation bar where each button
would go to a specific frame and play the frame? I don?t want to use frames in
my html docs. Is there any other solution? Please help!!

Thank you in advance.
FA

Re: Flash navigation and html files RabidGadfly
4/16/2007 12:00:00 AM
Since you're loading another page anyway, why not put the navigation bar on
every page and send a url variable to the swf letting it know which frame to go
to in the flash for that page.
<param name="movie" value="nav.swf?frame=page2">

Then look for the frame url variable in your swf and navigate to the correct
section.
Re: Flash navigation and html files Flashatma
4/17/2007 3:01:59 PM
Thank you for reply. I appreciate it. So, if I understand correctly:
I would embed the navbar.swf in all my html files. Then Each button would go
to each html pages (Like page1.htm page2.htm etc...) Then I use your code in
my html file right? Like each html file will have the following code:
<param name="movie" value="nav.swf?frame=page2">

Is that how it works. Sorry for not being able to your answer.
Thank you very much again
Re: Flash navigation and html files RabidGadfly
4/18/2007 1:54:31 AM
Yes that's right. Then in your Flash you would put
if(frame) {
gotoAndPlay(frame);
AddThis Social Bookmark Button