Thursday, June 28, 2012

[Action Script] how do i put a timer in properly? June,2012

I 've been away from Flash Prof. for quite a bit of time?

the lesson (that was ..seemed great;is great.)taught how to make a Timer-
var myTimer:Timer = new Timer(8000); // 1 second
myTimer.addEventListener(TimerEvent.TIMER, runMany);
myTimer.start();

function runMany(event:TimerEvent):void {
trace("runMany() called @ " + getTimer() + " ms");

say, i want to put this in Frame 1 Actions:how would i key it??

I tried copy & Paste into Frame 1 Actions(this)
I got - Expecting RightBrace before end of program?? Any Suggestions??
how do i put a timer in properly?

Related Post



0 comments: