A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Remove Color Transform?

  1. #1
    Member Mofo SwirlyKing's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    476

    Remove Color Transform?

    I made this function to color buttons as you click on them, but I need to be able to remove the color transform later. I tried:
    this.btn1.transform.colorTransform = null;
    but it says it can't be "null".
    PHP Code:
    function colorBtn(cb) {
        var 
    colorTransform:ColorTransform this["btn"+b].transform.colorTransform;
        
    colorTransform.color c;
        
    this["btn"+b].transform.colorTransform colorTransform;


  2. #2
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    try

    = new ColorTransform();

  3. #3
    Member Mofo SwirlyKing's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    476
    that's it!
    Pretty soon I'll get the hang of AS3. Thank you again.

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