0 Replies Latest reply on Aug 26, 2010 4:55 AM by danpeleg

    getDataResult from DataService - HELP

    danpeleg

      <fx:Script>

          <![CDATA[

       


       

          protected function Update():void

          {

              getData();

              R3Led.visible = getDataResult9.lastResult;

          }

       


       

          protected function getData():void

          {

              getDataResult9.token = r3.getData();

          }

       


       

          ]]>

      </fx:Script>


      <fx:Declarations>

          <s:CallResponder id="getDataResult9"/>

         <r3:R3 id="r3" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>

      </fx:Declarations>

       

      <s:BitmapImage smooth="true" source="@Embed('/assets/images/T/3.png')" x="281" y="455" width="20" height="20" id="R3Led"/>

       

      <s:Label x="495" y="82" text="{getDataResult9.lastResult}" fontSize="20" color="#FF0000" id="DEBUG"/>

       

      Now my problam is that the Label shows '1' as it suppose to, but the Bitmap R3Led is not visible...