author: senocular [+], Submitted: 12.02.02 11p • Last Edit: 04.08.03 1p
Avg. Rating: 4

usage

msg1 { senocular [+], posted: 08.12.03 4a•-, top [^] }
I saw recently a post on a forum that said layer51 had no proto for blending colors :-\ well thats what I made this for. Heres another example - this will blend between a list of colors in an array:



msg2 { senocular [+], posted: 10.19.03 8a•03.15.04 6a, top [^] }
to enforce the above statement :-\ Heres an example (in MX)

[ Download ]
msg3 { Bl4deRunner [+], posted: 06.22.07 5a•-, top [^] }
It work's nicely.
But something I'm wondering, slightly off-topic is this:
As in the above example,

myColor = new Color(this);

this works.
But, me being used to AS2 & using data typing, when I do:

var myColor:Color = new Color(this);

this DOESN'T WORK!

I'm' sure I'm missing some fundamental clue here, I hope someone can enlighten me.
msg4 { senocular [+], posted: 06.22.07 7a•-, top [^] }
Bl4deRunne: You're probably running into a confusion between variable scope. By using var in a function, you are making a variable that exists only for that function call - a variable local to that function. That is not something you would want to do in this case since that color object needs to be accessible everywhere (or at least within the methods relating to the color transition). For that you would need to define the property without var, or using this.property or by defining it with var in the frame outside of a function (then it becomes defined within that timeline and therefore accessible to each function within that timeline).
msg5 { drawingboard10 [+], posted: 12.07.07 3p•-, top [^] }
Hello everyone
I am new to actionscript and this forum, but hello to all. I was wondering if there is a way to find out what the on and off set percentages are to the gb , ba , bb , aa , ab color I would like to change my object into. I only see the rgb but no on and off set percentages.