Thanks for that link...

It works now. 

Basically the only difference from your original answer was placing 
DefaultProperty inside the <mx:metadata> tag instead of a <mx:script 
> tag resolved all thr problems.

That was enough to get it work.

tks



--- In [email protected], okegbenle mayowa 
<[EMAIL PROTECTED]> wrote:
>
> 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.cf
m
> 
> 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
>


Reply via email to