[flexcoders] Re: Attaching component dynamically

2006-04-25 Thread flexlearner
yeah understood! thanks a lot Regards Flex Learner --- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: No, the Repeater is not a container; you will need to place a repeater object within a container (I used VBox in the sample, but any container should do). You

[flexcoders] Re: Attaching component dynamically

2006-04-24 Thread Doug Lowder
Hello, You could use a Model tag for accessing the xml within your app, and a Repeater tag to loop through the items and pass their values to your custom component. I'm assuming your component has variables for the category, notes, and date_day xml fields, so code would be something like

[flexcoders] Re: Attaching component dynamically

2006-04-24 Thread flexlearner
Cool! thanks a lot yes i have the variables in my component file and also the xml and component mxml is available to mail application I could import one instance of custom component just the information on repeater component(which in the hirarchy of container class ..am i right? ) was

[flexcoders] Re: Attaching component dynamically

2006-04-24 Thread Doug Lowder
No, the Repeater is not a container; you will need to place a repeater object within a container (I used VBox in the sample, but any container should do). You can use createClassObject() to create child objects at runtime in AS. MovieClip.attachMovie() should be there as well, although I