You can either do it this way:
onClipEvent (enterFrame) {
_x=_x+3;
_xscale=_xscale+100
_yscale=_yscale+100;
_alpha = _alpha+2;
}
or this way:
onClipEvent (enterFrame) {
_x=_x+3;
_xscale+=100;
_yscale+=100;
_alpha+=+2;
}
It’s two ways of writing code that does the same thing.
Many thanks, maximum_flash. I was missing the conditionals on the script.
On a side note, I know this animation can be done with tweening, but I am curious about when tweening should be used and when ActionScript should be used…?
me, i try and use actionScript for everything. then, there are motion tween people who would rather eat nails than script movement. i would say that the first option should be actionScript because it cuts down on file sizes and also gives you more options.