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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:34:36+00:00 2026-06-08T04:34:36+00:00

I know how to access external XML file in ActionScript 2, however in this

  • 0

I know how to access external XML file in ActionScript 2, however in this project the requirement is that the SWF file must be self-contained.

The reason I’m keeping the XML is because it’s the output of another program, so if I can keep the XML as it is, I avoid manual data input.

I understand that there’s the meta-tag available in AS3, but I’m stuck with AS2 unfortunately.

Is there a way to embed the XML file, or read the data and store as a variable at compile/publish time with ActionScript 2?

  • 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-08T04:34:40+00:00Added an answer on June 8, 2026 at 4:34 am

    After testing extensively, I found that my limitation is too much to depend solely on Flash to solve my problems.

    Because I’m limited to AS2 and I can’t use external XML, it means that…

    1. I can’t embed the XML (AS3 feature).
    2. If I try to paste the entire XML into a textfield on the stage, it surpass the max char limit of 65535.
    3. I can’t paste the XML straight into code editor (multi-line string literal is AS3 feature).
    4. For #3, Even after I escaped all quotes and remove line-breaks, Flash will choke on a variable that long.

    So what I did was create a separate HTML page, using jQuery I load the target XML file and clean up all the data the Flash file doesn’t make use of, and spit out the result onto a div, properly escaping angled brackets and quotes, this way the result XML data is small enough to fit into a textfield on the stage that I can use as input.

    So the work flow becomes:

    Generate XML -> Open HTML page -> Copy Cleaned XML -> Paste into Textfield in Flash -> Publish
    

    It might be another step, but HTML/JavaScript can run anywhere and is pretty braindead simple for my users, so it ended up being a good solution considering my limitations.

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

Sidebar

Related Questions

I just want to know how to access an array in SMARTY that have
As far as I know I can access the web.xml <context-param> s by making
Can anyone let me know how can access an element of a list that
We know that if we try to access a nonexistent key of std::map with
Does anybody know if you can access the SaevFileDialog control that's used by the
I have two machines, A and B that both access an external hg repository.
I'm trying to record sound using Android Emulator. I know that this question is
I don't know how to get access to the drupal variable in the external
I need to access some variables of an external php file in most of
I know, this is just so common. However, I am not able to get

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.