3 Replies Latest reply on Sep 17, 2009 1:46 PM by Ansury

    Simple question: getting warning message for databinding with LinkButton.

    karnatis Level 1

      Hi All,

       

        I created two variables

       

      <mx:Canvas>

        <mx:script>

            public var pageMode:String = "Edit";
            public var pageModeStat:Boolean = false;

       

        </mx:script>

       

         <mx:Canvas>

            <mx:LinkButton styleName="htmlLink" label="{pageMode}" click="setPageMode(event);"
                                          rollOver="styleName='htmlLinkHover';"
                                          rollOut="styleName='htmlLink';"/>

       

               <mx:HBox width="100%">
                   <mx:Label width="25%"  text="First Name:" fontWeight="normal"/>
                   <mx:TextInput width="25%" id="first_name" editable="{pageModeStat}"/>
                   <mx:Label  width="25%" text="Last Name:" fontWeight="normal"/>
                   <mx:TextInput width="25%" id="last_name"/>
               </mx:HBox>

       

         </mx:Canvas>

       

      </mx:Canvas>

       

        Getting warning message that

       

      Data binding will not be able to detect assignments to "pageMode". 

      Data binding will not be able to detect assignments to "pageModeStat".  

       

         Please tell me how to assign values dynamically, for using these components.

       

      Thanks,

      Sharath.