Forum Moderators: open

Message Too Old, No Replies

Changing prototype from classes?

         

exanimo

12:50 pm on Aug 23, 2006 (gmt 0)

10+ Year Member



I have some actionscript that messes with the MovieClip prototype. Only, instead of using #include, I'd like to encapsulate it in a static function. That is, instead of using

#include "../../../path/to/my/file.as"

I'd like to do something like

com.exanimo.prototypes.messWithThePrototype();

Is this possible?

Thanks for the help.

exanimo

4:51 pm on Aug 23, 2006 (gmt 0)

10+ Year Member



It is possible..

My problem wasn't modifying the prototype from a static function scope but having a MovieClip.as file in the directory.