all groups > macromedia flash flashcom > march 2005 >
You're in the

macromedia flash flashcom

group:

Server Side Class Definition


Server Side Class Definition NateDoggg
3/16/2005 7:50:17 PM
macromedia flash flashcom:
I have no problems using actionscript to define my own classes on the client
but I can't get the syntax right for doing it on the server. So, I'm doing
this hokie trick where I make new applications for each object I need and then
manging their instances. It works but there has to be a better way. Anyone
have a very simple example of defining a class on the server?
Re: Server Side Class Definition Berzy
3/17/2005 1:23:47 AM
myClass = function(){
}
myClass.prototype.someMethod = function(){
}
myClass.prototype.myProp = 'something'

Re: Server Side Class Definition FredzCode
3/22/2005 4:10:38 PM
PS: myClass.myProp = new Array () will pretty much be the same!!!
AddThis Social Bookmark Button