I can't get my custom component to show. Do I need to import it first somehow like you would do with a normal component? It says "There is no property with the name 'customcomponent'". Any ideas?
On Thu, 24 Mar 2005 18:51:33 +0530, Manish Jethani <[EMAIL PROTECTED]> wrote: > On Wed, 23 Mar 2005 15:17:15 -0800, Jack Waknitz <[EMAIL PROTECTED]> wrote: > > > I am trying to figure out how to attach a custom component to an > > application using actionscript. I'm using a repeater with a function > > on the repeat event. Inside that function what would I do to create > > the custom component that I have? .mxml file using mxml. > > Call createChild() on the container that you want to add the component > instance to. The first argument to createChild() is the name of the > custom component. > > --- CustomComponent.mxml --- > <mx:VBox> > .... > > --- index.mxml --- > createChild(CustomComponent, ...); > > 'for' loop vs. Repeater: If you're doing condition checks on the > parsed XML, I think a 'for' loop is the right way to do it, as it > gives you maximum flexibility. > > Manish > > Yahoo! Groups Sponsor > ADVERTISEMENT > > ________________________________ > Yahoo! Groups Links > > To visit your group on the web, go to: > http://groups.yahoo.com/group/flexcoders/ > > To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- [ Jack ] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

