|
-
Undefined property Timer ??
This is the code (simple):
var timer:Timer = new Timer(2000, 1);
timer.addEventListener(TimerEvent.Timer, onTimer);
timer.start();
function onTimer(evt:TimerEvent):void {
r1.filters = sampleFilters; }
This is the error:
"access of possibly undefined property Timer through a reference with statis type"
And I do did import flash.events.TimerEvent; --- am I supposed to import something else? Is this the problem?
TIA
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|