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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:35:46+00:00 2026-06-07T02:35:46+00:00

Overview: I have a SWF banner ad template which loads in JSON from a

  • 0

Overview:

I have a SWF banner ad template which loads in JSON from a platform that I have developed and then cycles through some products that were specified in that JSON. Each product is made up of your standard title, price and image.

On the platform, the user has the ability to modify the JSON feed via some UI tools such as image upload, title change etc.

Once they’ve done this, they can save and preview the ad. The preview is a SWF file embedded on the current page with some FlashVars that reference the location of the JSON they just created.

The request:

The user wants the ability to be able to archive all versions that they have created locally (as SWFs on their drive).

I offered a few solutions such as:

  • Download a bundle containing a HTML page with the SWF embedded with the appropriate FlashVars define in the HTML (this is easy).
  • Download a bundle that contains an XML document in the same directory as the SWF, which the SWF can load (this is a slightly altered version of the SWF) and obtain the JSON URL from.

Unfortunately, they are pushing to have a single SWF downloaded which they can save as an encapsulated file. The idea is that this eliminates an abundance of files down the track, as well as the ability to place components in the wrong directories, etc.

Question:

I need to use PHP (if possible) to do the following:

  1. Create a copy of the SWF template.
  2. Alter the value of the variable inside the copied SWF containing the URL to the appropriate archived JSON URL.
  3. Save that version and then begin downloading it.

Is this possible? If so, how?

  • 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-07T02:35:48+00:00Added an answer on June 7, 2026 at 2:35 am

    I’ve heard of companies using the mxmlc compiler to encapsulate a monolithic build creating custom SWFs server-side.

    This has been leveraged to build SWFs on the fly which would otherwise require heavy loading of resources.

    The approach:

    1. PHP script would alter an ActionScript file, setting variables and [Embed] resources.

    2. PHP script would call mxmlc command line compiler to build the SWF, essentially the same as Flash Builder would compile a pure ActionScript project.

    Perhaps an ANT task could automate the build.

    References:

    • Compiling swf from php using mxmlc and "exec" – loading config file but no swf in browser
    • http://www.senocular.com/flash/tutorials/as3withmxmlc/
    • http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7ffd.html
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a overview page containing a list with some links from which multiple
Overview I have an iOS app which sends local notifications at specific dates. I
Overview: I have an advancedDataGrid that I am using a GroupingCollection on and I
Overview I have an iOS project which contains 2 navigation controllers as shown in
I have a document that is an overview document within a folder, there are
Overview: I have an Expandable List View which displays items of the type ToDoElement
I have an xml document that holds the navigation structure for an swf file.
Overview I have a iOS project in which the view controller implementation which has
I have a MainWindow with a table that shows all books in an overview.
Overview: I have an application that sometimes must make something with celery- and if

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.