Categories
Flash

More Flash Stuff

I was asked about another effect in Flash, and this was what I came up with:


button_params = new Array();
button_params[1] = {offtext:"Menu Point One", touchText:"go."};
button_params[2] = {offtext:"Menu Point Two", touchText:"go."};
button_params[3] = {offtext:"Menu Point Three", touchText:"go."};
button_params[4] = {offtext:"Menu Point Four", touchText:"go."};
var max = button_params.length-1;

Movieclip.prototype.rollOut = function(){
this._parent["field"+this.id].text = ""
this.targetText = this._parent.button_params[this.id].offText
this.counter = 0;
this.onEnterFrame = function(){
if (this.counter+1

Leave a Reply