A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [RESOLVED] Getting the color of an object

  1. #1
    Island Boy
    Join Date
    Apr 2006
    Posts
    655

    resolved [RESOLVED] Getting the color of an object

    I have a world map with each piece of the map as movie clips. Each MC is set to a color (using ColorTransform) based on some data about the state that i load in. When i click on the MCs I want to temporarily change the color to something else while displaying information about the MC and then change it back when i select another MovieClip. How can i find out what the current color of the clip is so i can store it in a temporary variable to know what i need to change it back to once i select some other?

    I have a workaround but it is not 100% foolproof.
    Last edited by VI Knight; 06-21-2008 at 08:16 PM. Reason: resolved

  2. #2
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    Just trace through the properties in livedocs - DisplayObject.transform.colorTransform.color

  3. #3
    Island Boy
    Join Date
    Apr 2006
    Posts
    655
    Thank You Sir.

    I stumbled on it just before you sent this. I was just about to mark this as resolved.

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