Skip to main content
Inspiring
November 23, 2011
Question

Accessing timeline and varibles from external loaded swf question?

  • November 23, 2011
  • 1 reply
  • 907 views

I'm trying to check for an external swf file being loaded using  event.target.name=="pubResCHETNA" and currentFrame ==  second frame of scrollPaneGroup movieclip (the scrollPaneGroup movieclip is from a external loaded swf file)

here is my code:

//////////////////////////////////////////////////////////////////

var currentSWF:MovieClip= new MovieClip();

currentSWF = MovieClip(loader.content);

 

                              if(event.target.name=="pubResCHETNA" &&   ?????? ) // how should I place the condition over here?

                              {

     fCbtn.buttonMode=true; //fCbtn is a movieclip reside in second frame of scrollPaneGroup movieclip of "pubResCHETNA.swf".

                               }

//////////////////////////////////////////////////////////

Is there a solution for this, coz the dealine is near. Thanks in advance

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
November 23, 2011

What is the deadline for?

Inspiring
November 23, 2011

I need to show the finalize content to client this coming friday, everything was working fine but yesterday client suddenly decided to add in some extra things, that why i need to access the swf file from the main swf.....

Ned Murphy
Legend
November 23, 2011

You would target the currentFrame of the loaded swf the same way you would target the currentFrame of any movieclip.  If currentSWF is targeting the loaded swf, then currentSWF.currentFrame would be indicating the currentFrame property of that swf.