Re: [Flashcoders] overwriting a class

2007-01-16 Thread Thomas Fowler
Yes, but it's actually, overRIDING ;) - Original Message - From: Merrill, Jason [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, January 16, 2007 12:32 PM Subject: RE: [Flashcoders] overwriting a class Flash allows deleting classes

Re: [Flashcoders] overwriting a class

2007-01-16 Thread slangeberg
I would suggest implementing interfaces, as a good practice: interface ISpeakable { function speak(); } class myClass implements ISpeakable { function speak() {} } this lets you pass around instances that implement your interface and to change behaviors at runtime, such as: class

Re: [Flashcoders] overwriting a class

2007-01-16 Thread Hans Wichman
Hi, because in some large systems you have to load a ton of swfs, classes get updated in ways you did not forsee, and thus you have different versions of the same class hanging around, if you did not think about preventing this upfront. That is different from an architecture in which you wish to

RE: [Flashcoders] overwriting a class

2007-01-16 Thread Merrill, Jason
because in some large systems you have to load a ton of swfs, classes get updated in ways you did not forsee, and thus you have different versions of the same class hanging around, That's why I don't have tons of swfs in my projects, at least not ones that all use the same class. Why would you