Hi,
I am a new player of ActionScript 3 in Flash CS3 professional version. I don't know why the ActionScript I wrote, it didn't work while I published it. Would you please tell me what was it wrong? Basically I just made a mcRectangle as a movie clip in the library and drop three rectangles with different sizes and named them:rectangle1_mc.rectangle2_mc,rectangle3_mc for their instance names.
Here is the ActionScript3 code:
function moveRectangle(rectangle:MovieClip, movement:Number, rotationAmt:Number):void
{
rectangle._y -= movement;
rectangle._rotation += rotationAmt;
}
moveRectangle(rectangle1_mc, 150, 45);
moveRectangle(rectangle2_mc, 250, 90);
moveRectangle(rectangle3_mc. 50, 180);
Any helps would be much appreciate it!