A Flash Developer Resource Site

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    I am building a tabbed navigation system. There will be a total of 4 tabs when finished. All start in an "up" position. When you click a tab, it slides downward. So now there is one tab down and 3 up. When you click on one of the tabs still in the up position at this point, I want the one that is down to go to its up position while the tab that was just clicked slides to the down state. Therefore, only one tab can be in the down state at any one time. Also, the MCs are not set up as one frame is up, one is down. The down state is a 5 frame motion tween and so is the up state. All MCs are on the main timeline. If anyone knows how to check for condition from one MC to another, please HELP!

  2. #2
    Senior Moderator
    Join Date
    Apr 2000
    Location
    Sheffield, UK
    Posts
    3,881
    all you have to do is keep track of the movieclip which is in the down position, do this by specifiying the movieclip name which is currently in the down postion, if you are using buttons to move between up and down states then simpy do:

    on(press){
    if(_root.lastpressed != null){
    _root[_root.lastpressed].gotoAndStop("up")
    }
    _root.lastpressed=_name
    gotoAndStop("down")
    }

    Hope that helps!

  3. #3
    Thanks for the help Guru. I really appreciate it. Once I made a slight modification to the script it works perfectly. Thanks again!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts




Click Here to Expand Forum to Full Width


HTML5 Development Center