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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:48:23+00:00 2026-06-11T14:48:23+00:00

I have inherited an Actionscript file from an old project and I’ve been told

  • 0

I have inherited an Actionscript file from an old project and I’ve been told that it’s possible to generate a SWF from it, though I don’t have a corresponding FLA file.

The code within the file follows this form:

package {

    import flash.display.LoaderInfo;
    import flash.display.MovieClip;
    import flash.display.Sprite;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    // additional import statements

    [SWF(width="640", height="480", frameRate="30", backgroundColor="#FFFFFF")]

    public class MyClass extends Sprite {
        // code, code, code
    }
}

I have tried bringing this into Flash Builder and using “Run as Web Application” but I get a bunch of errors I don’t understand (calls to undefined methods, definitions that can’t be found).

I have done quite a bit of AS2 coding but not so much AS3 and zero Flex. I’m not sure if I am just not up to date on some of the latest methods for compiling SWFs without a corresponding FLA.

Is there a way to compile this type of file into a SWF? Or am I going about it the correct way but possibly just missing some dependent files?

  • 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-11T14:48:24+00:00Added an answer on June 11, 2026 at 2:48 pm

    Is it possible to generate a swf from an .as file without the original .fla:

    Yes, IF you have all the dependencies.

    When using flashBuilder, and you look at all your imports, anything that doesn’t start with flash. or mx. is another file you’ll need. This includes all imports within those class files as well.

    Also, many .fla’s use display objects that are in the library. If this is the case, those would need to be exported to another swc/swf and then linked/loaded to your flashBuilder project. That includes components (the ‘fl’ package).

    So to sum it up:
    If the original.fla is just an empty project with a document class linked, then you’ll be fine if you have all the needed class files that are imported.

    If the original .fla has library assets that are linked or dropped onto the timeline, then you will have issues if you can’t get the original .fla.


    How To Do This In Flash Builder
    In flash builder, create a new ActionScript Project.
    Put all the dependent files in the src folder of the project it just created – keeping their folder structure/hierarchy (the package name represents the folder it expects the .as file to be in relative to the src folder).

    In the tree view, find the main .as file (documentClass), right click and tell it that it is the default application file (if you want, you can delete the file that was automatically generated when you created the project – projectname.as).

    Run the project and it will put the swf in the bin (or bin-debug) folder with the same name as the project.

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

Sidebar

Related Questions

I have inherited a WiX project from a contractor that recently left. When I
I have inherited a project that logs data from a single board computer to
I have inherited a medium sized project that I would like to add an
I have inherited a project that uses LLBLGen Pro for the DB layer. The
We have inherited an application (Java-based, running on WebLogic 10.3.5) that makes extensive use
I have inherited work from a previous employee. The issue I'm having is a
I have inherited some HTML code and have been asked to align the two
I have inherited a few programs from a previous developer who was a little
We have inherited a vb.net 2003 web project, it seems to reference another web
I have inherited a somewhat messy query that I am working on refactoring to

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.