hi
i am new to kirupa and i am trying to learn ActionScript,
i tried a tutorial and the code is
onClipEvent (load) {
var scale = 1;
_xscale = _yscale=1;
_rotation = Math.random()*360;
}
onClipEvent (enterFrame) {
scale += 5;
if (scale>100) {
scale = 1;
_rotation = Math.random()*360;
}
_xscale = _yscale= scale;
}
the code works but i did not understand why the code must have:
_xscale = _yscale= scale;
in the onClipEvent (enterFrame) section
also why i have to write the:
_rotation = Math.random()*360;
in the IF statment
thanks for your help