Writing a function for navigating a site 2004-04-14 - By marisa_antonaya
Back Hello,
I'm trying to write a function to activate the navigation (both icons and text) of a website (made 100% with Flash). Each page of the site is a scene with the same navigation scheme (and the same instance names for the buttons), and to save code I wanted to create the function on the first frame of scene 1 ("home") and then call it from the other scenes. I wrote the function, and the ActionScript checker said it was fine, but the buttons don't work, even from the "home" scene where the function originates. I'd appreciate any help with this. Thanks! I'm using MX2004 Pro, BTW.
Marisa
//NAVIGATION FUNCTION function navFunction () { logo_btn.onRelease.gotoAndStop ("home", 1); flights_btn.onRelease.gotoAndStop ("flights", 1); hotels_btn.onRelease.gotoAndStop ("hotels", 1); packages_btn.onRelease.gotoAndStop ("packages", 1); business_btn.onRelease.gotoAndStop ("business", 1); booking_btn.onRelease.gotoAndStop ("booking", 1); about_btn.onRelease.gotoAndStop ("about", 1); text_home_btn.onRelease.gotoAndStop ("home", 1); text_flights_btn.onRelease.gotoAndStop ("flights", 1); text_hotels_btn.onRelease.gotoAndStop ("hotels", 1); text_packages_btn.onRelease.gotoAndStop ("packages", 1); text_business_btn.onRelease.gotoAndStop ("business", 1); text_booking_btn.onRelease.gotoAndStop ("booking", 1); text_about_btn.onRelease.gotoAndStop ("about", 1); }
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Server geeks, take heart! If you're sick of wading through animation & graphics instruction for relevant info., then Nate Weiss' Macromedia Flash MX Professional 2004 for Server Geeks is for you. Leave designing to designers and dig into core concepts to create rich user interfaces, online advertising, and more. See www.peachpit.com for more info. Yahoo! Groups Links
<*> To visit your group on the web, go to: http://groups.yahoo.com/group/FLASHmacromedia/
<*> To unsubscribe from this group, send an email to: FLASHmacromedia-unsubscribe@(protected)
<*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
|
|