Hi Iv I was trying to create a Boiler object instance, not a movie clip. It was the movie clip path that I was creating so I could pass this to the Boiler object instance.
Not sure what is wrong with this line var vBoiler_Obj:Boiler = new Boiler(vBoilerRef, i + 1); It seems to work ok now with this line - is it bad coding? Thanks Paul -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Iv Sent: 03 December 2006 16:22 To: Flashcoders mailing list Subject: Re[4]: [Flashcoders] Create movieclip path within a class Hello Paul, PS> I am still curious though as to why I cannot dynamically create the boiler PS> movie clip reference and pass it to the boiler clip constructor - is this PS> not possible? - it's possible. private function Boiler () { ref = this; } :) you can't create movieclips using "new" keyword. only attachMovie or createEmptyMovieClip -- Ivan Dembicki ______________________________________________________________________ [EMAIL PROTECTED] | http://www.artlebedev.ru | http://www.sharedfonts.com _______________________________________________ Flashcoders@chattyfig.figleaf.com 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 _______________________________________________ Flashcoders@chattyfig.figleaf.com 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