1 Reply Latest reply on Jul 18, 2008 5:47 AM by anirudhs

    Loader Problem!!

    Emad Zedan Level 1
      I have a file that must check if the swf loaded had created with my copyright or not.
      (basiclly I'm creating a Air application that do drag and drop for swf in the application and I want to check if this swf is valid or not by reading the CopyRight varibale).

      I had created a test on AS3 to do that in the flash player first then do it in Air file:
      var MyLoader:Loader=new Loader();
      var Resquest:URLRequest=new URLRequest("Data/X1.swf");
      var CopyRight:String;
      MyLoader.load(Resquest);
      addChild(MyLoader);
      MyLoader.addEventListener(Event.COMPLETE,TestSWF);
      }
      function TestSWF(event:Event):void {
      MyLoader.visible=false;
      if (MyLoader[CopyRight]=="EmadZedan") {
      MyLoader.visible=true;
      }
      }



      and the loaded swf has this code in the main timeline:

      var CopyRight:String=new String;
      CopyRight="EmadZedan";

      but it is not working???

      thanks a lot.