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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:28:29+00:00 2026-06-01T09:28:29+00:00

We have a project that has been built in Flash and as3. It is

  • 0

We have a project that has been built in Flash and as3. It is a video player of sorts that we want to fully customize. We have different images and color schemes that we want to be able to change very quickly. Right now we have config constants that we turn on and off for different schemes. And in the code there is a massive amount of different spots where the images and such are changed.

When we create a new color scheme or whatever, we need to create a new config. Then we have to go through all of the code and put it in correctly.

Basically any suggestions for how we can take the current flash project (maybe flex?) and make it customizable a lot quicker.

  • 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-01T09:28:30+00:00Added an answer on June 1, 2026 at 9:28 am

    Move all configurable parameters to an XML definition.

    Create multiple XML documents for each customization.

    In code, establish default values for configurable parameters, then load the XML and reference values of the XML document as overrides to those defaults.

    For a production build, XML can be embedded in the assembly if loading an external resource is an issue for deployment.

    By loading different configuration XML documents, you could change the definition during runtime, and by using the dynamic configuration model you could draft a theme editor to view changes real time.

    ConfigurationModel.as

    package
    {
        import flash.events.Event;
        import flash.net.URLLoader;
        import flash.net.URLRequest;
    
        public class ConfigurationModel
        {
    
            /** ======== configuration ======== */
    
            public static var color:uint = 0xff00ff;
    
            public static var fontName:String = "Arial";
    
    
            /** ======== serialization ======== */
    
            public static function loadConfiguration(url:String):void
            {
                var loader:URLLoader = new URLLoader(new URLRequest(url));
                loader.addEventListener(Event.COMPLETE, completeHandler);
            }
    
            protected static function completeHandler(event:Event):void
            {
                var xml:XML = new XML(event.target.data);
    
                if (xml.color)
                    color = xml.color;
    
                if (xml.fontName)
                    fontName = xml.fontName;
            }
    
        }
    }
    

    Example configuration: AcmeClientConfiguration.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <color>0xff0000</color>
        <fontName>Calibri</fontName>
    </configuration>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been working on a project that has 2 interfaces - windows forms
I have a project that has components in several different directories and would like
I have an existing iPhone project that has been tested, submitted, and approved, compiled
We have an SOA based project which has been built from the ground up
I have a project that has a makefile with broken dependencies. Is there any
I have a project that has the following line in the additional includes section:
I have a project that has several build configurations (FREE version, male-only, female-only, etc.).
I have a project that has a GUI (written in QT) and a command-line
My use case is this... I have a project that has two production branches.
I have a Netbeans project that has a source folder (outside the Netbeans project

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.