Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controlling animation with animation in different frame

Status
Not open for further replies.

globetrotr

IS-IT--Management
Jun 3, 2002
1
US
In an effort to keep the subject line short, my description is vague-my apologies. I have created an interactive navigation bar that resides in one frame of my web page. The navigation bar controls the content that appears in my target frame. I have an additional frame that holds a header element flash animation containing several separate scenes. Ideally, I want the header element to play certain scenes based on what level the user has selected from the navigation bar. For example, if the user selects the interactive "Home" option from the navigation bar (located in my "Nav" frame), I would like the header element flash animation (located in the "Header" frame to "go and play" the Home scene). Any suggestions what Actionscript I should assign to the Home button in my Navigation bar flash animation that would allow this level of control?

Thanks
 
You would have to use javascript to get the two separate movies to "talk" to each other, and although some see this as a viable option, I personally would not be happy with it, purely because some people have JS turned off on their machines (leaving your solution high and dry).

I would be tempted to split the banner into separate SWF files, and load the appropriate HTML file for the SWF into the banner frame when the user clicks a navigation option. It's a bit slower in terms of waiting for each new SWF to download, but I think it is easier than starting to script interaction for browser document objects.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top