# Scripting

**URL:** <https://forum.kirupa.com/t/scripting/3494>\
**Category:** Uncategorized\
**Created:** [February 5, 2002, 12:36am UTC](https://forum.kirupa.com/t/scripting/3494 "2002-02-05T00:36:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 5, 2002, 12:36am UTC](https://forum.kirupa.com/t/scripting/3494/1 "2002-02-05T00:36:59Z")

</div>

Hi everyone,

I’m having trouble getting an certain effect to work. I want to have something similar to the old 2advanced site what I’m trying to achieve is when a button is clicked I want a external swf to load in to main movie clip but while its loading I want these two doors to come in over whats loading behind the doors and stay there until the external movie is done loading. When the movie is loaded I want the doors to then open again! This is my code on the button.  
on (release) {  
\_root.introclip.shutter.gotoAndPlay(“open”);  
loadMovie (“members.swf”, “membersload”);  
\_root.introclip.membersload.\_x = -325;  
\_root.introclip.membersload.\_y = -179;  
\_root.introclip.membersload.\_yscale = 86;  
loaded = \_root.introclip.membersload.getBytesLoaded();  
total = \_root.introclip.membersload.getBytesTotal();  
if (loaded == total) {  
\_root.introclip.shutter.gotoAndPlay(“closed”);  
} else if (loaded \< total) {  
\_root.introclip.shutter.gotoAndStop(“closed”);  
}  
}  
if anyone could help it would be great!

Thanks

Kyle
