color value is number even if it accepts 0xXXX string, hence you can use simple toWhite[nWhiteCount] without "0x" and toString(). flash works with decimal numbers anyways as soon as it receives 0xFFFFFF it's automacaly converted to 16777215 anyways
2006/11/22, eric dolecki <[EMAIL PROTECTED]>:
I'm using setRGB, so I did this: var decToHex = "0x" + toWhite[nWhiteCount].toString(16).toUpperCase(); which is basically working instead of tweaking and setting text formats On 11/22/06, Janis Radins <[EMAIL PROTECTED]> wrote: > > those values are decimal representation of hex color values > you can use them as they are for lets say TextFormat.color value > > 2006/11/22, eric dolecki <[EMAIL PROTECTED]>: > > > > Thats cool - i hooked the class up, but i get an array with values like > > this: > > > > > > > 4951245,6133970,7316439,8499164,9681633,10864358,12046827,13229552,14412021,15594746 > > > > from going from a blue to white: > > > > [0x4B8CCD,0xFFFFFF] > > > > ?? > > > > On 11/22/06, Janis Radins <[EMAIL PROTECTED]> wrote: > > > > > > or you could use something like this class of myne > > > http://www.mediaverk.lv/asd/com/jR/Math/ColorTween.as to get all color > > > steps > > > and afterwards apply that color in timed loop. > > > Like var colors:Array = com.jR.Math.ColorTween.getColorArray > > ([StartColor, > > > endColor], numberOfSteps); > > > and applying that color change within setInterval calls. > > > > > > 2006/11/21, Cedric Muller <[EMAIL PROTECTED]>: > > > > > > > > I meant 'movieclip tween coloring' (code) > > > > > > > > > the low profile way: > > > > > I put my textfield in a movieclip (text_mc) and set my textfield's > > > > > color to '0xFFFFFF' (text_mc.text_txt.textColor) > > > > > then I simply use movieclips tweens , you know the old ones :)... > > > > > > > > > >> I am looking for a small routine to tween the color of some > > > > >> dynamic text. > > > > >> I've found lots of large packages, but really only need to affect > a > > > > >> textfield, and to be able to do 2 things: > > > > >> > > > > >> 1. tween a field to a specified 0x color > > > > >> 2. tween a field back to its original set color (un-tween so to > > > > >> speak) > > > > >> > > > > >> does anyone have anything handy? Is going into a class > > > > >> > > > > >> - e. > > > > >> _______________________________________________ > > > > >> Flashcoders@chattyfig.figleaf.com > > > > >> To change your subscription options or search the archive: > > > > >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > >> > > > > >> Brought to you by Fig Leaf Software > > > > >> Premier Authorized Adobe Consulting and Training > > > > >> http://www.figleaf.com > > > > >> http://training.figleaf.com > > > > > > > > > > _______________________________________________ > > > > > Flashcoders@chattyfig.figleaf.com > > > > > To change your subscription options or search the archive: > > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > > > > > Brought to you by Fig Leaf Software > > > > > Premier Authorized Adobe Consulting and Training > > > > > http://www.figleaf.com > > > > > http://training.figleaf.com > > > > > > > > _______________________________________________ > > > > Flashcoders@chattyfig.figleaf.com > > > > To change your subscription options or search the archive: > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > > > Brought to you by Fig Leaf Software > > > > Premier Authorized Adobe Consulting and Training > > > > http://www.figleaf.com > > > > http://training.figleaf.com > > > > > > > _______________________________________________ > > > Flashcoders@chattyfig.figleaf.com > > > To change your subscription options or search the archive: > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > Brought to you by Fig Leaf Software > > > Premier Authorized Adobe Consulting and Training > > > http://www.figleaf.com > > > http://training.figleaf.com > > > > > _______________________________________________ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
_______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com