CODE
var count:Number = 0;
trace(count);
function countUp(e:Event) {
count++;
trace(count);
}
setInterval(countUp, 2000);
trace("bottom");
I'm converting from AS2 > AS3 a lower-third graphic for TV that dynamically pulls text via XML . It's for a school board meeting video broadcast. The XML text is meeting agenda subject line and subject descrption from a 3rd party program. No troubles here.
problem is I used setInterval in AS2 to refresh the dynamic text fields.
Not having luck out of the gates with setInterval in AS3, so I am trying to create the simple code attached to see what I'm missing. The error in the output panel is:
---------
0
bottom
ArgumentError: Error #1063: Argument count mismatch on Untitled_fla::MainTimeline/countUp(). Expected 1, got 0.
at Function/http://adobe.com/AS3/2006/builtin::apply()
at <anonymous>()
at SetIntervalTimer/onTimer()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
ArgumentError: Error #1063: Argument count mismatch on Untitled_fla::MainTimeline/countUp(). Expected 1, got 0.
at Function/http://adobe.com/AS3/2006/builtin::apply()
at <anonymous>()
at SetIntervalTimer/onTimer()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
--------
The ArgumentError line continues to repeat until I close the movie.
What am I missing on the "count mismatch" stuff?
I picked up AS2 in '06, and lucky for me

everything changed to AS3 right when I left school. The transition to AS3 has been annoyingly painful to say the least, so be kind as you pick apart my not so optimized and most probably worst practice coding attempt.
I'm a video guru and knew nothing of OOP before starting AS2. Any suggestions are greatly appreciated.
Jeff
Mod edit - Please