header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Bujji1
Points:160
Posts:0
Answered

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



1
MaxFlash
Points: 580
Posts:0
Accepted Answer
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]) 

2
Bujji1
Points: 160
Posts:0
6/19/2010 2:03:33 PM



Thanks a lot Max for your help and for your quick response


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 7+0 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions