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

  • Home
  • SEARCH
  • 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 544765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:41:24+00:00 2026-05-13T10:41:24+00:00

I have two as3 projects. Project A has 2 files ( fla with 1

  • 0

I have two as3 projects. Project A has 2 files (fla with 1 frame and some components and as with some behavior and a default constructor). I want to use project A in my project B through as3 code. But when I do something like A a = new A(x, y, z); I receive lots of errors that in my A.as I am using undefined properties (those defined in my A.fla file).

So, right now I am using a loader to dynamically load A.swf into my project B. It is probably not an efficient way to do this. What’s the correct way to import project A in project B?

Thanks.

  • 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-13T10:41:24+00:00Added an answer on May 13, 2026 at 10:41 am

    loading the swf is not a bad way to do it..

    ****EDIT I forgot the most obvious answer:
    If you are using CS4, you should go to your publish settings and check “Export as SWC”
    In flaB, link the external library ( Actionscript settings) to contain the SWC flaA just generated. Now, you can say within flaB
    addChild(new flaAClass());

    This gives you compile-time access to any library symbol in FLA A. This means you can’t use the document class, so make sure you create a library symbol for what you want to bring in to FLA B and export it for actionscript. Then set the symbol’s class label to something unique. Replace “flaAClass” in the example above with your name for the symbol.

    But you shouldn’t be defining any properties in your FLA itself. A good standard to work under is as so:
    1) Go to your Publish settings and UNcheck “Automatically declare stage instances”.

    2) Set up your Document class/movieclip/whatever so that there’s a reference to the stuff on the stage in the Class (This is why you must do step 1 — otherwise it will complain you declare it twice)

    Example: You have movieclip “mcA” on the stage.. your class might look like this:

    package {

    public class mainA extends MovieClip {
    public var mcA:MovieClip;
          public function mainA(...args):void
          {
             trace(mcA); //If mcA is on the stage and this is the document class, this will 
             //return [object MovieClip]
          }
    }
    

    }

    3) Attach as a document class or base class to something in your movieclip and you can reference it this way.


    The above will work for a custom dynamic class, but won’t contain anything that you brought with the FLA. If you want to take things out of fla A and put them into fla B.. you should load the SWF first, and then pull a class out of its library (but that may be unnecessary complexity you don’t need).

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

Sidebar

Related Questions

I have a project which has several components loaded by a single preloader swf.
Im working with FlashDevelop and have two main projects, all pure AS3 projects. When
I have the following two projects in in Flex Builder 3: One AS3 library
I have two as3 files file1.as and file2.as. When a user presses a button
I have two arrays of System.Data.DataRow objects which I want to compare. The rows
I have two classes, and want to include a static instance of one class
I have two spreadsheets... when one gets modified in a certain way I want
I'm working on a large-size dual AS3/Flex project (some parts are pure AS3, other
I want to create a tab-enabled popup window in an AS3 Air project. Currently,
i have 5 checkboxes in my vb.net webform i want when two checkboxes are

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.