How to make instance of mxml and pass parameters?
- by toshe
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!