# LoadMovie SWF looses actionscript

**URL:** <https://forum.kirupa.com/t/loadmovie-swf-looses-actionscript/239025>\
**Category:** flash\
**Created:** [September 18, 2007, 5:39am UTC](https://forum.kirupa.com/t/loadmovie-swf-looses-actionscript/239025 "2007-09-18T05:39:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jessejamesricha](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@jessejamesricha](https://forum.kirupa.com/u/jessejamesricha)\
**Post date:** [September 18, 2007, 5:39am UTC](https://forum.kirupa.com/t/loadmovie-swf-looses-actionscript/239025/1 "2007-09-18T05:39:39Z")

</div>

When I load a swf into a movie the actionscript in the loaded movie seems to get lost or break. Basically what I’m doing it loading a swf based on dynamic content from an xml file, soooooo, I create a movie clip, then load that swf into the movie clip and position it, however the onMOuse over action and whatnot don’t seem to work. If I do a loadMovie num it works, but load movie doesn’t.

The code looks like this:

// Create the menu item  
menu\_selection = ticket\_counter.createEmptyMovieClip( “menu\_selection\_”+j, j );

// Load the image into the selection  
loadMovie( “file/” + selection\_image, menu\_selection);

menu\_selection.\_x = x;  
menu\_selection.\_y = y;

As you can see the selection\_image is dynamic and it loads it into the empty movie clip, however nada. I can position it, I can load text item over top, but the actionscript in that selection\_image file just won’t freakin’ work. Since everything is dynamic (and since it’s bad practice) I’m not going to hardcode anything.

I’m not really a actionscript developer, more a db and php guy, so I’m really freakin’ lost right now.

I’ve added lockroot (though I’m not sure if it should be menu\_selection.\_lockroot) and it still doesn’t work.

Sooooo, any help would be great.
