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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:45:55+00:00 2026-05-27T15:45:55+00:00

I am about to build a website in flash and AS3 where some pages

  • 0

I am about to build a website in flash and AS3 where some pages will be given content through the flash authoring program, and others will be generated dynamically by as3 (not just the content of the page, but new pages themselves will be added through AS3). I am trying to figure out a general code architecture to support this.

The first solution that comes to mind is this: having all child display objects for any single page’s content housed in a container movie clip. This way I would have one movie-clip on stage for each page. On first thoughts, I could manage which page the person is on by setting the alpha to none, disabling all mouse interactivity for the Movie-clips which are not the current page. But I’m not certain this is the best way to manage memory. The other possibility is to move these movie clips outside of the bounds of the stage when not in use, but this might suffer from the same memory problems. Lastly, I could just add and remove display objects, so that only one movieclip at a time is on stage, but how would I keep the pages which were built in the flash authoring program? Could I store all of that somewhere in AS3, so I could add the display children back in their original form?

If someone knows of some articles which might deal with these problems, or explain simple design patterns for AS3/flash web pages, that would be great. I’m sure someone smarter than me has thought this through, and I don’t want to re-invent the wheel.

  • 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-27T15:45:55+00:00Added an answer on May 27, 2026 at 3:45 pm

    I would “export” each “page” to their own class (from within the library), along with a corresponding .as file for any specific code for each page. Then have a MovieClip named something like mainContent_mc that would always exist on stage as a placeholder.

    When you want to load a new page call a function like:

    function loadPage(pageNumber:int):void {
        //Remove any children of the content placeHolder
        //TODO: Handle any other memory management here as well
        while(mainContent_mc.numChildren > 0){      
            mainContent_mc.removeChildAt(0);
        }
    
        //Add the desired page
        switch(pageNumber){
            case 0:
                var p0:HomePage = new HomePage();
                mainContent_mc.addChild(p0);
                break;
            case 1:
                var p1:AboutPage = new AboutPage();
                mainContent_mc.addChild(p1);
                break;
        }
    }
    

    Of course if your pages are really small memory wise, you could get by with simply setting .visible = false; for all of your “pages” but I would still organize them as mentioned above.

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

Sidebar

Related Questions

I have to build a html website, which will contain about 50+ pages. The
I'm about to take the plunge and build a PC, and it will probably
I im quite new to Joomla and im about to build a website in
currently I'm having some problems with my preloader. I have an as3 class website
I have a question about the way I should build my website. What if
I am planning to build a website completely in Flex. All the contents will
I would like to ask you about how to build secure website. If I
i am currently learning about javascript namespaces as i build a website and i
I'm using the Facebook C# SDK for build an website with some facebook integration
I'm about to build a search page on a website and the search is

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.