Having been playing with google...this one worked:
public function ARGBtoRGB( value : uint ):uint {
var a : uint = value >> 24 & 0xFF ;
var r : uint = value >> 16 & 0xFF ;
var g : uint = value >> 8 & 0xFF ;
var b : uint = value & 0xFF ;
return uint ( ( r << 16 ) | ( g << 8 ) | b )
}
will also try henrik's one liner... sorry for hurting your brain with that odd
code ...
thanks again
- karim
On 23 Nov 2010, at 12:11, Karl DeSaulniers wrote:
> Google "flash argb to rgb conversion class", or leave out "class", I bet
> you'll find what your needing.
> Sry not much more help, I know about as much as you on the sub.
> Just google happy I guess..
>
> Karl
>
>
> On Nov 23, 2010, at 6:02 AM, Karim Beyrouti wrote:
>
>> Thanks Karl,
>>
>> had seen that one, but it slightly confused me, i go this out of it which is
>> kindof wrong:
>>
>> private function ARGBtoRGB( argb : uint ) : uint {
>> var alpha:uint = (argb >>> 24 & 0xFF );
>> return alpha % argb
>> }
>>
>> Thanks again
>>
>> Karim
>>
>>
>> On 23 Nov 2010, at 11:45, Karl DeSaulniers wrote:
>>
>>> Hi Karim,
>>> http://www.autohotkey.com/forum/topic45543.html
>>>
>>> 3rd link on google searching for "ARGB to RGB conversion conversion
>>> algorithm". :)
>>> HTH,
>>> Best,
>>> Karl
>>>
>>>
>>> On Nov 23, 2010, at 5:37 AM, Karim Beyrouti wrote:
>>>
>>>> Hello All,
>>>>
>>>> wondering if anyone has got the ARGB to RGB conversion conversion
>>>> algorithm handy ?
>>>>
>>>> Thanks...
>>>>
>>>> - karim
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Flashcoders mailing list
>>>> [email protected]
>>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>
>>> Karl DeSaulniers
>>> Design Drumm
>>> http://designdrumm.com
>>>
>>> _______________________________________________
>>> Flashcoders mailing list
>>> [email protected]
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> _______________________________________________
>> Flashcoders mailing list
>> [email protected]
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.com
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders