thivy
May 28th, 2009, 06:11 AM
Hey
I am trying to duplicate a flex component at run time.
For example if i have this
<mx:Button label="btn" id="btn" click="handleClick(event)"/>
i should be able to call a function called DuplicateComponent() and it should return me a UI component thts exactly same as above button including the event listeners with it.
Can some one help me please??
So far i tried all these methods but nothing works with UIcomponents
http://blog.comtaste.com/2007/10/improv ... _copy.html
http://blog.flexexamples.com/2008/08/28 ... script-30/
http://livedocs.adobe.com/flex/3/html/h ... ce_06.html
http://kb2.adobe.com/cps/000/45fc6cf2.html
Thanks
I am trying to duplicate a flex component at run time.
For example if i have this
<mx:Button label="btn" id="btn" click="handleClick(event)"/>
i should be able to call a function called DuplicateComponent() and it should return me a UI component thts exactly same as above button including the event listeners with it.
Can some one help me please??
So far i tried all these methods but nothing works with UIcomponents
http://blog.comtaste.com/2007/10/improv ... _copy.html
http://blog.flexexamples.com/2008/08/28 ... script-30/
http://livedocs.adobe.com/flex/3/html/h ... ce_06.html
http://kb2.adobe.com/cps/000/45fc6cf2.html
Thanks