spazmaster
10-08-2002, 11:44 PM
i need to publish a movie in Flash 5 but the only thing that is holding me back is a button instance name - its targetted in some actionscript.
how can i target a "button" in Flash 5? if i made it a movieclip i cant use event handlers (dammit hehe) so i thought i should use hitTest so i could target it as movieclip and still make it play a "Over" state. heres the not working as:
onClipEvent (load) {
if (hitTest(_root._xmouse, _root._ymouse, false)) {
//the button has instance name "A"
_root.A.gotoAndStop("down");
} else {
_root.A.gotoAndStop("up");
}
}
am i using the right method?
how can i target a "button" in Flash 5? if i made it a movieclip i cant use event handlers (dammit hehe) so i thought i should use hitTest so i could target it as movieclip and still make it play a "Over" state. heres the not working as:
onClipEvent (load) {
if (hitTest(_root._xmouse, _root._ymouse, false)) {
//the button has instance name "A"
_root.A.gotoAndStop("down");
} else {
_root.A.gotoAndStop("up");
}
}
am i using the right method?