lorenz
09-08-2005, 09:17 AM
Hi guys,
I'm new here and rather new to Flash AS as well, so here we go.
I am setting up a page with 5 movie clips as the main navigation. Each movie clip has an animation of a page folding into view. At the advice of a teacher, when the page is open, I have a variable saying: myPosition="open" and when it is closed, myPosition="closed".
This is because when another MC is "open" (by pressing the necessary nav button), the other MCs should close to get out of the way.
I've tried using this script on a button:
on(press){
if(_root.instancename.myPosition="open"){
_root.instancename.play();
}
The thing is, the button doesn't seem to recognise the "open" or "closed" states of the MC and just plays them regardless.
I need to be able to say to a movie clip (in plain English): When you open, make sure the other movie clips will close (if they happen to be open).
I'd really appreciate some help here.
Thanks guys,
L.
I'm new here and rather new to Flash AS as well, so here we go.
I am setting up a page with 5 movie clips as the main navigation. Each movie clip has an animation of a page folding into view. At the advice of a teacher, when the page is open, I have a variable saying: myPosition="open" and when it is closed, myPosition="closed".
This is because when another MC is "open" (by pressing the necessary nav button), the other MCs should close to get out of the way.
I've tried using this script on a button:
on(press){
if(_root.instancename.myPosition="open"){
_root.instancename.play();
}
The thing is, the button doesn't seem to recognise the "open" or "closed" states of the MC and just plays them regardless.
I need to be able to say to a movie clip (in plain English): When you open, make sure the other movie clips will close (if they happen to be open).
I'd really appreciate some help here.
Thanks guys,
L.