ActionScript 3 – CS5
I’m new to Flash and wondering how to change fill color from code. Something like this –
btnRed.fillColor = "0xff0000";
Thank you for your comment!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Look into ColorTransform. All DisplayObject (i.e. Sprite, MovieClip, Shape, etc.) has a property called transform, which in turns contains a property called ColorTransform.
The code below makes it so a square with black fill color is changed to green: