-
rabid_Delineator
duplicatemovie problems
Hello everyone. I designed an effect that involves duplicating a movieclip several times. The movieclips duplicate and clear in set intervals. Everything works fine accpet, the duplicated movieclips always appear on top of everything else on my stage. Even if i put the movieclip on a seperate layer, behind everything else, the duplicated movies always appear on top. How do i get them to stay behind an object, for example a trasparent gif ? Again this problem is at run time.
-
Who, What, Why ... ?
Place your mc on a new seperate layer and put drag the new layer to the bottom of your timeline.
-
what level did you set the duplicate MCs to in ur actionscript?
-
try to set the levels in appropriate order...
-
rabid_Delineator
i already tried placing the movieclip on a seperate layer. The original movieclip stays behind the graphic, but all the duplicated movies are on top of it. heres is the code that im using.
_root.squares.stop();
_root.squares._visible = false;
dupMovies();
intervalid = setInterval(dupMovies,2000);
intervalid = setInterval(clearMovies,4000);
function dupMovies(){
amount = 10;
while (amount>0) {
duplicateMovieClip (_root.pattern, "mc"+i, i);
setProperty ("mc"+i, _x, random(300));
setProperty ("mc"+i, _y, random(400));
setProperty ("mc"+i, _alpha, random(100));
setProperty ("mc"+i, _xscale, random(75));
setProperty ("mc"+i, _yscale, random(75));
i++;
amount--;
}
}
function clearMovies(){
amount = 10;
i = 0;
while (amount>0) {
removeMovieClip ("mc");
removeMovieClip ("mc" + i);
i++;
amount--;
}
}
stop();
The code works fine but , all the duplicated movies are on top of EVERYTHING, despite where i put the original movie clip.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|