I could be wrong, but I think you are trying to specify data for a 
component in xml.  The only way I know to do this is to specify a 
property of type XML then assign it and pick it apart.  Here's a mini-
example:

Test.MXML

        <alexButton >
                <xmlData>
                        <mx:XML>
                                <node name="Barney" />
                        </mx:XML>
                </xmlData>
        </alexButton>

alexButton.as

class alexButton extends Button
{
        function init()
        {
                super.init();
                label = "foo";
        }

        var __data:XML;

        function get xmlData():XML
        {
                return __data;
        }

        function set xmlData(data:XML)
        {
                __data = data;
                invalidateProperties();
        }

        function commitProperties()
        {
                if (__data)
                {
                        trace("setting label for " + this + " " + 
__data.firstChild.nodeName);
                        label = __data.firstChild.attributes.name;
                }
        }

}

In theory you could drop your entire XML structure where my <node 
name="Barney"> is and then write more code in commitProperties to 
initialize the component.




 
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/
 


Reply via email to