[flexcoders] Set attributes and methods of dynamically added controls

2008-07-19 Thread daddyo_buckeye
I'm trying to add a number of colorpickers and textareas to my app dynamically. Each item needs a separate id, and the colorpickers need to call an open() and change() method and pass the textarea id as a parameter along with the event. I'm a little baffled on how to set the methods, but my

Re: [flexcoders] Set attributes and methods of dynamically added controls

2008-07-19 Thread shaun
daddyo_buckeye wrote: I'm trying to add a number of colorpickers and textareas to my app dynamically. Each item needs a separate id, and the colorpickers need to call an open() and change() method and pass the textarea id as a parameter along with the event. I'm a little baffled on how

Re: [flexcoders] Set attributes and methods of dynamically added controls

2008-07-19 Thread shaun
shaun wrote: daddyo_buckeye wrote: [snip] Any thoughts on how I can accomplish this? As a guess.. ssPicker.open = openEvt; ssPicker.change = changeColor; Whoops. Scrap that. As Amy said, it should be using addEventListener.. Getting languages mixed up... :-/ lookup[ssPicker.id] =