Objects added to the stage manually have negative depths. Objects loaded with code have positive depths, which thus are above all other clips. You can use mc.swapDepths() to move things in negative depths to be positive if they have a depth value that is higher. Use getNextHighestDepth() to swap something above something else.
i.e. myPictureFrame.swapDepths(_level0.getNextHighestDepth()); Jason Merrill Bank of America GT&O Learning & Leadership Development eTools & Multimedia Team >>-----Original Message----- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of Gustavo Duenas >>Sent: Friday, March 30, 2007 3:58 PM >>To: Flashcoders mailing list >>Subject: [Flashcoders] about depth >> >>Hi My idea is to set a dinamyc background in the layer 1 of >>my flash (so far it has 10 layers) >> >>the code is as: >> >>_root.createEmptyMovieClip("myClip", 0); >>myclip.loadMovie("back1.jpg"); >> >>but when It loads the jpg, the jpg is above all the other >>layers, when I really needed this underneath. >>Someone knows what should I do? >> >>Regards >> >> >> >>Gustavo Duenas >> >> >>p.S: I don't know much about this depth thing, but I'm really >>stuck with this problem. >> >> >>_______________________________________________ >>Flashcoders@chattyfig.figleaf.com >>To change your subscription options or search the archive: >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >>Brought to you by Fig Leaf Software >>Premier Authorized Adobe Consulting and Training >>http://www.figleaf.com http://training.figleaf.com >> _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com