AS3 Setting Colour of DisplayObject using ColorTransform

/ Published in: ActionScript 3
Save to your folder(s)

Copy this code and paste it in your HTML
  1. var ct:ColorTransform = new ColorTransform();
  2. ct.color = (Math.random() * 0xFFFFFF);
  3. box_mc.transform.colorTransform = ct;

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.