all groups > flash actionscript > november 2005 >
You're in the

flash actionscript

group:

Depth inside a MC


Depth inside a MC Vee
11/30/2005 10:37:05 PM
flash actionscript:
I am trying to create a child(sub_mc_1) mc inside a mc (main_mc_1) that is on
_level0 that will load external .jpgs. This part works fine.
main_mc_1.onLoad = function() {
this.createEmptyMovieClip("isub_mc_1", 1);
this.sub_mc_1.loadMovie("images/something.jpg");
};

The problem I am having is that I want a the emptyMC to be behind a black
frame I have built into main_mc_1. I am getting the feeling that the depth
only really works well on the _root timeline and not inside the timeline of an
existing mc. If you can help me position the empty mc behind the frame inside
main_mc_1 that would be great. I have tried afew depths and still it blocks my
frame on two sides.
Re: Depth inside a MC sampurtill
12/1/2005 1:04:18 AM
Wherever main_mc_1 is placed, thats where your pic is going to load into in a
sense. Unless you have a black movie clip that is inside of it. If thats the
case, than just do this.getNextHighestDepth() for the depth. That should work.
If that doesn't then... I'm not sure what to do next.

Sam
AddThis Social Bookmark Button