# Accessing Variables On External Swfs

**URL:** <https://forum.kirupa.com/t/accessing-variables-on-external-swfs/267073>\
**Category:** flash\
**Created:** [July 28, 2008, 1:02pm UTC](https://forum.kirupa.com/t/accessing-variables-on-external-swfs/267073 "2008-07-28T13:02:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nico](https://avatars.discourse-cdn.com/v4/letter/n/b5a626/32.png) [@nico](https://forum.kirupa.com/u/nico)\
**Post date:** [July 28, 2008, 1:02pm UTC](https://forum.kirupa.com/t/accessing-variables-on-external-swfs/267073/1 "2008-07-28T13:02:28Z")

</div>

hello as3 gurus! i need your help on this one.

well, i loaded an external swf in as3, however, i noticed that i can only access the movieclips, methods and variables inside the Event.COMPLETE event of my loader instance. is there a way which can make me access the elements of my loaded swf directly without going inside of Event.COMPLETE? because i think you can access the elements of the loaded swf if the swf has been loaded completly? any idea? THANKS!!!

btw, here is how i access the elements of my external swf, its inside the Event.COMPLETE.

function completed(e:Event):void  
{  
var loaderinfo:LoaderInfo = e.target as LoaderInfo;  
container.addChild(e.target.content);  
var swfGateway:Object = loaderinfo.content;  
swfGateway.(the movieclip, property, method i want to access on the loaded swf);  
}
