6/19/2010 10:50:32 AM
Title:
Flex 3 - Runtime backgroundGradientColors
I am using flex 3 and trying to set up application backgroundGradientColors after sign in . but the following code
this.setStyle("backgroundGradientColors","[#8080ff, #400040]")
throwing array index out of bounds error . Please advise me how to set up application backgroundGradientColors in action script ? ( I am using flex 3 again )
Regards
Bujji
6/19/2010 1:37:28 PM
Bujji you made 2 mistakes , first # is not supported in actionscript uint color type use 0x and also it should not be string , so remove the quotes . See this will create background gradient for your flex application
this.setStyle("backgroundGradientColors",[0x8080ff, 0x400040])
6/19/2010 2:03:33 PM
Thanks a lot Max for your help and for your quick response