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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:09:32+00:00 2026-06-11T13:09:32+00:00

Usually we load external swf file into Flash using ‘Loader’ class. var loader:Loader =

  • 0

Usually we load external swf file into Flash using ‘Loader’ class.

var loader:Loader = new Loader();
loader.load(new URLRequest("http://domain/path/my-external-swf.swf"));

However, the external swf file is now embedded in my flash document:

[Embed("my-external-swf.swf")]
public var component:Class;

Is it possible to tell ‘Loader’ to load from embedded content instead?

  • 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-11T13:09:33+00:00Added an answer on June 11, 2026 at 1:09 pm

    You should be able to simply do this:

    addChild(new component());
    

    Hopefully the name component won’t collide with any reserved variables.

    If you still would like to use the Loader class, as @Lukasz advises, use the loadBytes() method and pass the embedded asset. If your swf also contains code, you might need to initialize the LoaderContext:

    var ctx:LoaderContext = new LoaderContext(false,this.loaderInfo.applicationDomain);
    ctx.allowCodeImport = true;
    Loader(addChild(new Loader())).loadBytes(new Components(),ctx);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to load a file (usually ASCII) into a DataSet . How can
Everytime I load my model into XNA, I can usually see it far off
I usually load images in Applets using: this.getImage( getCodeBase(), myimage.png ); or myapplet.getImage( getCodeBase(),
Using NHibernate I usually query for single records using the Get() or Load() methods
I want to load an external XML file in a unit test to test
I want to load the default text into textarea like this Usually we can
Many iPhone projects use Pull-to-Refresh pattern to load more results (usually new data from
I am using Omni auth gem to load twitter feeds into my application. But
Usually, in order to launch a new Activity and get its result, from an
In a tableview we usually load like a few records (example: 10 records), and

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.