Ok, I finally figured out what functions are used for. They make it very easy to edit your code and make everything much cleaner and simpler. Am I right in saying that if you want a function to do a tween like effect (move an mc, easing, etc…) you have to put the function in an onenterframe or onclipevent so that the function is evaluated every frame? OK. But what are prototypes. I have Searched and searched, but I can’t see how prototypes are different from functions. Any clarification would be really appreciated!
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Functions, Classes, Prototypes, WTH! | 1 | 43 | February 13, 2004 | |
Prototypes - What, When, and How | 0 | 93 | September 28, 2003 | |
MovieClip.prototype vs. function? | 0 | 60 | September 7, 2005 | |
Classes and prototypes
|
5 | 50 | May 14, 2008 | |
Prototypes for components
|
4 | 97 | July 26, 2004 |