|
-
colorTransform erases dropShadow filter
I'm using this code into a mouse over and mouse out listener , to change the color of a TextField.
Code:
var ct:Color = new Color();
ct.setTint(0xFF0000, 0.5);
mc.transform.colorTransform = ct;
The problem is that the dropShadow filter associated with the TextField (applied in the flash UI) is gone when this colorTransform applies.
Do anybody knows why?
Should I apply the filter dynamically, is that the only solution ??
Thnks!
Last edited by ziriguidum; 08-01-2009 at 07:32 PM.
Reason: I forgot the code tags.
-
Senior Member
Just did a test with a drop shadow filter and the code you gave. It seems to work ok. Are you sure nothing else is happening that could make this happen. Granted I've seen some very odd bugs related to filters used with other mechanisms.
-
shadow gets white
the problem is that the shadow gets white too, with the color Transform!
I've applied the dropShadow to a parent movieclip that contains only the textfield and that solves the problem.
thanks !
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|