PDA

View Full Version : on(press)if..... prob


Sonic_Mush
12-12-2002, 05:39 PM
on (press){if ("chex"_currentframe == 2)
{ gotoAndStop(6);
}else{
gotoAndStop(5);} }

chex is an mov clip on same layer. i tried if(Target (chex)_current...

its just ment to chex if uve typed th password b4.
any help is appriciated

tg
12-12-2002, 07:24 PM
try:

on (press){
if (chex._currentframe == 2){
//this will send current timeline to frame 6
gotoAndStop(6);
// or do you want chex to go to frame 6?
chex.gotoAndStop(6);//??
}else{
//this will send current timeline to frame 5
gotoAndStop(5);
// or do you want chex to go to frame 5?
chex.gotoAndStop(5);//??
}
}

Sonic_Mush
12-12-2002, 08:57 PM
thanks, i changed fla a bit so ive had to adapt ur script to
on(press)
{ if(_root.chex._currentframe==2){
_root.gotoAndStop(6);
}else{
_root.gotoAndStop(5);
}
}

still thanxs alot i couldnt 'ave done it without ya' :)