# °°° loading variables in other movie °°°

**URL:** <https://forum.kirupa.com/t/loading-variables-in-other-movie/95162>\
**Category:** Uncategorized\
**Created:** [November 21, 2003, 10:00am UTC](https://forum.kirupa.com/t/loading-variables-in-other-movie/95162 "2003-11-21T10:00:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lampe](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@lampe](https://forum.kirupa.com/u/lampe)\
**Post date:** [November 21, 2003, 10:00am UTC](https://forum.kirupa.com/t/loading-variables-in-other-movie/95162/1 "2003-11-21T10:00:03Z")

</div>

hey there,

I have this problem: I made a swf (called m&d2.swf) with my main navigation. On this main document, there are 6 lines where the variable text comes (called line1; line2;…). When i click a button, the text appears in the right place. I’ll put the script here:  
[AS]on (release) {  
line1 = “M&D advertising”;  
line2 = “Heirweg 94”;  
line3 = “B-8520 Kuurne”;  
line4 = “Tel 056/35 85 05”;  
line5 = “Fax 056/37 40 72”;  
line6 = “info@md-advertising.be”;  
loadVariables(“line1”, “0”);  
loadVariables(“line2”, “0”);  
loadVariables(“line3”, “0”);  
loadVariables(“line4”, “0”);  
loadVariables(“line5”, “0”);  
loadVariables(“line6”, “0”);  
}  
[/AS]

When i click this button, a subnavigation (a swf called corporate.swf) loads on this main document. NOW, HERE IT IS!!!  
When i paste the same code on a button from the subnavigation, the text will not load in the main document. I know, it should be something with the target and level thing and using POST or GET, but I can’t find it.  
So here is the code I’ve pasted on my button in the corporate.swf (the one which is loaded in the main document).  
[AS]on (release) {  
line1 = “Company - History”;  
line2 = “”;  
line3 = “”;  
line4 = “”;  
line5 = “”;  
line6 = “”;  
loadVariables(“line1”, “0”);  
loadVariables(“line2”, “0”);  
loadVariables(“line3”, “0”);  
loadVariables(“line4”, “0”);  
loadVariables(“line5”, “0”);  
loadVariables(“line6”, “0”);  
}  
[/AS]

Please help me out, this is urgent! Thank you so much!!!

lampe
