Skip to main content
Known Participant
June 7, 2009
Answered

load AS2 swf into AS3 swf problem

  • June 7, 2009
  • 1 reply
  • 3535 views

I have a flash with AS3 and inside this swf i load in a AS2 swf.

to load swf works just fine, but the problem is when i load this i want to go to

a specific part of it, for example i want to go to frame 3 in the loaded swf.

i must control this from the AS3 swf, does someone know if this is possible?

thanks in advance

This topic has been closed for replies.
Correct answer kglad

yes, it's possible.  use the localconnection class to communicate between the two swfs.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
June 7, 2009

yes, it's possible.  use the localconnection class to communicate between the two swfs.

lubricanAuthor
Known Participant
June 7, 2009

thanks!

if i would communicate to a loaded swf with AS3 instead is it the same?

Date: Sun, 7 Jun 2009 08:56:14 -0600

From: forums@adobe.com

To: gemstarlit@msn.com

Subject: load AS2 swf into AS3 swf problem

yes, it's possible. use the localconnection class to communicate between the two swfs.

>

kglad
Community Expert
Community Expert
June 7, 2009

you can use localconnection to communicate between two as3 files, but there's no need.  it's much simpler to communicate directly use the correct path from the code's scope (or timeline) and the object you want to reference.

the loader's content property (cast as a movieclip) references the loaded swf's main timeline.