# Need help on simple actionscript

**URL:** <https://forum.kirupa.com/t/need-help-on-simple-actionscript/31719>\
**Category:** Uncategorized\
**Created:** [September 26, 2003, 3:42am UTC](https://forum.kirupa.com/t/need-help-on-simple-actionscript/31719 "2003-09-26T03:42:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marmae](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@marmae](https://forum.kirupa.com/u/marmae)\
**Post date:** [September 26, 2003, 3:42am UTC](https://forum.kirupa.com/t/need-help-on-simple-actionscript/31719/1 "2003-09-26T03:42:45Z")

</div>

Hi guys,

on (release) {  
if (\_framesloaded\>=\_totalframes) {  
loadMovie(“residential.swf”, “sections”);  
} else {  
loadMovie(“loading.swf”, “sections”);  
}

}

I used the above script to do a simple preloader but it doesn’t seem to work can anybody help me to amend this. I new to action script and flash. Normally I only use loadMovie to load external files to an empty movie clip which is “sections” when a button is clicked but what I whant to happen is if a button is clicked a simple mc first will load which is a loading.swf which is the preloader before the actual mc is loaded which is the residential.swf. I hope my explanation is clear…

marlon
