TheYan
asked on
Tint Tweener
I need to tint an image, in my function there is a tweener, like this:
Instead of alpha (50%) I want it to be tint by 50%, how can it be done?
Tweener.addTween(evt.target.object,{alpha:0.5,time:1,transition:"regular"});
Instead of alpha (50%) I want it to be tint by 50%, how can it be done?
You can control tinting as well as alpha by using the Color object and its setTransform().
ASKER
can you modify the code above to work?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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?
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.
"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.