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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:35:16+00:00 2026-05-11T15:35:16+00:00

Problem Definition: To be able to dynamically load a CSS at runtime to skin

  • 0

Problem Definition: To be able to dynamically load a CSS at runtime to skin a Flex Application.

More Information: I’ve found that loading and applying a CSS is as simple as using ‘mx:style source=’../assets/default.css”. But what I would like to do is something more like (pseudocode):

If (condition == 1)<br />   mx:style source='../assets/style1.css'<br /> ElseIf (condition == 2)<br />   mx:style source='../assets/style2.css'<br /> Else<br />   mx:style source='../assets/default.css'<br /> 

I’ve started to look into the StyleManager class but want to know if there’s a simpler implementation.

Requirements: I’d like to have something as simple as dropping a .css file into the /assets folder without requiring CSS->SWF compilation or anything complex like that.

  • 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. 2026-05-11T15:35:17+00:00Added an answer on May 11, 2026 at 3:35 pm

    Using the style tag, you’re basically just inlining the style sheet. To my knowledge, there’s no way to accomplish exactly what you’re hoping to do. At the same time, you’re probably best off doing this the way it’s intended, using CSS to SWF compilation. That really isn’t adding much complexity at all; you’re just adding a single step in-between dropping your .css into /assets and adding it into your conditional.

    See this article for more info: http://onflash.org/ted/2007/01/flex-201-understand-runtime-css.php

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

Sidebar

Ask A Question

Stats

  • Questions 171k
  • Answers 172k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer CultureInfo will not do this for you. What you are… May 12, 2026 at 2:24 pm
  • Editorial Team
    Editorial Team added an answer You could set up multiple instances of TOR, configure each… May 12, 2026 at 2:24 pm
  • Editorial Team
    Editorial Team added an answer Use the static Double.isNaN(double) method, or your Double's .isNaN() method.… May 12, 2026 at 2:24 pm

Related Questions

I am building pages dynamically using a database to store the page info and
Background I am developing a highly modular application in pure Action Script 3 (we
I am creating an ASP.NET application in which the administrator of the program will
I would like to declare an external function from the kernel32.dll library whose name

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.