Couldn't you just extend the timer class and just add a new property?
--- In [email protected], "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 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 [email protected], "Alex Harui" <aharui@> wrote: > > > > You can use a Dictionary to associate data with the Timer. > > > > > > > > ________________________________ > > > > From: [email protected] > [mailto:[EMAIL PROTECTED] On > > Behalf Of Tracy Spratt > > Sent: Tuesday, April 22, 2008 10:09 AM > > To: [email protected] > > Subject: RE: [flexcoders] Add property to an object at run time > > > > > > > > Most clases in AS3 do not allow this. > > > > Tracy > > > > > > > > ________________________________ > > > > From: [email protected] > [mailto:[EMAIL PROTECTED] On > > Behalf Of markgoldin_2000 > > Sent: Tuesday, April 22, 2008 10:52 AM > > To: [email protected] > > 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 > > >

