A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Get Tint using Actionscript

  1. #1
    Senior Member
    Join Date
    Sep 2000
    Posts
    199

    Get Tint using Actionscript

    Hi,

    I have set the tint on a movieclip but when I do...

    Code:
    trace(tintClip.transform.colorTransform);
    or even...

    Code:
    trace(tintClip.transform);
    it outputs 'undefined'.

    Any ideas?

  2. #2
    Flash Gordon McUsher's Avatar
    Join Date
    Mar 2001
    Location
    Krautland
    Posts
    1,560
    I bet you are talking about the old "Color" class, then what you try should be:
    Code:
    var my_color:Color = new Color(tintClip);
    var myTransform:Object = my_color.getTransform();
    trace(myTransform);
    Or are you talking about the new flash8 ColorTransform-class?
    My letters on the F1 key have faded, how are yours today?

  3. #3
    Senior Member
    Join Date
    Sep 2000
    Posts
    199
    I see that Flash 7 player doesn't do ColorTransform so it will have ot be Color.

    So how can one populate a color instance from a movieclip with a tint on it?

  4. #4
    Flash Gordon McUsher's Avatar
    Join Date
    Mar 2001
    Location
    Krautland
    Posts
    1,560
    Doesn't the above code work? Or am i misunderstanding something?
    (bloody kraut here )
    My letters on the F1 key have faded, how are yours today?

  5. #5
    Senior Member
    Join Date
    Sep 2000
    Posts
    199
    No I'm just being distracted by a Madonna interview. Thanks for your help.

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