RE: [flexcoders] Re: Add property to an object at run time

2008-04-22 Thread Gordon Smith
s@yahoogroups.com Subject: [flexcoders] Re: Add property to an object at run time I probably could while I haven't done that yet. The reason I was asking this question is: Let's say I want to a Timer: timer:Timer = new Timer(1000); timer.addEventListener(TimerEvent.TIMER,

[flexcoders] Re: Add property to an object at run time

2008-04-22 Thread valdhor
Couldn't you just extend the timer class and just add a new property? --- In flexcoders@yahoogroups.com, "markgoldin_2000" <[EMAIL PROTECTED]> wrote: > > I probably could while I haven't done that yet. > The reason I was asking this question is: > Let's say I want to a Timer: > timer:Timer = new

[flexcoders] Re: Add property to an object at run time

2008-04-22 Thread markgoldin_2000
I probably could while I haven't done that yet. The reason I was asking this question is: Let's say I want to a Timer: timer:Timer = new Timer(1000); timer.addEventListener(TimerEvent.TIMER, processSomething); private function processSomething(event:TimerEvent):void { // do some processing }