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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:15:03+00:00 2026-06-07T10:15:03+00:00

I have a .fla that gets opened up, a few actionscript variables (a url,

  • 0

I have a .fla that gets opened up, a few actionscript variables (a url, title etc.) are changed, and published. This happens a lot, and it’s the same variables. I would just keep the .swf file with an XML file, but it being uploaded to a third-party platform, so all of the information needs to be contained in the .swf file. There is no way to add the variable information to the third-party site.

I want to know if there’s a way to take the new variable information from an xml file or something at publish time (like a script?) without having to open up the Flash IDE. To be able to do a bunch of these at once would also be great.

Any help/links/leads would be appreciated. Google did not help me. Is this even possible?

  • 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-07T10:15:06+00:00Added an answer on June 7, 2026 at 10:15 am

    Without opening the Flash IDE would require loading external resources or a build script using ANT or simply with the mxmlc compiler, something to the effect of:

    mxmlc -o output.swf -source-path="src/" -library-path+=library.swc. 
    
    • Flex compilers
    • About mxmlc

    As you indicate embedding XML at compile time, you could either embed the XML using the [Embed] metadata tag or paste your XML in a class.

    Embed XML

    package
    {
        public class XmlData
        {
            [Embed(source = "data.xml", mimeType = "application/octet-stream")]
            public static const Xml:Class;
        }
    }
    

    To use the XML, instantiate the xml as:

    var xml:XML = new XML( new XmlData.Xml );
    

    XML variable

    Otherwise, you can simply paste your xml in a class like so:

    package
    {
        public class XmlData
        {
            public static const xml:XML =
                <root>
                    <element />
                    <element attribute="value">data</element>
                </root>;
        }
    }
    

    Although you must compile your SWF, this approach is easy because you can simply paste your XML document to the class.

    This would be referenced as normal with e4x and no asynchronous load required.

    var data:String = XmlData.xml.element.@attribute;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a 105 mb flash .fla file that needs to be published. It
I have a series of large fla files that were being published into swc's
I have an ActionScript 2.0 file that contains a small library. This library parses
Have one. Fla (Flash) file that uses ActionScript 1.0. Need to have it in
I have one particular FLA that is crashing every time I try to compile
I have a Flash .fla file that has SimpleButton. That SimpleButton is basically a
have a problem. At first look at this HTML <div id=map style=background-image: url(map.png); width:
new to Flash - I have a main FLA that loads and runs my
I have an FLA done in Flash 10, and some AS3 code that manipulates
I have an an fla file, and I'm sure that it has some action

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.