# Load movie on button rollover \[renamed\]

**URL:** <https://forum.kirupa.com/t/load-movie-on-button-rollover-renamed/225600>\
**Category:** flash\
**Created:** [May 14, 2007, 5:19am UTC](https://forum.kirupa.com/t/load-movie-on-button-rollover-renamed/225600 "2007-05-14T05:19:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![camaleon](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@camaleon](https://forum.kirupa.com/u/camaleon)\
**Post date:** [May 14, 2007, 5:19am UTC](https://forum.kirupa.com/t/load-movie-on-button-rollover-renamed/225600/1 "2007-05-14T05:19:34Z")

</div>

hi guys.

well i need your help.

i have a button and i want that when i rollover this button remove an external MovieClip (111.swf) and load a new one.

and when i click the button open index2.html (\_blank)

i have the code for load external swf.

ActionScript Code:  
[LEFT][FONT=Courier New][COLOR=#0000ff]onEnterFrame[/COLOR]COLOR=#000000[/COLOR]; [COLOR=#000000]{[/COLOR][/FONT]  
[FONT=Courier New]\<p\>\_root.[COLOR=#0000ff]createEmptyMovieClip[/COLOR][COLOR=#000000]([/COLOR][COLOR=#ff0000]“yourmovieclip”[/COLOR], [COLOR=#000080]1[/COLOR][COLOR=#000000])[/COLOR];[/FONT]  
[FONT=Courier New]\<p\>yourmovieclip.[COLOR=#0000ff]\_x[/COLOR] = [COLOR=#000080]0[/COLOR];[/FONT]  
[FONT=Courier New]\<p\>yourmovieclip.[COLOR=#0000ff]\_y[/COLOR] = [COLOR=#000080]0[/COLOR];[/FONT]  
[FONT=Courier New]\<p\>yourmovieclip.[COLOR=#0000ff]loadMovie[/COLOR]COLOR=#000000[/COLOR];[/FONT]  
[FONT=Courier New]\<p\>[COLOR=#000000]}[/COLOR][/FONT][/LEFT]

**i need a code for UNLoad or remove the external swf (111.swf) and load a new one swf file when i rollover the new button. and when i click the button open index2.html (\_blank)**

thanks,  
regards
