Ok, now i get.what u need is a template. this article will solve that http://weblogs.macromedia.com/pent/archives/2006/03/component_templ.cfm
MayorBrain --- okegbenle mayowa <[EMAIL PROTECTED]> wrote: > you can define a DefaultProperty on a mxml component > by putting the metatag in a script tag. > eg > //this is MyPanel > <?xml version="1.0" encoding="utf-8"?> > <mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml"> > <mx:Script> > <![CDATA[ > [DefaultProperty(label")] > ]]> > </mx:Script> > </mx:Panel> > > so in your application u have > <comps:MyPanel>register</comps:MyPanel> > > this works fine since label is now the default > property in your custom panel control. > > Hope that helped. > > MayorBrain > > --- reflexactions <[EMAIL PROTECTED]> wrote: > > > Is it possible to define a DefaultProperty on an > > mxml component or do I > > need to turn it into an AS class before I can > define > > that? > > > > tks > > > > > > > > > ____________________________________________________________________________________ > Never miss a thing. Make Yahoo your home page. > http://www.yahoo.com/r/hs > ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
