Sorry ppl for my prev. post. When I wrote 4 Rob> I means 4 Hairy Dog Digital And 4 Danny> actually points to Paul (the first post)
Sorrry once again :) Igor V. a.k.a. The Helmsman www.mixtv.tv -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, February 21, 2006 2:39 PM To: [email protected] Subject: [Flashcoders] OOP Concepts This is my first experience use the mailing List so I hope this makes sense! My question is more of a conceptual one regarding oop best practises. If I have a class which attaches a clip to the stage how can I attach functions to clips nested inside this clip. Putting code on the attached clip?s timeline is wrong, I can use; myClip.MyChildClip.onRelease = function() { stuff }; It works, but seems fundamentally wrong, as I understood it was bad practise to add methods to an object dynamically. Should I make the class listen for clicks on the nested clip or is there another solution? Cheers, Paul ___________________________________________________________ Tiscali Broadband from 14.99 with free setup! http://www.tiscali.co.uk/products/broadband/ _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

