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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:34:06+00:00 2026-05-30T10:34:06+00:00

We need to generate around 8,000 nearly identical SWF files with slightly different text.

  • 0

We need to generate around 8,000 nearly identical SWF files with slightly different text. I know about flashvars, but unfortunately, we don’t have control over the publishing of these files and can’t have flashvars passed in. Ideally what I’m looking for is that we have a flash designer come up with a nice looking template for us with a placeholder text or element in the file. We can then call a command line utility many times to generate 8,000 copies of this with slightly modified text.

I’ve searched for an entire day now and haven’t found anything to help us out. Granted, I’m not a flash developer, but it seems like this would be pretty straight-forward.

  • 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-30T10:34:07+00:00Added an answer on May 30, 2026 at 10:34 am

    Why won’t MXMLC work?

    What is the target SWF format? If it’s 8 and below, you could try MTASC in combination with SWFMill (it takes text source files for code and graphics).

    SWF spec is open, there are several parsers that can analyze the SWF file to different degree. If it’s only a matter of replacing the content of a text field, then probably, it would take only as much as rewriting one tag that contains the text field and updating the total file size in the file header.

    If you need to do that in real time, this will really depend on amount of code your SWF contains and how much of it needs to be recompiled, but generally Haxe compiler is much faster then MXMLC, and for small files it can be feasible to compile them upon request, rather then pre-compile all of them and serve on demand (depends on what is more expensive, the time it takes to compile, or the space on the server).

    EDIT: say, you wanted to use MXMLC, you could have something like this:

    #!/usr/bin/env bash
    
    for i in {0..8000}
    do
        cp ./ClassWithText.template ./ClassWithText.as
        sed -i s/%pattern%/counter${i}/g ./ClassWithText.as
        mxmlc ./ClassWithText.as -o ./result-${i}.swf
    done
    

    NOTE: you wouldn’t probably be able to get mxmlc globally accessible because it has some hardcoded paths, so, you’d use an absolute path to the compiler, but the idea should be the same.

    Then, say, you had this text in the ClassWithText.template file:

    var myText:String = "%pattern%";
    

    it would be transformed into:

    var myText:String = "counter0";
    

    and then compiled, “counter1”, and then compiled and so on.

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

Sidebar

Related Questions

Basically need to generate custom(some different then yes no) messeges(alert) in JS , how
I'm playing around with BCEL. I'm not using it to generate bytecode, but instead
I need to generate a video in C#. I am messing around with Microsoft
I've got a thread that sends emails around. I need to generate ActionLinks as
I need generate action links outside controllers. I can use Html.Action in Views, Url.Action
I need to generate an editable xml file to supply content to a flash
I need to generate Entities/Object from selected tables - not all. Is this possible
I need to generate invoices in large batch which will be transformed to EDI
I need to generate the following in ASP.NET page. What's the best, easiest way
I need to generate multiple databases to SQL, so I need script/program to automatically

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.