?
Solved

**Urgent** Navigation

Posted on 2004-10-13
7
Medium Priority
?
204 Views
Last Modified: 2010-04-03
When the user clicks a link from the navigation, it will load a movie into the STAGE, to the right of the NAVIGATION.  Once the movie is done playing, a button will appear in the movie that will say " Click here to play the next section".  When/if the user clicks that button, it will UNLOAD the current movie and then LOAD the new movie.  But it also has to HIGHLIGHT the next link in the NAVIGATION, this is the part that I am stuck on.

All of my code is on the individual buttons that are within a few MC's, I am assigning a GLOBAL VARIABLE.  If anyone knows of a different way to accomplish this, I am all ears.  

Also if you have any other questions, please psot them and I will respond ASAP, (usually within minutes).


http://www.jasonkoscho.com

Thanks
MTB007
0
Comment
Question by:mtb007
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 4

Expert Comment

by:onFocus
ID: 12302431
Hello!
I think that you should give instance names for your movieClips:

In test2.fla:
For Navigation BackgroundMOV give instance name: nav_mc
For Inner Animation MOV give instance name: inner_mc

Open test.fla
write the following script for your Next button
on(release){
      _parent.nav_mc.inner_mc.navBTN.gotoAndStop("navOff");
      _parent.nav_mc.inner_mc.tipsBTN.gotoAndStop("tipsOn");
}

0
 
LVL 1

Author Comment

by:mtb007
ID: 12318757
The problem with doing that is the Rollover State.  If I control it this way, when the button is in the ON STATE, and then you rollvoer it, it will automatically go to the ROLLOFF STATE.  Does this make sence?  
0
 
LVL 4

Accepted Solution

by:
onFocus earned 2000 total points
ID: 12321747
Hi
You should use _root instead _global for your currentStep variable.
So:
1. For your Navigation button:
on (rollOut) {
        //if(_global.currentStep!=1)_parent.navBTN.gotoAndPlay("navOff");
      if(_root.currentStep!=1)_parent.navBTN.gotoAndPlay("navOff");
}
on (release) {
      _root.currentStep=1;
      //_global.currentStep=1;
      ...
}


2. For your Tips&tricks button:
on (rollOut) {
        //if(_global.currentStep!=2)_parent.tipsBTN.gotoAndPlay("tipsOff");
      if(_root.currentStep!=2)_parent.tipsBTN.gotoAndPlay("tipsOff");      
}
on (release) {
        //_global.currentStep=2;
      _root.currentStep=2;
      ...
}

3. The same for Help button

4. Next button in Test.fla:
on(release){
      _parent.nav_mc.inner_mc.navBTN.gotoAndStop("navOff");
      _parent.nav_mc.inner_mc.tipsBTN.gotoAndStop("tipsOn");
      _root.currentStep=2;
}
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 1

Author Comment

by:mtb007
ID: 12402773
I tried that, and it does the same thing.  It will load the next movie, but the link state does not change. It will only change when you roll over it.  It then resets and shows the correct state.
0
 
LVL 4

Expert Comment

by:onFocus
ID: 12425691
I don't know why it doesn't work for you.
With the above script I haven't problems with the over state of buttons.
If you want download my version:

www.venomgun.hit.bg/navigation_02.zip
0
 
LVL 1

Author Comment

by:mtb007
ID: 12426025
Yeah, im not sure what is different.  I looked at what you have and it is EXACTLY what i have.  Im going to play around with it tongiht.  Ill get back to you on it though.

Thanks
Again.
0
 
LVL 1

Author Comment

by:mtb007
ID: 12886525
Sorry it took so long, I forgot about this. ;) Thanks!
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses
Course of the Month9 days, 19 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question