PDA

View Full Version : movie clips! grr...


Cragdo
12-07-2002, 04:39 PM
I have a MC with AS similar to this
on (rollOver) {
stop();
setProperty(_root.faux_tool, _visible, 1);
_root.faux_tool.play();
}
on (rollOut) {
play();
setProperty(_root.faux_tool, _visible, 0);
_root.faux_tool.gotoAndStop(1);
}
on(press){
gotoAndStop("in", 1);
}


now when you press it i want it to go to the specified scene but instead it goes to the first frame in the MC itself. Is there a simple way to fix this?

binkyboo
12-07-2002, 09:19 PM
Target the maintimeline first and then gotoAndStop.

on (rollOver) {
stop();
setProperty(_root.faux_tool, _visible, 1);
_root.faux_tool.play();
}
on (rollOut) {
play();
setProperty(_root.faux_tool, _visible, 0);
_root.faux_tool.gotoAndStop(1);
}
on (press) {
with (_root) {
gotoAndStop("in", 1);
}
}