# Moving buttons from coverpreloader swf to main window

**URL:** <https://forum.kirupa.com/t/moving-buttons-from-coverpreloader-swf-to-main-window/185117>\
**Category:** Uncategorized\
**Created:** [April 11, 2006, 3:52am UTC](https://forum.kirupa.com/t/moving-buttons-from-coverpreloader-swf-to-main-window/185117 "2006-04-11T03:52:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mogi](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@mogi](https://forum.kirupa.com/u/mogi)\
**Post date:** [April 11, 2006, 3:52am UTC](https://forum.kirupa.com/t/moving-buttons-from-coverpreloader-swf-to-main-window/185117/1 "2006-04-11T03:52:15Z")

</div>

hi,

i have found source of a cover preloader made by billy T. i think, and am trying to move the buttons from the self contained swf to my main window and keep their functionality, still loading the cover preloader with its 3 external mc’s as an external mc.

this is the code from the cover-preloader swf on the main timeline of the cover-preloader swf

fscommand(“allowscale”,false);  
stop();  
but1.onRelease=function(){  
//set a variable that stores the next external movie to be loaded  
nextMovie=“content1.swf”;  
//tell the cover mc to play its closing animation  
cover.gotoAndPlay(“close”);  
}  
but2.onRelease=function(){  
nextMovie=“content2.swf”;  
cover.gotoAndPlay(“close”);  
}  
but3.onRelease=function(){  
nextMovie=“content3.swf”;  
cover.gotoAndPlay(“close”);  
}

so basically what i want to do is move those buttons from the cover-preloader.swf to my main.swf and be able to call up the c-p.swf as an external mc using the buttons and still loading the external mc’s(images) within that

hope i have explained this with some logic

and any help/suggestions would be greatly appreciated

actionscript newbie(mogi)
