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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:46:59+00:00 2026-05-18T06:46:59+00:00

I have a relativly simple question. What would be the best way to recreate

  • 0

I have a relativly simple question. What would be the best way to recreate a multiple page application without using the timeline. I created a pagemanager class that add’s and removes classes, with classes acting as pages. Now this doesn’t really seem like a very effective method.
I believe flex offers a similiar approach as HTML, but it’s already to late to move to flex at this point.

Any suggestions?
Thanks in advance.

  • 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-18T06:47:00+00:00Added an answer on May 18, 2026 at 6:47 am

    I recommend you create an own class that works similar as the viewstack in Flex. Use it with an interface (for example IPage) to force methods that you viewstack uses to load and unload/dispose the pages. Once you run the changePage method on the viewstack, you dispose the current page and open the new page. When you have this running it is easy to add transitions.

    Something like this (This code is NOT validated):


    _view = new ViewStack();
    _view.addPage(Pages.INTRO, new IntroPage());
    _view.addPage(Pages.OUTRO, new OutroPage());
    _view.changePage(Pages.INTRO);
    

    IPage.as

    package
    {
        public interface IPage
        {
            function open() : void
    
            function close() : void
        }
    }
    

    ViewStack.as

    package
    {
        import flash.display.Sprite;
    
        public class ViewStack extends Sprite
        {
            public function ViewStack()
            {
                super();
            }
    
            public function addPage(pageID : String, page : IPage) : void
            {
                // add page to list
            }
    
            public function removePage(pageID : String) : void
            {
                // remove page from list
            }
    
            public function changePage(pageID : String) : void
            {
                if(_currentPage)
                {
                    _currentPage.close();
                    removeChild(_currentPage);
                }
    
                _currentPage = getPageById(pageID);
                _currentPage.open();
                addChild(_currentPage);
            }
    
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a relatively simple question. Will using PHP guarantee that a form is
I have a relatively simple question that I cannot seem to find the answer
I have a question, and I'm sure there is a relatively simple answer to
I have a relatively simple application which I need to make native Mac OSX
Making a simple three question PHP quiz. Each question is displayed on a page
This is a relatively simple question: I can trim a text with ellipsis using
I have a relatively simple abstract class. I've simplified it further for this question.
I have a relatively simple question that I cant figure out and I cant
This is a relatively simple question, but the specifics are confusing me. I have
I have a relatively simple question that my colleagues and I cannot figure out.

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.