Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7676519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:13:04+00:00 2026-05-31T17:13:04+00:00

I’m new in games development, am trying to create a simple game in flash-cs5.

  • 0

I’m new in games development, am trying to create a simple game in flash-cs5. I created 3 motion tweens in timeline. i’m trying to stop a specific motion tween, when that tween’s movieclip is clicked while other tweeens are running and also when the stopped movieclip is clicked again i want to resume the tween while other tweeens are running.

thanking in advanced.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T17:13:05+00:00Added an answer on May 31, 2026 at 5:13 pm

    The following is assuming you have each motion tween inside its own movieclip. I am not aware of any method of stopping one tween while leaving the other playing on a single movieclip (or if they are each on the main stage).

    That said, you can stop and start animations fairly easily. Below is an example of how to stop a motion tween where it is in playback, and then resume it from that point.

    In the example, “myMovieClip” is the movie clip we’re working with. We’re going to leave the rest of the movieclips alone, as they’ll keep playing on their own. I’m also assuming that myMovieClip is playing by default.

    The following is in AS3. Place it on the Actions panel for your main stage (first frame if you have multiple frames.)

    Also, ensure you have named your MovieClip. To do this, click the MovieClip on your stage in design mode, and then click Properties. There should be a text entry box towards the box. Write the name you want for your MovieClip there.

    //Declare a boolean variable that determines whether or not the movieclip timeline is playing.
    var ClipPlaying:Boolean = true;
    
    //Add the mouse click event listener to the movie clip.
    myMovieClip.addEventListener(MouseEvent.CLICK, StopOrStartClip);
    
    //Declare the function for the above event listener.
    function StopOrStartClip(evt:MouseEvent):void
    {
        //Switch statements are my personal favorites...they're more streamlined than if statements.
        switch(ClipPlaying)
        {
            //If the clip is playing it, we stop it and set ClipPlaying to false.
            case true:
                myMovieClip.stop();
                ClipPlaying = false;
            break;
            //If the clip is not playing, we start it and set ClipPlaying to true.
            case false:
                myMovieClip.play();
                ClipPlaying = true;
            break;
        }
    }
    

    The most important functions to remember here are:

    myMovieClip.stop();
    

    This freezes your animation at its current position.

    myMovieClip.play();
    

    This resumes your animation playback from its current position.

    When you use either, remember to replace “myMovieClip” with the name of your movie clip!

    By the way, slightly unrelated, I highly recommend the book ActionScript 3.0 Game Programming University to learn how to create Flash games.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create an if statement in PHP that prevents a single post
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I am doing a simple coin flipping experiment for class that involves flipping a
I am trying to render a haml file in a javascript response like so:
Seemingly simple, but I cannot find anything relevant on the web. What is the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.