Hi,

First time posting, thanks in advance for any help.

My error is a simple one, but i am not sure why it is happening:

Here is my MXML:

<?xml version="1.0"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>
        <mx:Panel title="My First Flex App">
                <mx:Label text="Coffee Blends"/>
                <mx:Array id="modelData">
                        <mx:Object>
                                <label>foo1</label>
                        <data>data1</data>
                        </mx:Object>
                </mx:Array>
        </mx:Panel>
</mx:Application>

Error i am getting is:

Error: Could not resolve <label> to a Component

<label>foo1</label>
<data>data1</data>

I am guessing that the compiler is not recognising the Array object -
and therefore label and data are invalid.

The MXML worked fine until i put the mx:Array in there.

I am on a mac, using TextMate and Flex 2.0.

Regards, Sam

Reply via email to