[Arp] Flex component states
Peter Hall
peter at peterjoel.co.uk
Mon Jan 8 16:38:39 PST 2007
Yes, you can have states inside custom components. And I know exactly what
you have done...
<ns:MyComponent xmlns:ns="my.package.*"
xmlns:mx="http://www.adobe.com/2006/mxml"
>
<mx:states>
</mx:states>
</ns>
Something like that?
That would produce the error you describe.
The problem is, you are thinking of the mx namespace as being the "built-in
stuff". But, even though the states property is orginally declared by
UIComponent in the Flex framework, it is inherited by your component, and
belongs in the namespace of your component's package, just like any other
property of your component.
Thus,
<ns:MyComponent xmlns:ns="my.package.*"
xmlns:mx="http://www.adobe.com/2006/mxml"
>
<ns:states>
</ns:states>
</ns>
Peter
www.peterjoel.com
----- Original Message -----
From: "Colin" <colin.light at btopenworld.com>
To: <arp at ariaware.com>
Sent: Friday, August 11, 2006 8:59 PM
Subject: [Arp] Flex component states
Hi List,
I’ve been playing around with Arp and AS3/MXML. I looked at the pizza
example that came with the most up to date version to see how to implement
ARP in flex.
I’m now starting my own application. I’ve created my views in MXML and have
started to bind them to as3 classes e.g.
<appView:EditViewClass xmlns:appView="org.pcimage.view.*"
xmlns:mx="http://www.adobe.com/2006/mxml">
The problem I’m having is that I have different view states in my MXML and
when I try and compile my application I keep getting the following error
‘Error: Could not resolve <mx:states> to a component implementation.’.
Can anybody tell me if you can have states in a component which you’ve
extended?
Regards
Colin.
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.6/617 - Release Date: 05/01/2007
11:11
--------------------------------------------------------------------------------
> _______________________________________________
> Arp mailing list
> Arp at ariaware.com
> http://ariaware.com/mailman/listinfo/arp_ariaware.com
>
More information about the Arp
mailing list