Welcome visitor
* Login
* Register
It is currently May 23rd, 2019, 8:49 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Flash / ActionScript » ActionScript 3.0



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  how to access variables in loaded swf
PostPosted: February 10th, 2009, 9:34 pm 
User avatar

Posts: 56
Hi there,
I'm trying to access variables etc. in a swf I've loaded to the stage. But can't really figure out how to do it. Hope you can help me.


Top
 Profile  
 
  Re: how to access variables in loaded swf
PostPosted: February 10th, 2009, 9:41 pm 

Posts: 31
look a t this:
var loader:Loader = new Loader();
loader.load( new URLRequest("loaded.swf") );
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, done);

function done(e:Event):void
{
    trace("loaded");
    trace(MovieClip(loader.content).variable);
}


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Flash / ActionScript » ActionScript 3.0


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron