A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Housing multiple mouth frames in one symbol and switching between them

  1. #1
    Junior Member
    Join Date
    Nov 2002
    Posts
    14

    Housing multiple mouth frames in one symbol and switching between them

    I read a tutorial a while back about making a symbol for a character's mouth in an animation, and making multiple frames within the symbol, with one for each different mouth position I'd like to use (Open and saying a certain letter, smiling, frowning, etc.). What I can't figure out is how to keep it from constantly animating repeatedly through all the mouth frames on its own in each shot when I just want it to stay in a certain position on certain sequences of frames. I also can't figure out how to select the precise frame I want when it needs to change.

    I'm using CS4, if that means anything.

  2. #2
    Senior Member Steven FN's Avatar
    Join Date
    Mar 2010
    Location
    CA, USA
    Posts
    276
    Just make a MovieClip with an instance name of "mouths" then put a stop action on the first frame of "mouths". Add more frames and give them frame labels accordingly, smiling mouth is labeled "smile", etc.

    Then in your animation timeline, add actionscript that says:

    Actionscript Code:
    mouths.gotoAndStop("smile");

    You would add this into a separate layer from your animation, so you can select the precise frame to change on. Create new keyframes for each mouth change.

    Hope that makes sense for you. This also assumes you are using AS2.

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