can u guys help me understand actionscript??, i've just learned a basic scripted movement, but i don't understand why it does differently when placed in a movieclip on the maintimeline - as opposed to just directly on the maintimeline.
Tried your code on both MC and button, but it doesn't work!
onClipEvent means it happens directly when the movie starts. Otherwise you could call it from a button:
code:
on (release) {
clip_mc._x -= (clip_mc._x-t_mc._x)*.2;
clip_mc._xscale -= 15;
if (clip_mc._x>=300) {
clip_mc._xscale += 20;
if (clip_mc._xscale>=20) {
clip_mc._xscale -= (clip_mc._xscale-t_mc._xscale)*.1;
}
}
}
yeah sorry again; i meant i put the wrong code in the post- the latter code still applies to the initial question:
when i put this code in a movieclip and the movieclip on the main time line (because i'm gonna have to mask the clip) it won't stop xscaleing.
its probably some simple script philosphy i don't understand