Skip navigation
akira32
Currently Being Moderated

load swf and play movieclip inside it

May 20, 2012 7:06 PM

Tags: #flash #flash_builder #swf #movieclip #loader

I want to load  a swf and play a moveclip inside it, but the SWFLoad.content always is null. Does sombody know how to resolve this problem?

 

  private var SWFLoader:Loader;

   

  public function myApp3()

  {

   SWFLoader = new Loader();

   var request:URLRequest = new URLRequest("FlashAS3_2Flex.swf");

   SWFLoader.load(request);

   this.addChild(SWFLoader);

 

   var currentSWF = MovieClip(SWFLoader.content);//SWFLoader.content is null

   currentSWF.myClip.gotoAndPlay(1);

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points