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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:12:43+00:00 2026-05-18T07:12:43+00:00

Is it possible to inject data, for example a collection of assets (video, images…),

  • 0

Is it possible to inject data, for example a collection of assets (video, images…), in an swf at compile time?

We have a flex application that needs to be able to export an swf at runtime that contains all the necessary data, because it needs to run as a standalone application (on- and offline).

The idea so far was to create a server side script that calls the flex compiler and feed it the data it needs. This approach seems to work fine using the [Embed] tag for single files, but it gets kind of messy when trying to inject collections of data that vary in length for each exported swf.

We could generate an mxml file with one embedded variable for each asset and include it at compile time, but that approach seems for from ideal.

We’ve looked into some actionscript bytecode libraries, but those do not seem to be fit for this.

Any suggestions or other approaches for this kind of problem?

Thx,

Bert

  • 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-18T07:12:43+00:00Added an answer on May 18, 2026 at 7:12 am

    [Embed] is definitely the way to go. You can generate an AS file that has lots of embeds. While the generated code might be a bit ugly, you can generate a nicer api too. For example, if you want an array, generate code like this:

    [Embed(...)]
    private var img_0:Class;
    
    [Embed(...)]
    private var img_1:Class;
    
    [Embed(...)]
    private var img_2:Class;
    
    public var images:Array = [img_0, img_1, img_2];
    

    That way the only ugliness is in private variables only the code generator will see. The public variable is an array.

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

Sidebar

Related Questions

Is it possible to have Spring inject the JPA entityManager object into my DAO
I have this curiosity, Is it, in some way, possible to inject javascript in
Is it possible to post data from an asp.net application in one domain to
I have a swf template that can be used with different data input such
Is is possible to inject IPrincipal using Castle Windsor into my asp.net mvc controller.
Is it possible to inject an interface into an existing 3rd party class that
Is it possible to inject ejb's into pojo's using the @EJB annotation? If it
Is it possible to inject an instance of logger class object using Managed Extensibility
Is it possible to inject a javascript file into the DOM and immediately execute
is it possible inject static property, like I do below, because it does not

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.