How to make instance of mxml and pass parameters?

Posted by toshe on Stack Overflow See other posts from Stack Overflow or by toshe
Published on 2011-01-11T08:00:44Z Indexed on 2011/01/12 4:53 UTC
Read the original article Hit count: 183

i want to create instance of mxml (in my case EventList) and pass parameters. My Event List is a list of panels so I want to pass parameters and generate dynamically n number of panels (n-parameter to pass). I have the main app where I have toggle button bar when I click on the first I want for example to generate 3 panels (n=3) on the second button 20 panels (n=20) etc. How can I do this? How can I pass n and what is the best way to show the list? I whant to generate the list when I click on the toggle button!

© Stack Overflow or respective owner

Related posts about flex

Related posts about dynamically-generated