Share Posted November 27, 2012 Hello, I'm using the applySettingXml method to configure the TransformManager from an external file. Everything work fine, but I don't know in which format the colors for the handle and the line are described. For example, to which color will translate a value of "16777215" for the handleColor? Thank you. Link to comment Share on other sites More sharing options...
Share Posted November 27, 2012 Are you asking how you can know what color 16777215 is or are you asking how to define a color? In other words, are you trying to READ or WRITE the color? Link to comment Share on other sites More sharing options...
Author Share Posted November 28, 2012 I want to write the color in the config xml. Link to comment Share on other sites More sharing options...
Share Posted November 28, 2012 The color is a uint value (unsigned integer). An easy way to get the number would be to trace() it in Flash, like trace(0xFFCC33); Does that work for you? Link to comment Share on other sites More sharing options...
Author Share Posted November 28, 2012 Oohh I see, thank you Jack. However, is there an easier way to get the number? a way that doesn't involve opening flash? Link to comment Share on other sites More sharing options...
Share Posted November 28, 2012 I believe you could pass in a value like 0xFFCC33 directly - have you tried that? Other than that, what are you wanting to use for conversion - Javascript? ActionScript? Sorry, I'm a little unclear about your workflow and what's populating that value on your end. Link to comment Share on other sites More sharing options...
Author Share Posted November 28, 2012 I'll try passing 0XFFCC33 directly. I was simple trying to initialize the TranasformManager from an external config file, so that any change in the settings could be done without touching the code. You have already answer my question, thank you very much Jack. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now