A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: tint percentage

  1. #1
    Member
    Join Date
    Mar 2007
    Posts
    31

    tint percentage

    hello all,

    i have looked through the forums history but i can only find code that will help change the entire colour of the movieclip whereas i need it to have a tint percentage, you know just about 25 percent or so?
    the code:

    var my_color:Color = new Color(mc);
    my_color.setRGB(10*124323);

    aynone help?

    sorry that ive just repeated a load of threads

  2. #2
    Member
    Join Date
    Mar 2007
    Posts
    31
    i found it

    var trans= new Object();
    trans.ra = 50;
    trans.rb = 244;
    trans.ga = 40;
    trans.gb = 112;
    trans.ba = 12;
    trans.bb = 90;
    trans.aa = 40;
    trans.ab = 70;

    var col = new Color(my_mc);
    col.setTransform(trans);

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