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 8215211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:42:27+00:00 2026-06-07T11:42:27+00:00

I have the following Adobe Flash (ActionScript 3.0) movie: When a button is pressed

  • 0

I have the following Adobe Flash (ActionScript 3.0) movie:

enter image description here

When a button is pressed I want to play frame 17 to 24, and after this, I want to go back and play frame 10 to 16 in the same animation. I’ve tried something like this but unfortunately doesn’t works:

button.addEventListener(MouseEvent.CLICK, buttonClick);

function buttonClick(event:MouseEvent):void{
        gotoAndPlay(17);
        gotoAndPlay(10);
}

In other short words: after gotoAndPlay(17); I want to gotoAndPlay(10);

Thanks for your attention!

  • 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-06-07T11:42:30+00:00Added an answer on June 7, 2026 at 11:42 am

    Try this:

    stop();
    
    
    // Properties.
    var queue:Array = [];
    var currentBlock:Point;
    
    
    // Queue a section of timeline to play.
    function queueBlock(start:int, end:int):void
    {
        queue.push(new Point(start, end));
    }
    
    
    addEventListener(Event.ENTER_FRAME, enterFrame);
    function enterFrame(e:Event):void
    {
        if(!currentBlock)
        {
            if(queue.length > 0)
            {
                // Select and remove first block to play.
                currentBlock = queue[0];
                queue.splice(0, 1);
    
                gotoAndPlay(currentBlock.x);
            }
        }
        else
        {
            play();
    
            if(currentBlock.y == currentFrame)
            {
                // Got to the end of the block, end it.
                currentBlock = null;
                stop();
            }
        }
    }
    

    Which will let you do this:

    // Demo:
    queueBlock(17, 24);
    queueBlock(10, 16);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Air Application (Adobe Flash CS4, Adobe AIR 1.1, ActionScript 3.0). I've
I have following question on adobe omniture How we can register an iPhone app
I have the following Application tag code in my widget: <mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns:local=* width=100%
i have a flash video called abc.swf that i would like to play when
Hi i have created a simple menu in Flash. I have added the following
I have the following HTML code, what I want to do is to split
I have flash object(video). And i want to open a page while on click
What i want to do is the following procedure: Get a frame from the
Using Flash Builder 4.6, I am following http://www.flex-blog.com/adobe-air-sqlite-example (edit: link seems to be broken)
The ActionScript 3.0 Reference says the following about flash.net.NetConnection : The NetConnection class creates

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.