Solved

**Urgent** Navigation

Posted on 2004-10-13
7
178 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
  • 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 500 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
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
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.

832 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