Hello guys,

I think this is my first post here so hello hello!

Anyway, can you please help me understand why the DefaultProperty metadata 
doesn't always work?

For example:

i have the following:

[mxml]
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml";>
    <mx:Metadata>
        [DefaultProperty("test")]
    </mx:Metadata>

    <mx:Script>
        <![CDATA[
            public function set test(value:*):void{ trace (value); }
        ]]>
    </mx:Script>
</mx:Canvas>

and on a different mxml i have the following:

<?xml version="1.0" encoding="utf-8"?>
<local:MyOtherFile xmlns:local="temp.*" 
        xmlns:mx="http://www.adobe.com/2006/mxml";>

        <mx:Label text="dfsdf" />
        
</local:MyOtherFile>

It just doesn't work but if i do the following:

<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:local="temp.*" 
        xmlns:mx="http://www.adobe.com/2006/mxml";>

        <local:MyOtherFile>
                <mx:Label text="dfsdf" />
        </local:MyOtherFile>
        
</mx:Canvas>

It does!

Why is that?

Thanks!

|| fernandoflórez - [EMAIL PROTECTED] 
|| funcitoncommunications - justcommunicate 
|| telf: 719.6500 - http://www.funciton.com

Reply via email to