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

The Archive Base Latest Questions

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

I’m rusty on programming and don’t understand the difference between loading internally and externally.

  • 0

I’m rusty on programming and don’t understand the difference between loading internally and externally. With a game made with Flash Develop, all of my assets will be in the package. There are not a lot of them (20 images and small mp3 ~2 MB). What are the problems with loading my assets with the code below? Or why would I have to create a URL loader with a wait timer? Any comments would be appreciated.

public class ImageLoader 
{       
    private var alImages:Array = new Array;     

    public function ImageLoader() 
    {
        [Embed(source = "../lib/greenbutton.png")] 
        var imgGreenButton:Class;
        alImages.push(["imgGreenButton", imgGreenButton]);

        [Embed(source = "../lib/tray.jpg")]
        var imgTray:Class;
        alImages.push(["imgTray", imgTray]);    

    }

    public function getBitmap (search:String):Bitmap {          

        // Create Cyan square for load fails
        var tempData:BitmapData = new BitmapData(40, 40, false, 0x000FFFF);
        var tempBitmap:Bitmap = new Bitmap (tempData);

        for (var i:int = 0; i < alImages.length; i++) {         
            if (alImages[i][0] == search) {             
                tempBitmap = new alImages[i][1];                    
            }
        }
        return tempBitmap;
    }
}
  • 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-27T06:55:00+00:00Added an answer on May 27, 2026 at 6:55 am

    when you will add any assets (means) MovieClip/Image as a Part of Design time Flash Library of *.Fla file. It’s called Internal Assets.

    If you will load any content in the your compiled swf using ActionScript from outside of the Swf file, it’s called external assets.

    For Internal Assets:
    1. It will be compiled at the time of your Fla file compilation.
    2. your swf file become a big with comparison of external assets.
    3. initial loading time will be high with comparison of external assets.

    For External Assets:
    1. It will be not compiled at the time of your Fla file compilation.
    2. your swf file become a small with comparison of internal assets.
    3. initial loading time will be low with comparison of internal assets.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but

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.