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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:12:30+00:00 2026-06-13T15:12:30+00:00

I am trying to make the back button go to the first scene of

  • 0

I am trying to make the back button go to the first scene of the application…I am using this…

stage.addEventListener(KeyboardEvent.KEY_DOWN, fl_OptionsBackHandler);

function fl_OptionsBackHandler(event:KeyboardEvent):void
{
    event.preventDefault();
    stage.removeEventListener(KeyboardEvent.KEY_DOWN, fl_OptionsBackHandler);

    gotoAndPlay(1, "Scene 1");

    stage.addEventListener(KeyboardEvent.KEY_DOWN, fl_OptionsBackHandler);
}

This some what works. The problem is when it goes back to that frame and scene it doesn’t execute the code that is there. I have say some graphics made by as3 but it doesn’t draw them when it returns. I do delete them when it goes to the next scene. To get to the next scene I use a listener on a button and it basically goes to scene2 and deletes the children that I want deleted so they don’t carry on over to the next scene.

The other issue is even when it goes back to scene 1 and I click the button to go to scene 2 some stuff from scene one is rendered in scene two….Not everything but something. Any idea what could be wrong?

Thanks.

  • 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-13T15:12:32+00:00Added an answer on June 13, 2026 at 3:12 pm

    I don’t know how many frames you have in the scene1. But I am sure if your code is in the first frame of scene 1 you can’t see that because you haven’t stopped there rather you are playing it to what is next(gotoAndPlay). So, if you want to see the changes made dynamically you should stop there(where your code is).

    The Other Issue.
    In AS3, If you do some dynamic actions in the stage like the following, then it won’t get removed when you moving to another scene.

    1. add a movieclip,
    2. swap depth or changing child index,
    3. start drag and so on.

    I hope there is only one stage for the whole application. So, the objects in the stage are always visible regardless of what scene we are in.

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

Sidebar

Related Questions

I'm trying to make my site respond correctly to the back button. I've saved
I am trying to make the back button of an android device be a
I am trying to make an animated scroll to a bottom button using jQuery
I am trying to make a prensentation using jquery but the next button is
I'm trying to make a back button in a toolbar in jquery mobile for
I am trying to make a slideshow-like application in Java using NetBeans. I have
I'm trying to make a javascript slideshow that has a forward and back button.
So I'm trying to make a registration page that feeds back a variable when
Short question: I'm trying to make that in a given page (uses tabs) back
How can I make a ForeignKey refer back to the object itself? I'm trying

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.