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

  • Home
  • SEARCH
  • 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 7071503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:41:44+00:00 2026-05-28T05:41:44+00:00

Currently I have a task to have to have an flex module to behave

  • 0

Currently I have a task to have to have an flex module to behave differently to 2 clients
Some of the difference is text difference and (probably) renderer difference. However the first client will terminated the service soon (within 2-3 months)

So I’m aware that I have this 2 options:

  • Internationalization, but this 2 client are both using English locale (and may force me to create a new locale) for example “en_Client2”. After 1st client terminate the service, remove the new locale. ( the second user uses the default locale which is en_US )

  • State, but this will scatter my code with if and else.

Any idea which is the better way? Or there is another option that I missed?

  • 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-28T05:41:45+00:00Added an answer on May 28, 2026 at 5:41 am

    The answer to this question isn’t absolute it’s an opinion. Here’s what I’d do though, setup an xml file with the text that needs to change and the names of the classes to use for renderers for example. Then use a URLLoader or HTTPService to load up the xml file at run-time. Use something like below to resolve the class based on the loaded XML, then assign the class as the itemRenderer dynamically after reading in the data from the XML file. You can store all of it in a model that you can bind to properties in within the view to make it easier.

    var classReference:Class = getDefinitionByName(xmlResults.itemRendererNumberOne) as Class;
    myList.itemRenderer = classReference;
    

    Then you just make two xml files one for each client and you’re good to go.

    Note you’ll want to include a reference to any classes that will be loaded using getDefinitionByName within the code somewhere, otherwise they won’t be included in the swf and it won’t be able to resolve them at run-time. Any sort of reference will do though, such as:

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

Sidebar

Related Questions

I currently have a task list, some of them contain file attachments. As part
We currently have an ant task that contains something similar to the following: <filelist
I am looking for possible approaches to the following task. Currently have a number
I have a task that needs to be performed every 1 second. Currently I
I currently have a simple menu_alter hook in a new module I'm building which
We currently have 3 devs with, some, conflicting styles and I'm looking for a
We currently have the following task ahead, and I'm struggling to find what I
I have a task to validate addresses entered into a system I am currently
I have an NAnt task ship to package my current .sql scripts into a
I currently have an MS Access application that connects to a PostgreSQL database via

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.