3 Replies Latest reply on Apr 3, 2008 4:59 AM by naz2003

    swfLoader - Error Null Object Reference

    naz2003
      Hi
      Thanks in advance

      I'm trying to load cs3 swf file into flex by swfLoader to interact with a movieclip, it's working fine when I load in main Application but the same if I try in component it's not working.....


      public function onMenuComplete(event:Event):void
      {
      var flashTimeline:*=event.currentTarget.content
      var about_mc:MovieClip=flashTimeline.btn1
      about_mc.addEventListener(MouseEvent.CLICK,about)
      }

      <mx:SWFLoader id="flashObj" source="assets/test.swf" creationComplete="onMenuComplete(event)"/>

      the event receives null if it loaded in component...

      Thanks & Regards
      Nazeer B