# How to, load .swf from password into empty movie clip

**URL:** https://forum.kirupa.com/t/how-to-load-swf-from-password-into-empty-movie-clip/236223
**Category:** flash
**Created:** [August 18, 2007, 5:22pm UTC](https://forum.kirupa.com/t/how-to-load-swf-from-password-into-empty-movie-clip/236223 "2007-08-18T17:22:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ckdunlap\_verizo](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@ckdunlap\_verizo](https://forum.kirupa.com/u/ckdunlap_verizo)
#### Post date: [August 18, 2007, 5:22pm UTC](https://forum.kirupa.com/t/how-to-load-swf-from-password-into-empty-movie-clip/236223/1 "2007-08-18T17:22:48Z")

</div>

Hi I could really use some help here!!!  
Your time spent here will bring you beaucoup good karma.  
I have level 0 “main.swf” with an empty movie clip.  
In the same folder I have “passwordPage.swf”  
and “brush.swf”.  
I have been able to use getURL code with the password to open my browser and load “brush.swf”. I have also been able to load movies into the empty movie clip in “main.swf”. This is not what I want, but I think it proves that the rest of the stuff was put together right.  
What I want is for the password to load “brush.swf” into “main.swf” empty movie clip.  
The part I think I need to replace is commented.

stop();  
var externalVars = new LoadVars();  
externalVars.onLoad = function() {  
secretcode = this.content;  
};  
externalVars.load(“code.txt”);  
ok\_btn.onPress = function() {  
if (\_root.thePassword.text == \_root.secretcode) {  
// \_root.getURL(“brush.swf”);  
} else {  
\_root.gotoAndStop(2);  
}  
};  
thePassword.password = true;

But wait, this is not enough. I also need to gotoAndPlay "brush.swf, scene 2 " (no sweat) then return to “brush.swf scene 1” while still in the main empty movie clip.  
Thank you to whoever you are.  
Colleen
