The situation is pretty simple, yet I’m feeling like a simpleton since I can’t figure it out.
I have a standard navigation menu that runs throughout a site. Each button has a simple rollover animation, taking the default state from green with blue text, to blue with white text.
How can I tell Flash what page I’m on so the current page’s button is blue by default?
Okay, say I have 10 buttons & 10 pages. If I’m on page 5, how can I send a command to the flash movie using JS to say “Make button 5’s background blue instead of the default green every other button is using”?
Okay, got it sorted out. I created 10 new scenes, one for each button, with the appropriate button on each made blue. Then I added 10 new frames on Scene 1 which called gotoAndStop(“sceneName”,1)
Then I just called window.document.submenu.GotoFrame(theFrame); from the HTML page using the body tag’s onLoad function. So if I wanted to highlight button 1, I called window.document.submenu.GotoFrame(1);
Not very elegant, but it works sweet as, and only added about 3K to the swf. Anyone have a better way to do it though?