MY MOVIE WORKS, BUT I'M NOT SURE WHAT I BROKE. 1009 error says it "Cannot access a property. I'm using "if" conditions to trigger gotoAndPlay. What would be the best way to code this?
//Error #1009: Cannot access a property
stop();
//meter
var timer:Timer = new Timer(300);//1000 = 1 sec
timer.addEventListener(TimerEvent.TIMER, onTimer);
timer.start();
function onTimer(evt:TimerEvent):void {
watch.hand.rotation +=10;
//conditional argument to go to next stop-frame
if (watch.hand.rotation >= 33) {
gotoAndPlay(2);
}
}
INSTANCES
watch, cycle, hand
TIMELINE
NOTE
"It's kind of like a preloader, just something I didn't understand"