Now... make a simple image with the rgb colour 100,100,100
filled in it. (Mine is a simple 50x50 pixel image filled with that
colour. save the png as "test.png" and put next to the fla with
code above. You will see that the colour returned in the trace is
not the hex value that matches color 100,100,100... it matches
99,99,99. Flash isnt reading the colour correctly...
Now this same test returns the correct color and works fine
if using a .gif or a .jpg. but I cannot do what I want with these
formats. it must be a png.. .it must read the rgb value 100%
correct every time and the image MUST be loaded from an external
It seems that regardless the rgb is off by one. so if colour
was 25,25,25 it would be returned as 24,24,24
Is there any other way to do what I need to do.. or is there
a bug in my code.. please anyone help.. I'm pulling my hair out
with what should be a simple damn thing to do.
There are two reasons why I cant/wont to do that ....
1... If it is a bug.. Adobe will fix it and my program will
break... (Ina lot of places)
2... the colour 0,0,0 comes back 0. teh coloru 1,1,1 also
comes back 0... So regardless I cnat tell teh difference between
0,0,0 and 1,1,1... (This is very important for the program to
accuratly determine these colours)