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 } In order to let processSomething access anything from the process that creates Timer in a first place I have to create a bunch or vars. "visible" in processSomething function. While technically it should work but still I would prefer dealing with properties and parameters and not with vars. I was thinking to add some props. to Timer and doing event.target.newPropName to acceess them.
--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > You can use a Dictionary to associate data with the Timer. > > > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Tracy Spratt > Sent: Tuesday, April 22, 2008 10:09 AM > To: flexcoders@yahoogroups.com > Subject: RE: [flexcoders] Add property to an object at run time > > > > Most clases in AS3 do not allow this. > > Tracy > > > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of markgoldin_2000 > Sent: Tuesday, April 22, 2008 10:52 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Add property to an object at run time > > > > Can a property be added to a Flex object (Timer) at the run time? > > Thanks >