# I need to access/pass variables'(s) of an .swf file into another .swf file.But,How?

**URL:** <https://forum.kirupa.com/t/i-need-to-access-pass-variables-s-of-an-swf-file-into-another-swf-file-but-how/285466>\
**Category:** flash\
**Created:** [April 1, 2009, 7:05am UTC](https://forum.kirupa.com/t/i-need-to-access-pass-variables-s-of-an-swf-file-into-another-swf-file-but-how/285466 "2009-04-01T07:05:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SrihariCh](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@SrihariCh](https://forum.kirupa.com/u/SrihariCh)\
**Post date:** [April 1, 2009, 7:05am UTC](https://forum.kirupa.com/t/i-need-to-access-pass-variables-s-of-an-swf-file-into-another-swf-file-but-how/285466/1 "2009-04-01T07:05:41Z")

</div>

Hi all,  
I have basic knowledge of Flash and AS3.0.  
Suppose i have a flash swf file(main.swf). In this main.swf file, i loaded another swf file(sub.swf) by writing the following code snippet in main.swf file as shown below:

\*\*var textLdr:Loader=new Loader();  
var noteUrl:String = “AddNote.swf”;  
var noteUrlReq:URLRequest=new URLRequest(noteUrl); textLdr.load(noteUrlReq);  
addChild(textLdr);  
\*\*  
Now, how to acess the data present in main.swf into sub.swf.  
Note: Here data represents values/data stored in variables/objects of main.swf file.

Reply me… Thanks a lot in advance…

Srihari.Ch
