1 Reply Latest reply on Mar 16, 2010 2:39 AM by PiotrekB

    Why i need to double the function/upload ID when login in?

    PiotrekB

      Hi

      I think that that i have some silly mistake in my code but i don't know what can be wrong

      I need 2 times click on the sec_code_button to get selectedChild displayed even if last result is "1"

      BTW Can enyone tell me what is the name of the actionscript function which can result string length?

      <mx:Script>
          <![CDATA[
              private function loguj(event:MouseEvent):void{
              data_sender_http.send();
              if (data_sender_http.lastResult.result == 1){
                  selection_nav.selectedChild=movie
                  }
              }
          ]]>
      </mx:Script>

      ...

                          <mx:Button id="sec_code_button" label="Odblokuj" click="loguj(event)"/>

      ...

      <mx:HTTPService showBusyCursor="true" id="data_sender_http" url="http://IP/scipt.movie" useProxy="false" method="POST">
              <mx:request xmlns="">
              <code>{sec_code.text}</code>
              </mx:request>
      </mx:HTTPService>