I just posted a little story explaining some code I wrote on the ultrashock forums. It explains some of the uses of the apply and __resolve methods if you have not worked with these yet. Also some cool tween engine code. Here is a peice of code using both:
Glyph.prototype.__resolve = function(methodName){
return function(){
arguments.unshift(this.ref_mc);
return this.ref_class[methodName].apply(this.ref_class,arguments);
}
}
Glyph.as | TweenEngine.as
1:10:57 PM
|