Color name to uint value

Filing under the “why didn’t I find this before” folder. On the Adobe Flex forums, there was a question about changing the color value of a button based on a switch statement. The user was trying to change the value to “Red”, “Yellow” or “Green”. In the button, the type for color is uint value, so the input needs to be something like “0x990000” for “Red”. I usually just insert in the uint value for a color and not the name, since I usually have to change it. But, this question on the forum got me thinking and searching for Continue reading Color name to uint value

Update to Egg Timer

On one of my projects at work I ended up using two Egg Timers but in different states. Since it would be easier to know if the correct Egg Timer was in the correct state, I added a couple of new parameters to the Egg Timer. Then I replaced the static colors with these defined variables to make it work. After those simple changes, the Egg Timer parameters can easily be added when placing the component. Fairly simple. Since the color parameters are already set as uint, there is no for any further conversion to make the color. I also Continue reading Update to Egg Timer