I remember there was an effort to make fewer things bindable in Spark (there is 
a cost to making something bindable).  In theory, your label should be bound to 
a data model or presentation model and not to each other.


On 6/15/12 1:32 PM, "michael_reg...@dell.com" <michael_reg...@dell.com> wrote:






Just found out that you can no longer bind FROM a spark label’s text TO some 
other object.  With MX components, this could be done.  Looking at the Adobe 
code, seems like they removed (or forgot) the binding on the text property for 
Spark.   Is there a reason for this change, or is this a bug?  This is with the 
4.6 SDK.

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
                        xmlns:s="library://ns.adobe.com/flex/spark"

                       xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" 
minHeight="600">
      <s:Label id="result" x="338" y="312" text="{lblTest.text}"/>   
<!—Compiler Warning about binding -->
       <s:Label id="result2" x="338" y="354" text="{lblTest2.text}"/> <!—WORKS 
-->

       <s:Label id="lblTest" x="326" y="117" text="Hello"/>
      <mx:Label id="lblTest2" x="319" y="1! 89" text="World"/>
</s:Application>


[cid:3422940525_2783413]





Michael J. Regert





--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui

<<inline: image.png>>

Reply via email to