Try this
-------------------

import flash.geom.ColorTransform;
import flash.geom.Transform;

var colorTrans:ColorTransform = new ColorTransform();
var trans:Transform = new Transform(my_mc);

var restoreTrans:ColorTransform = new ColorTransform();

blue_btn.onRelease = function() {
  colorTrans.rgb = 0x333399; // blue
  trans.colorTransform = colorTrans;
};

restore_btn.onRelease = function() {
 //??? How can I do restore the initial state ?
 trans.colorTransform = restoreTrans;
};

---------------------------------

-Nehal

On 9/20/06, Laurent CUCHET <[EMAIL PROTECTED]> wrote:

There is an mc with mutltiple colors

I apply color change but I dont know how to restore original state

Have you got an Idea please

import flash.geom.ColorTransform;
import flash.geom.Transform;

var colorTrans:ColorTransform = new ColorTransform();
var trans:Transform = new Transform(my_mc);
trans.colorTransform = colorTrans;

blue_btn.onRelease = function() {
   colorTrans.rgb = 0x333399; // blue
   trans.colorTransform = colorTrans;
};

restore_btn.onRelease = function() {
  //??? How can I do restore the initial state ?
   trans.colorTransform = colorTrans;
};

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to