7 Replies Latest reply on Mar 13, 2011 4:52 AM by smartkiran143

    Loading external swf file


      Hi all,


      I am trying to load an external SWF file into my website.. but it is not working. Here is my code


      public var CD:Loader=new Loader();

      protected function application1_creationCompleteHandler(event:FlexEvent):void


      CD.load(new URLRequest("http://localhost/assets/slide.swf"));




      // TODO Auto-generated method stub



      Can anyone tell me what is going wrong..



      The url is correct and its working in my browser when i type 'http://localhost/assets/slide.swf' in the browser... So problem is with flex..