Hello,

I draw a rectangle with AS2 and I would like to change color of the fill.
Not in one time but in several time as a motion.

Have you got an Idea to ?

Thank you very much

var mcc:MovieClip = this.createEmptyMovieClip("mcc", 5000);
MovieClip.prototype.drawRectangle = function(w, h) {
    this.clear();
    this.lineStyle(1, 0xFFFFFF, 100, true, "none", "square", "miter", 5001);
    this.beginFill(0xFFFFCC, 100);
    this.lineTo(w, 0);
    this.lineTo(w, h);
    this.lineTo(0, h);
    this.lineTo(0, 0);
    this.endFill();
};
mcc.drawRectangle(1550, 400);
_root.mcc._x = -500;
_root.mcc._y = 0;
_______________________________________________
[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