A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: How to "tint" (change colour of an object) using the tween class?

Hybrid View

  1. #1
    Senior Member
    Join Date
    Mar 2007
    Posts
    133

    [Resolved] How to "tint" (change colour of an object) using the tween class?

    Hi,

    Im creating a function that controls all the rollovers on my page and i need to know how to implement the tween class so it can change the color of the object. For example this controls the alpha value (AS2.0)

    PHP Code:
    function controlRollover(mainMc:StringsubMc:String):Void {
        new 
    Tween(_root[mainMc][subMc],"_alpha",Regular.easeOut,0,100,2,true);        

    What property can i use in place of _alpha? and how do i specify the color?

    Thx

    Edit: alright just found out there's no property to change color (no idea why). So i guess i can't do this unless i create duplicate objects and use _alpha but that defeats the purpose of using AS...
    Last edited by chur; 08-16-2007 at 10:29 PM.

  2. #2
    Member
    Join Date
    Nov 2003
    Location
    Ontario, Canada
    Posts
    80
    I think you can change teh RGB values of Graphics. Maybe not MovieClips

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