A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Animating Character

  1. #1
    Member
    Join Date
    Nov 2006
    Posts
    93

    Animating Character

    I have it so an MC appears and does the animation it has inside it (at the moment for test purposes it just moves down). I placed it on a seperate frame on a layer, and I'm using gotoAndPlay to make it appear and animate.

    However it loops the animation. What I want to happen is on command, an MC to appear, play its animation once, and then disapear. How should I go about that?
    Last edited by xtrava; 11-21-2006 at 05:32 PM.

  2. #2
    Student
    Join Date
    Apr 2001
    Location
    -
    Posts
    4,756
    put on the last frame inside the movieClip a script like this:
    Code:
    stop();
    this._visible=false;
    and from the main timeline trigger from the timeline or a button something like this:
    Code:
    movieClipInstanceName.visible=true;
    movieClipInstanceName.gotoAndPlay(1);
    of course you could archive the same with just an empty frame inside the movieClip as the last frame so you wouldn´t need the _visible command. Is this a solution that works for you?

  3. #3
    Member
    Join Date
    Nov 2006
    Posts
    93


    Thanks. I can get on with making some silly animations now :P Basically I have a little fella who stands still in the middle of the stage, and when you press say, the right key, his right arm will lift with a thumbs up :P

    Thanks

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