3 Replies Latest reply on May 14, 2012 10:05 PM by Flex harUI

    flex4.5 load a flash swf using swfLoader, How to can't run flash swf ActionScript code?

    cablish

      Hi:

           flash swf(sample.swf)  ActionScript code:

       

           Object(this).clickMe.addEventListener(MouseEvent.CLICK,onClickButtonFunc);

       

           function onClickButtonFunc(evt: Event)

           {  

               var obj:Object = this.parent.parent;

               Object(this).dataView.text = obj.document.txtPasswd.text.toString();

           }

       

           flex4.5 Application code:

           <s:Application>

           <s:VGroup>

                <s:SWFLoader source="/sample.swf">

        <s:TextInput id="txtPasswd" text="aaaa"/>

           </s:VGroup>

           </s:Application>

      Q:

          Load a contain ActionScript code flash swf using swfLoader in the flex4.5 Application.

          How to can't run  ActionScript code ?