How to dynamically set Flex Background (Color and Image) -


I want to give users the ability to set the background color or set the image in the background (tile, center and stretch) . I tried some things with nothing, like trying to rotate and allocate a skin object. And tried to do something like this:

  Flexoglobels.tuplLealApplication.Set style ("backgroundroller", UIT (selected collar)); Any luck with  

Any thoughts?

Are you using Flex3 Halo or Flex 4 Spark components?

I thought about reaching the top-level application object, you had to put it in the form of an application object. But, otherwise, I have used the exact same approach you used.

  (Flexglobals.totallevel application as an application) .setStyle ("Background Keller", UIIT (Selected Collar)); However, if you are using the Flex4 approach, then I hope the background color application should be in the skin class and I'm not sure the style will affect it. I have not worked through styling difference between skin classes and styles so far, you can create a custom skin square that sets the background color on the basis of style in the component class. 


Comments