# Please help this simple problem

**URL:** <https://forum.kirupa.com/t/please-help-this-simple-problem/321310>\
**Category:** Uncategorized\
**Created:** [April 16, 2011, 5:07am UTC](https://forum.kirupa.com/t/please-help-this-simple-problem/321310 "2011-04-16T05:07:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![R8K](https://avatars.discourse-cdn.com/v4/letter/r/e0b2c6/32.png) [@R8K](https://forum.kirupa.com/u/R8K)\
**Post date:** [April 16, 2011, 5:07am UTC](https://forum.kirupa.com/t/please-help-this-simple-problem/321310/1 "2011-04-16T05:07:46Z")

</div>

Hi Guys

I have a difficulty on migrating into AS3. This is a very simple problem but take me 1 day trying to find out the answer.

I have 2 file: “main.swf” and “content.swf”

In “main.swf”, i use Loader to load “content.swf” into movieclip called content\_mc.

SO, how to access the variable inside “content.swf”??

Here are my coding:

var contentLoader = new Loader();  
contentLoader.load(new URLRequest(“content.swf”));  
content\_mc.addChild(contentLoader);

------------------------------------------ 1st try (cannot work):

var currentMovie:String = content\_mc.variableName;  
trace(currentMovie);

------------------------------------------ 2nd try (cannot work):  
var currentMovie:String;  
currentMovie = content\_mc.Object(contentLoader.content).currentMC ;  
trace( currentMovie);

Thanks alot… please help me
