Return to Snippet

Revision: 876
at August 17, 2006 08:08 by limonn


Initial Code
function NewClass() {
}
NewClass.prototype.someProperty = "someValue";
NewClass.prototype.someMethod = function() {
  trace("someMethod called");
};
var nc = new NewClass();

//And you can then utilize the properties and //methods of that instance:

trace(nc.someProperty);
nc.someMethod();

Initial URL
http://www.oreillynet.com/pub/a/javascript/2003/08/19/actionscriptckbk.html

Initial Description
creando una clase

Initial Title
creando una clase

Initial Tags


Initial Language
ActionScript