As mentionned before, the "orthodox" way is to follow OOP philosophy, but it's actually not "immediate" to get training about it, and also follow the logical consequences of this choice, such as adopting proper tools for actionscript editing (eg:FlashDevelop) and versioning (eg:SVN), etc.. Even under the auspices of a qualified teacher, it can take days. But it's a good investment.

A simple (class-free) solution to your practical problem may be to write on frame 1 of you clip_mc:

Object(parent).countN++;

(But you won't get an error message if countN variable doesn't exist, therefore this practice can make debugging quite difficult)

Hope it helps,
 Olivier

Henrik Andersson a écrit :
natalia Vikhtinskaya wrote:
THANK YOU!!!!


Just remember that you just turned off all type safety and even the slightest typo will result in a runtime error instead of a compile time error.

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



--
Olivier Besson (gludion) - (33 1) 44 64 78 99
http://www.gludion.com
http://blog.gludion.com

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to