2 Replies Latest reply on Dec 3, 2009 2:57 AM by ilaria8180

    How do I access an XMLList property on creationComplete?

    gscottheath Level 1

      Hey Everyone,

       

      I'm having trouble accessing an XMLList property of a custom component in the component's creationComplete function. The component is called PropertyBox and it has two properties:

       

      [Bindable] public var title:String = new String(); [Bindable] public var config:XMLList = new XMLList();

      I added an Alert.show("Config: "+config) statement so I could see the contents of the XMLList, but it always displays a blank popup. However, if I change the alert to display the title string, it works fine.

       

      The config variable will contain a list of images that I'd like to add to the component. Is there anyway to access config in creationComplete or do I need to pass the XML in some other fashion?

       

      Thanks.