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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:30:51+00:00 2026-05-23T15:30:51+00:00

My goal is to make a flash/as3 program that would pull multiple sets of

  • 0

My goal is to make a flash/as3 program that would pull multiple sets of data (images and texts) from the database and compile and save a flash video project for each one. What might be the best way to go about making this work? I checked but wasn’t able to find a function that would publish the flash project in it’s current state, so I don’t think I can execute the entire process in a single flash/as3 file. My only other option is to have some other program/batch file take care of the querying the database and compiling multiple flash/as3 movies by starting up a flash program and passing it the parameters of the data it needs to build 1 complete project for 1 set of data. Is there a program that can help me create .swf files automatically? Is it even possible to pass in init params to flash/as3 project? Any thoughts or ideas on this would be greatly appreciated :)!

  • 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-23T15:30:52+00:00Added an answer on May 23, 2026 at 3:30 pm

    I’m not sure if I’ve understood your question in entirety, but you could use the command line compiler mxmlc.exe from the Flex SDK to compile your flash project dynamically.

    You may generate the code (with your application) for your flash application as .as file, where you can use embed statements for your images and string variables for your text. This generated main class should use code from other class to handle these "dynamic data". Then give that generated class to the compiler as start point for your flash application and you will get a .swf as result.

    Edit

    Here an example for a static class that handled the dynamic data.

    package  
    {
        import flash.display.Sprite;
        import flash.text.TextField;
        
        public class Base extends Sprite
        {
            
            public function Base() 
            {
            }
            
            public function init(dyn:Main) : void
            {
                // add a new instance of the embedded image
                addChild( new dyn.DynamicImage1() );
                // add a new text field with the dynmaic text
                var text:TextField = new TextField();
                text.text = dyn.DynmaicText1;
            }
            
        }
    
    }
    

    And here an example for the generated main class

    package 
    {
        import flash.display.Sprite;
        import flash.events.Event;
        
        public class Main extends Sprite 
        {
            
            [Embed(source = '../relative/path/to/dynamic/image.png')]
            public var DynamicImage1:Class;
            
            public var DynmaicText1:String = "This is directly from Database";
            
            public function Main():void 
            {
                if (stage) init();
                else addEventListener(Event.ADDED_TO_STAGE, init);
            }
            
            private function init(e:Event = null):void 
            {
                var base:Base = addChild(new Base()) as Base;
                base.init(this);
            }
            
        }
        
    }
    

    Now give Main to the compiler as start point.

    At all, this is only a simple example and could be far more generalized using arrays, Vector<T> and Interfaces and so on.

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

Sidebar

Related Questions

My goal is to make a Button that has two Content values. Imagine a
Goal: Make a decorator which can modify the scope that it is used in.
I have a UITableViewCell that has an integrated UITextView. The goal is to make
My goal is to make an HTML page that is similar to a photo
The ultimate goal is to use JSFL to export a 2D skeleton from Flash.
I would like to make an addon to browser, that would show image of
My goal is to make the title of every external link equal to its
My Goal I would like to have a main processing thread (non GUI), and
My goal is to maintain a web file server separately from my main ASP.NET
my goal is to write a stored proc that can collect all field values

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.