View Full Version : same **** different level
defmars
10-21-2004, 08:13 AM
hey, i have my main movie A to load movie B. I have an effect in movie A that needs to be seen over movie B. I've tried to play with the levels a couple of times but it didn't work. How do I load movie B on top of movie A with my effect from movie A playing on top of movie B ?
C05MIN
10-21-2004, 10:19 AM
try to put the effect from the movie A at the begging of movie B.
this is not an answer at your question but it is a method.
defmars
10-21-2004, 07:28 PM
Yeah, that would work except that i have many different B movies. The effect on movie A is pretty big and i don't want to increase the size of my B movies. Ultimately I could just create a movie C, containing the effect from movie A, that would load on top of movie A and B, but I just find it bothersome and i'm sure there's a brain outhere who figured out a way to that nicely.
Just thought I gave it a try.
EtherealChaos
10-30-2004, 06:06 AM
just before whatever effect happens in movie A, stick this in a frame inside it:
this.swapDepths(_root.movieB)
this wud make A be on top of B if it was at the bottom from the start. and when you want an effect in movie B to be on top again, stick in :
this.swapDepths(_root.movieA)
shud work i think... for them to check if it's below another movieclip before swapping depths just add:
if(this.getDepth()<movie_mc.getDepth()){ do wutever }
EtherealChaos
10-30-2004, 06:12 AM
else have a "depth controller" script on the stage:
_root.onEnterFrame = function(){
if(variable == true){variable = false
_root.moviename.swapDepths(_root.getNextHighestDep th)}}
and when movieA needs to hav an effect dat shows over everything else, have the code:
_root.variable = true
_root.moviename = "movieA"
----
heh im still pretty new so the code mite or mite not work/help..
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.