# How to show main ContextMenu when loadMovie()

**URL:** https://forum.kirupa.com/t/how-to-show-main-contextmenu-when-loadmovie/75564
**Category:** Uncategorized
**Created:** [January 10, 2005, 10:46am UTC](https://forum.kirupa.com/t/how-to-show-main-contextmenu-when-loadmovie/75564 "2005-01-10T10:46:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Bodoi](https://avatars.discourse-cdn.com/v4/letter/b/34f0e0/32.png) [@Bodoi](https://forum.kirupa.com/u/Bodoi)
#### Post date: [January 10, 2005, 10:46am UTC](https://forum.kirupa.com/t/how-to-show-main-contextmenu-when-loadmovie/75564/1 "2005-01-10T10:46:36Z")

</div>

**in Mainframe of test1.fla**

var newMovie\_mc:MovieClip;  
newMovie\_mc=\_root.createEmptyMovieClip(“New1”,2);  
stop();  
my\_cm = new ContextMenu();  
my\_cm.hideBuiltInItems();  
my\_cm.customItems.push(new ContextMenuItem(“Load Movie.”, loadHandler,true));  
my\_cm.customItems.push(new ContextMenuItem(“Remove Movie.”, removeHandler,true));  
function loadHandler() {  
moVieLoad();  
fscommand(“messagebox”, “This is a message box called from within Flash.”);  
}  
function removeHandler()  
{  
trace(“hoho”);  
newMovie\_mc.unloadMovie();  
}  
\_root.menu = my\_cm;  
btnLoad.onRelease=moVieLoad;  
function moVieLoad()  
{  
newMovie\_mc.loadMovie(“test2.swf”);  
}

**and in mainframe of test2.fla**

Stage.showMenu=false;

test1.fla and test2.fla have same Stage.width and Stage.height

How can use ContextMenu from test1.swf??
