FORUMS: list search recent posts

Color To Gray Action Script 2

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Mohammad Taghi Karimi
Color To Gray Action Script 2
on Jul 6, 2008 at 8:04:30 pm

hi there
if you can not understand what i want please read it again and slowly my english is very bad and poor
evryone who read this post
i have write a script to make a pic blury and make pic not blury
now i need an script to make my color pic to a gray pic
i search about that but i didnt find anything
please help these poor boy :D im crazy
i must write this sctip with action script 2
god bless all of us


Just Try To Be Best Until You Death
Never Give Up For Any Thing
http://www.mtkarimi.com


Return to posts index

Sher Ali
Re: Color To Gray Action Script 2
on Jul 6, 2008 at 8:48:14 pm

you can use ColorMatrix class to achieve that. You can find more about this on the following link:
http://www.gskinner.com/blog/archives/2005/09/flash_8_source.html

Sher Ali
Flash & Flex Developer
website: http://www.webeyestudio.com
blog: http://www.kabulinteractive.com/blog
My FlashDen Portfolio


Return to posts index

Pieter Helsen
Re: Color To Gray Action Script 2
on Jul 7, 2008 at 7:19:09 am

Or use Tweener.

Using the ColorShortcuts you can easily tween an image from color to gray and back.

It would look something like this:


import caurina.transitions.Tweener;
import caurina.transitions.properties.ColorShortcuts;
ColorShortcuts.init();

toGray_btn.onRelease = function(){
Tweener.addTween(myImg_mc, {_saturation:0, time:1, transition:"linear"});
}

toColor_btn.onRelease = function(){
Tweener.addTween(myImg_mc, {_saturation:1, time:1, transition:"linear"});
}


Kind regards,
Pieter


Return to posts index


Mohammad Taghi Karimi
Re: Color To Gray Action Script 2
on Jul 11, 2008 at 10:15:09 pm

Thanks TO Sher Ali & Pieter Helsen Very Very Very Helpful , Thanks To All Of You

Just Try To Be Best Until You Death
Never Give Up For Any Thing
http://www.mtkarimi.com


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]