Question
Setting the duration of an action
Is there a way to control the timing and/or blending of the
color changes in this code?
import flash.geom.ColorTransform;
import flash.geom.Transform;
var colorTrans:ColorTransform = new ColorTransform();
var trans:Transform = new Transform(pages_main_mc);
trans.colorTransform = colorTrans;
page1_btn.onRelease = function() {
colorTrans.rgb = 0x000000;
trans.colorTransform = colorTrans;
};
page2_btn.onRelease = function() {
colorTrans.rgb = 0xFFFFFF;
trans.colorTransform = colorTrans;
};
Say like a 5 sec period from the time I click the pages2_btn before the color changes to white? In other words the color is black, 3 seconds after clicking the pages2_btn the color is 50% grey and at 5 sec the color is white? Some sort of a timer code for the color change?
import flash.geom.ColorTransform;
import flash.geom.Transform;
var colorTrans:ColorTransform = new ColorTransform();
var trans:Transform = new Transform(pages_main_mc);
trans.colorTransform = colorTrans;
page1_btn.onRelease = function() {
colorTrans.rgb = 0x000000;
trans.colorTransform = colorTrans;
};
page2_btn.onRelease = function() {
colorTrans.rgb = 0xFFFFFF;
trans.colorTransform = colorTrans;
};
Say like a 5 sec period from the time I click the pages2_btn before the color changes to white? In other words the color is black, 3 seconds after clicking the pages2_btn the color is 50% grey and at 5 sec the color is white? Some sort of a timer code for the color change?