Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-15-2008, 05:28 PM   #1
stefanmumaw
Registered User
 
Join Date: Apr 2008
Posts: 27
Default SWF built in AS2 loaded into SWF built in AS3

Noob question: I have a SWF that is built using AS2 that is loaded into a SWF built in AS3. I just need to pass a variable from the AS2 SWF to the main timeline of the AS3 SWF. If BOTH were built in AS3, my path would be this:

ActionScript Code:
MovieClip(parent.parent.parent.parent).whatworkimage = "tm_larrydaisy_large.jpg";

But tracing this path from the AS2 SWF gives me an undefined. I tried changing the "parent" references to "_parent" and removing the "MovieClip" reference but to no avail.

What would be the equivalent path from the AS2 SWF to talk to the AS3 SWF?

Thanks.

Last edited by stefanmumaw; 05-15-2008 at 06:35 PM.
stefanmumaw is offline   Reply With Quote
Old 05-15-2008, 07:42 PM   #2
stefanmumaw
Registered User
 
Join Date: Apr 2008
Posts: 27
Default

Nevermind. Just found an Adobe report that says you can load AS2 SWFs into AS3 SWFs, but you can't talk back and forth. It must be migrated to an AS3 doc to be able to communicate.
stefanmumaw is offline   Reply With Quote
Old 07-25-2008, 01:59 PM   #3
stugorf
Registered User
 
Join Date: Jul 2008
Posts: 1
Default

You can still get AS3 and AS2 movies to communicate using LocalConnection...it allows you to call functions in AS2 movies from AS3...
stugorf is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
loaded external swf in define place with AS3 dangerouskicker ActionScript 3.0 1 01-25-2008 11:15 AM
from a loaded swf clip, access/reference variable in the mainTimeline samlovesflash ActionScript 3.0 3 01-15-2008 06:46 AM
loading AS2 swf into AS3 swf lectrospin ActionScript 3.0 3 11-01-2007 02:50 PM
empty movie clip loaded swf to empty movie clip loaded swf linkage w/i main timeline skalit Other Flash General Questions 0 02-24-2007 03:02 AM
Detecting if an externally loaded swf has finished playing veg1 ActionScript 2.0 1 02-04-2007 05:55 AM


All times are GMT. The time now is 08:02 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.