A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: colorTransform erases dropShadow filter

  1. #1
    Member
    Join Date
    Jul 2009
    Location
    Florianópolis
    Posts
    81

    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.

  2. #2
    Senior Member Kirill M.'s Avatar
    Join Date
    May 2002
    Location
    Toronto, Canada
    Posts
    711
    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.

  3. #3
    Member
    Join Date
    Jul 2009
    Location
    Florianópolis
    Posts
    81

    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center