CSS and Variables


good day,

 

i want allow users set application background color.

 

so, have:

<mx:script>

<![cdata[

[bindable] public var applicationbackground:string="#00cc00";

]]>

</mx:script>

 

for variable , then:

 

<mx:style>

application {backgroundcolor: applicationbackground;}

</mx:style>

 

to apply color.  have component color picker , function set applicationbackground chosen color.

 

when run application, see black background, opposed  selected color.

 

what missing?

 

thanks!

 

rob

i think using actionscript set style more appropriate:

 

application.application.setstyle( "backgroundcolor", this.applicationbackground );

 

let me know if helps...

 

ben edwards



More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???