The code below compiles fine with the Flex 4.5.1 SDK if I remove the line:

<fx:Object label="foo"/>

but with the line in there, I get the error:

Error: Could not resolve <fx:Object> to a component implementation.

In fact, I can't seem to get the <fx:Object> tag to work anywhere. Does anyone 
know what I'm doing wrong? Here's the code:

<?xml version="1.0" encoding="utf-8"?>
<s:Application 
    xmlns:fx="http://ns.adobe.com/mxml/2009"; 
    xmlns:mx="library://ns.adobe.com/flex/mx" 
    xmlns:s="library://ns.adobe.com/flex/spark">
    <fx:Declarations>
       <fx:Array id="myArray">
         <fx:Object label="foo"/>
       </fx:Array>
    </fx:Declarations> 
</s:Application>

Reply via email to