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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T21:41:44+00:00 2026-05-21T21:41:44+00:00

In a flash project, I am loading an external SWF that has some symbols

  • 0

In a flash project, I am loading an external SWF that has some symbols in its library exported for ActionScript. I need to create instances of those symbols but, since it’s a loaded SWF I don’t have direct access to that classes.

Any ideas?

  • 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-21T21:41:45+00:00Added an answer on May 21, 2026 at 9:41 pm

    Well, there are several ways of doing this.

    The nicest could be this:

    var ldr:Loader = new Loader();
    ldr.contentLoaderInfo.addEventListener("complete", ldrDone);
    ldr.load(new URLRequest("external.swf"));
    
    function ldrDone(evt:*):void
    {
        var externalclass:Class = evt.target.applicationDomain.getDefinition("ExternalClass") as Class;
        var temp:MovieClip = new externalclass();
        addChild(temp);
    }
    

    Where ExternalClass is the exported classname in the external swf.

    Or, simply use a function in your external movie, where you return the specific objects on demand.

    Like put this in your external swf:

    function getThisClass():*
    {
         return new MyClass();
    }
    

    This is not that awesome as the first one, but could lead to other ideas too.

    Hope this helps.

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

Sidebar

Related Questions

I've inherited a flash project (my first) that has many existing symbols in the
I have created a small flash CS4 project that has a few custom components
I am having an issue loading an external swf into my as3 project. I
I'm currently working on a flash project that has an intro video that plays
i want to add a SWF metadata tag to an ActionScript Project in Flash
I have a Flash sprite in my Director project. Under the Properties of that
I work on a big Flash project as the web backend guy that delivers
A project of mine involves a flash movie (.swf) in a webpage, where the
I'm working on a flash web application (Actionscript 2.0) for my honours project but
For a new project with Flash I was looking for something along the lines

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.