Link to home
Start Free TrialLog in
Avatar of TheYan
TheYanFlag for Denmark

asked on

Tint Tweener

I need to tint an image, in my function there is a tweener, like this:

Tweener.addTween(evt.target.object,{alpha:0.5,time:1,transition:"regular"});

Open in new window


Instead of alpha (50%) I want it to be tint by 50%, how can it be done?
Avatar of santoshmotwani
santoshmotwani
Flag of Australia image

You can control tinting as well as alpha by using the Color object and its setTransform().  
Avatar of TheYan

ASKER

can you modify the code above to work?
SOLUTION
Avatar of ChristoferDutz
ChristoferDutz
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TheYan

ASKER

The color does not change, nothing happens, if instead of "color" I put "_color" then it will replace the image with that color. Any other ways of making it work?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Geee ... you're right blue-genie ...

the properties without "_" control the tween and the ones with control the target properties. Can I sum it up to that?
Hey Christofer - i was just reading the asker's last post again.

"then it will replace the image with that color. Any other ways of making it work?"
that's what a tint will do to an image. you can't "colorise" it like you would in photoshop.