actionscript functions
actionscript functions
Out of context: Reply #1
- Started
- Last post
- 6 Responses
- unfittoprint0
on your main movie _root layer:
//Movieclip prototype [AS1.0]:
MovieClip.prototype.chkMorph = function(){
if (this._height >= (this .heighto-this.speedo )) {
this._height = this.heighto;
} else {
this._height += this.speedo;
}
if (this._alpha != 100) {
this._alpha += 10;
}
}MovieClip.prototype.morph = function(speedo, hieghto, alpha){
clearInterval(morphloop);
this._alpha = alpha;
this.morphloop = setInterval(this,"chkMorph ", 30, speedo, heighto, alpha);
}
}//now you just have to call any movie an use
myMC.morph(30,375,10);