I am trying to attach an animation I created in another swf. The movie attaches itself fine (see code sample 1). However an actionscrip mask I have used (please look at sample code 2) does not display at all. The animation works, but the mask (pre-built into the animation) is not working. Now I am pretty sure it has something to do with layers.
Any help would be appreciated.
// CODE SAMPLE 1
function createLoad()
{
trace("attempting to load movie");
this.attachMovie("loads", "loads_1", 1);
loads_1._x = 60;
loads_1._y = 340;
trace("playing movie loading");
function createNewLoad(){
trace(“attempting to create a new container”);
_root.createEmptyMovieClip(“container”, 0);
loadMovie(“snow.swf”, “container”);
container._x = 60;
container._y = 340;
}
Reason: When loading a movie into another movie, the _root of the loaded movie becomes the _root of the main movie you are loading into, so _level0 and _root won’t work for targeting. Instead you need to use _parent to go to the parent timeline. And as for the “this” part, since the actions are on that clip, you can use “this” as a target.