Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Writing a function for navigating a site

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/