Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Actionscript / November 2005



Tip: Looking for answers? Try searching our database.

Depth inside a MC

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
>Vee< - 30 Nov 2005 22:37 GMT
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.
djrez3 - 30 Nov 2005 22:50 GMT
are you attaching the fame with actionscript or is it setting on a layer?
NSurveyor - 30 Nov 2005 23:02 GMT
You can set the depth for isub_mc1 to a very negative depth because your frame
was made in authoring so it is assigned a negative depth(don't know which one
exactly will work). You could convert your "black frame" into a movieclip, and
then use swapDepths to move it to depth 2. OR, you could make it a movieclip,
and set's linkage in the library and then use attachMovie to attach it on depth
2.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.