Newbie AS3 code

G’day all,

and to show just how new to AS3 I am, can someone tell me why the following code doesn’t rotate box2_mc?

2layers - 1 frame
top layer - actions
bottom layer - box2_mc - instance of “box”

*stage.addEventListener(Event.ENTER_FRAME, flip);

function flip(event:Event):void {
box2_mc.rotation += 45;
}

*Thanks for your patience.