Error message 1056 and image on top of image problem
I am trying to place a button on the screen and make it spin when mouse_over (which will be one of mutiple buttons with different instance names. ) The code I wrote is putting 2 colorwheels on the screen, one on top of the other, I can see the bottom one is spinning but I can't seem to figure out why the top one is there.
But then, I get a error code message 1056 with no compile errors when I mouse over the dial:ReferenceError: Error #1056: Cannot create property rotation on builtin.as$0.MethodClosure.
at fl.transitions::Tween/setPosition()
at fl.transitions::Tween/set position()
at fl.transitions::Tween()
at Colorwheel/rotateKids()
I am pretty new at as3 so thanks for your patience! I have been trying to figure this out for days!!! I am guessing that I have to import a class, but don't know what.
here is my code
import fl.transitions.Tween;
import fl.transitions.easing.*;
import flash.events.Event;
static_mc.play();
var kids_btn = new Cwcopy_mc;
addChild(kids_btn);
kids_btn.x = 745.1;
kids_btn.y = 122.2;
kids_btn.height = 100;
kids_btn.width = 100;
kids_btn.addEventListener(MouseEvent.MOUSE_OVER, rotateKids);
function rotateKids(e:MouseEvent):void {
var spin:Tween = new Tween(rotateKids, "rotation", Strong.easeInOut, 0, 360, 5, true);
}
