A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: duplicatemovie problems

  1. #1
    rabid_Delineator AttackRabbit's Avatar
    Join Date
    Dec 2003
    Location
    Orlando, Florida
    Posts
    481

    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.

  2. #2
    Who, What, Why ... ? Fraggs's Avatar
    Join Date
    Jul 2003
    Location
    Flashland .. where else ?
    Posts
    786
    Place your mc on a new seperate layer and put drag the new layer to the bottom of your timeline.

  3. #3
    still learnin'
    Join Date
    Oct 2002
    Location
    la la land
    Posts
    71
    what level did you set the duplicate MCs to in ur actionscript?

  4. #4
    Junior Member
    Join Date
    Jan 2001
    Posts
    10
    try to set the levels in appropriate order...

  5. #5
    rabid_Delineator AttackRabbit's Avatar
    Join Date
    Dec 2003
    Location
    Orlando, Florida
    Posts
    481
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center