1 Reply Latest reply on Apr 25, 2011 10:39 AM by Flex harUI

    SWFLoader MouseEvent  click doesn't dispatched

    pol2095 Level 1

      Hello,

       

      I have a swf in a SWFLoader, the MouseEvent click doesn't dispatched

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" applicationComplete="comp(event)" xmlns:s="library://ns.adobe.com/flex/spark">
           <mx:Script>
          <![CDATA[
            public function comp(event:Event):void {
           are.text="test";
            }
           public function loaderComp(event:Event):void {
           event.target.content.circle1.addEventListener(MouseEvent.CLICK, clicked);
            }
          ]]>
        </mx:Script>
           <s:VGroup paddingLeft="15" paddingTop="10">
                <s:TextArea width="400" id="are"/>
                <mx:SWFLoader id="loi" source="@Embed(source='click.swf')" complete="loaderComp(event);" width="550" height="400" />
                <s:TextInput width="400" id="inp2"/>
           </s:VGroup>
      </mx:Application>
      

       

      thanks