|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello
I have a button (called 'drawer') which is in a movie called 'btm1' when it is rolled over it plays the 'btm1' movie to frame 15 where it stops, when the button is rolled out of it plays calls a movie clip (called 'control') which is a simple 3frame loop telling the btm1 movie to play the previous frame over and over, like a rewind. this is all fine. I now have 2 buttons - a sub menu (they are called 'his' and 'pro') that appears within the hit area of the 'btm1' movie. I do not want the btm1 movie to follow through with its rollout event when the sub menu buttons are rolled over. I assume this requires an if statement but i have never used these before in A.Script can somebody help pls? the chain (using instance name {symbol type}): scene1 > btm1 {movie} > drawer {button} > pro {button} scene1 > btm1 {movie} > drawer {button} > his {button} scene1 > btm1 {movie} > control {movie} It may be neccesary to jump the 'pro' and 'his' out of the drawer button and place them in the btm1 movie. my code so far: Code:
on (rollOver) {
_root.btm1.control.gotoAndStop(1);
_root.btm1.gotoAndPlay(2);
}
on (rollOut) {
_root.btm1.control.gotoAndPlay(2);
}
all references to 'control' are the rewind loop, _root.btm1.prevFrame(); my guess at the if statement would be: Code:
on (rollOver) {
_root.btm1.control.gotoAndStop(1);
_root.btm1.gotoAndPlay(2);
}
if rollover is not _root.btm1.drawer.his 'his' or '_root.btm1.drawer.pro' then
on (rollOut) {
_root.btm1.control.gotoAndPlay(2);
}
end if
cheers P Last edited by do me a favour : August 12th, 2003 at 01:19 PM. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > if statement in flash????? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|