A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Position movieclip on top attached movie clips

  1. #1
    Member
    Join Date
    Apr 2009
    Posts
    62

    Position movieclip on top attached movie clips

    Hello,
    I would like to have one movieclip over the top of other attached ones. I have tried getNextHighestDepth on the movieclip, but it still doesn't work.

    Here is my code for attaching the movieclips:
    PHP Code:
    function growSpider() {
        
    spiders 0;
        while (
    spiders<5) {
            
    spiders++;
            
    randomX Math.floor(Math.random()*(745-55))+55;
            
    spider attachMovie('Spider''Spider'+this.getNextHighestDepth(), this.getNextHighestDepth(), {_x:randomX_y:-32});
            
    spiderArray.push(tree._name);

            
    spider.onEnterFrame = function() {
                
    this._y += car.speed/2;

                if (!
    _parent.canGo) {
                    
    stop();
                } else if (
    _parent.canGo) {
                    
    play();
                }

                if (
    this._y>=632) {
                    
    this.removeMovieClip();
                }
            };
        }

    Check out my firefox theme "PacStrata" here

  2. #2
    Member
    Join Date
    Apr 2009
    Posts
    62
    Come on...this is really important
    Check out my firefox theme "PacStrata" here

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