bettyswiffin
10-26-2004, 04:27 PM
Hi i need some info/help again with movie clips and buttons.
Basically I am creating a website and i want the following to happen:
When the user is on the homepage and clicks buttons to open up other webpages (eg History, Contact etc etc) it plays an animation in another movie clip. This animation is effectively a box that expands out to hold subnavigation for each of the individual pages. When on any of the webpages the user clicks 'home' that animation then rolls back (ie the box rolls back to reveal more of the main scene).
At the moment I have this working but need to iron out some problems. Firstly, whenever i click on any button (eg history, contact) wherever i am, it repeats the animation and so i need to somehow put in some script to check to see if the animation is already at a certain state or point and if so then tell it to not play the animation from the start? How can i do this?
Secondly, how can i do the same for the 'home' button. By this i mean if i click on the button once the animation rolls back - fine. But if i click it again it repeats it again - How can i stop this from happening as well.
Really appreciate some help on this. Cheers
Basically I am creating a website and i want the following to happen:
When the user is on the homepage and clicks buttons to open up other webpages (eg History, Contact etc etc) it plays an animation in another movie clip. This animation is effectively a box that expands out to hold subnavigation for each of the individual pages. When on any of the webpages the user clicks 'home' that animation then rolls back (ie the box rolls back to reveal more of the main scene).
At the moment I have this working but need to iron out some problems. Firstly, whenever i click on any button (eg history, contact) wherever i am, it repeats the animation and so i need to somehow put in some script to check to see if the animation is already at a certain state or point and if so then tell it to not play the animation from the start? How can i do this?
Secondly, how can i do the same for the 'home' button. By this i mean if i click on the button once the animation rolls back - fine. But if i click it again it repeats it again - How can i stop this from happening as well.
Really appreciate some help on this. Cheers