I am creating a component and want to set the color property, as many flex controls do, let's say that I have a simple component, for example this, lets call it foo_label:
<mx:Canvas>
<mx:Script>
[Bindable] public var color:uint;
</mx:Script>
<mx:Label text="foobar" color="{color}" />
</mx:Canvas>
and then add the component to another mxml file, something like lines:
<foo:foo_label color="red" />
When compiling, the compiler complains: it is not possible to parse a value of type uint from the text 'red'. However, if I use a simple shortcut, I can do
<mx:Label text="foobar" color="red">
no problem, and the color property is still a uint type.
, , ? "" uint mx, , , , - ?
.