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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:43:11+00:00 2026-05-22T01:43:11+00:00

Flash UI Components have many different styles to set, which require passing a string

  • 0

Flash UI Components have many different styles to set, which require passing a string name to the setter method. while this certainly is not challenging, the use of a constants class would be beneficial but i can’t find one.

is there no constants class available with all of the possible style settings?

  • 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-22T01:43:12+00:00Added an answer on May 22, 2026 at 1:43 am

    From the looks of it the simple answer is no and it makes sense. It appears the setter and getter work by accessing the (sometimes) unique and non-unique properties of the object in question like an associative array value. Like so:

    myTextField["textFormat"] = new TextFormat(etc, etc);
    

    So having a list of constants would be like having a huge list of all the various properties on all objects inheriting from UIComponent. Not only would this be a huge cluttered list but the existence of such a thing would be contrary to the ideals of the flash team when developing these things. The flash team takes a stance of “we don’t want to hold your hand and do it all for you” to promote the freedom to invent things yourself. Take a look at the molehill API’s for example. Adobe did not build a 3D engine for the flash community, but rather exposed the ability for people to do it themselves. So generally with these types of things you can safely judge if they exist or not just by judging with the question “would this be too convenient?” Or, if in doubt, you can always check the as3 docs. Go to the method in question, in this case, setStyle, and if the params for this accept a string that has preset values in constants, the docs will tell you. 🙂

    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fl/core/UIComponent.html#setStyle()

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

Sidebar

Related Questions

Some Flash components have the method setStyle(style:String, value:Object). I wonder where/if I can find
I have been using custom swc based components for my new flash game. I
I have created a small flash CS4 project that has a few custom components
I build and maintain a set of Flash components that is distributed to publishers
I have been testing the PS3 browser (NetFront) with embedded Flash components on a
Ever since Adobe introduced ActionScript 3 with Flash Player 9, many of us have
we have a small flash component on our website/application to upload multiple files. This
When running flash components that use localConnection within an HTML container, I get the
I would like recommendations for upload scripts/components. My criteria: No flash Plain Javascript ok,
I'm looking for a Flash/Flex component which will create a popup editing balloon, similar

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.