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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:22:29+00:00 2026-05-22T14:22:29+00:00

Good day to everyone. I’m here today to seek help about Flash CS4 and

  • 0

Good day to everyone. I’m here today to seek help about Flash CS4 and ActionScript 3.0. The story starts when one day, my boss asked me to make a flash presentation about their upcoming user training for a newly developed software. I was enthusiastic and excited about it because it’s been a long time that I did not use Flash (note that I don’t have any experience in ActionScript 3.0). At first, everything was a bit rough as I need to recall how to properly use the frames to create a successful animation. As I was about to finish the project, my boss approached me again and asked if I could insert a menu page in front so that the users won’t have to replay the whole thing again just to look for a little something on that part of the movie. So yea, at first I was abit hesitant to accept. I said that it will work with Powerpoint. But she’s a total pusher and I was forced to say yes. Now I’m having this problem about how to make a flash button load a swf movie. I’ve tried searching all over the net for tutorials but most of the times the “getUrl” and other stuff are said to be outdated. Help please?

  • 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-22T14:22:30+00:00Added an answer on May 22, 2026 at 2:22 pm

    This answer is based on my interpretation of your question, which is: “Can I create an SWF that acts as a menu, and load in different SWF files based on what the user clicks in the menu?”.

    The answer is of course yes, and here’s how:

    A few things you need to understand / look at:

    1. Loader and URLRequest classes.
    2. Event Listeners for buttons.

    Here’s a function to load your SWF:

    var loadedSWF:Loader = null;
    
    /**
     * Loads an SWF and adds it to container once complete
     * @param file The URL to the SWF to load
     * @param container The container to add the SWF to
     */
    function loadSWF(file:String, container:MovieClip=null):void
    {
        if(container == null) container = MovieClip(root);
    
        // removes the previously loaded SWF
        if(loadedSWF != null)
        {
            if(loadedSWF.parent) loadedSWF.parent.removeChild(loadedSWF);
        }
    
        var req:URLRequest = new URLRequest(file);
        loadedSWF = new Loader();
        loadedSWF.load(req);
    
        addChild(loadedSWF);
    }
    

    And here’s how to use this function when you click a button:

    mybutton.addEventListener(MouseEvent.CLICK, _click);
    function _click(e:MouseEvent):void
    {
        loadSWF("myfile1.swf");
    }
    

    As per question in comments:

    You could use navigateToURL() instead of a Loader and set up your external SWFs on different pages (like a website basically). If you’re going to do this it might even make more sense to keep your main index page just plain HTML and launch your pages in new windows. If you still want to have your main page as flash then clicking through to a page in a new window is done like this:

    button.addEventListener(MouseEvent.CLICK, _click);
    function _click(e:MouseEvent):void
    {
        var req:URLRequest = new URLRequest("somepage.html");
        navigateToURL(req, "_blank");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good day everyone! I would like to ask for help regarding my code here.
Good day, everyone. I need a compiled and ready-to-use Flash lib, which is able
Good Day everyone!! One question.. or two.. Is it possible to use Expression Blend
Good day everyone, this is one of those areas that is a little over
Good day everyone. I have a question about making and using derived classes of
Good day everyone. I would like to ask for help regarding my code to
Good Day Everyone I was hoping if you could help me understand the concepts
Good day everyone, so here, I have a problem with my repeater control's SQL
Good day, everyone! I have here a program that sorts 50,000 words from a
Good day everyone. This problem was part of another one which it as been

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.