A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: _root. stop(); ???? Please help

  1. #1
    Member
    Join Date
    Sep 2005
    Posts
    55

    _root. stop(); ???? Please help

    Hi,
    I want to make a little turtle that walks across the screen. i have achived that part . Now i want to make him dissapear in his shell when you hover over him and come out when you dont. i done that too XD. but i can only have it all in to main timeline and i want it all in a movie clip, but becuase the script is :

    on(rollOver){
    _root.stop();
    gotoAndPlay(2);
    }
    on(rollOut){
    _root.play();
    gotoAndPlay(1);
    }

    the _root. function goes to the 1st timeline.

    Is there any way to make the _root. function only go back one place?

    Thanks in advance

  2. #2

  3. #3
    I am not an expert
    Join Date
    Aug 2005
    Posts
    175
    create a movieclip and put ur animation in it and give and instance name to ur movieclip.

    on(rollOver){
    _root.movieclipinstancename.stop();
    gotoAndPlay(2);
    }
    on(rollOut){
    _root.movieclipinstancename.play();
    gotoAndPlay(1);
    }

  4. #4
    Not Real since 1985
    Join Date
    Feb 2002
    Location
    Netherlands
    Posts
    229
    Create a movieclip, put all frames in and change the as to:
    Code:
    on(rollOver){
    _parent.stop();
    gotoAndPlay(2);
    }
    on(rollOut){
    _parent.play();
    gotoAndPlay(1);
    }
    You can put your new movieclip inside another (and another and another ... )if you want because you are independent now of _root.
    Never accept the first 'impossible' unless it comes from a lady.

  5. #5
    Member
    Join Date
    Sep 2005
    Posts
    55
    wowowowowowowwow i love u all XD it worked!!!

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