Flash help
- Started
- Last post
- 5 Responses
- pr2
It's been years since i used flash and now i got to play with MX version while the last one i used was 5... And evan that was ages ago. Anyone can remind me how i can tell an instance named "circle" to stop while button named "press" is relesed? Man what a stupid question but hell i don't remember.
- fate_redux0
on(release){ _root.circle.stop() }
or if you're using a movieClip as a button
onClipEvent (load) {
this.onRelease=function(){
_root.circle.stop();
}
}
- pr20
what if i need to stop something inside another MC? Say MC named "bigCircle" has an instance named "circle"...?
Would
on(release){ _root.bigCircle.circle..stop() }
work???
- fate_redux0
yes.
- pr20
HUGE thanks!
- System-Idle0
or you could use:
myBtnName.onPress=function()
{
root.circle.stop() ;
}this will work with a btn or mc (providing you have named them),
also keeps ye code on the timeline, not tucked away in some mc somewhere.
(use eg code on timeline/frame)
:)