Hi Robert, The following FAQ entry should answer your question: http://www.osflash.org/flashcoders/as2#creating_a_class_instance_based_on_movieclip_without_a_symbol_in_the_library
HTH, Ian On 3/27/06, Robert Clochard <[EMAIL PROTECTED]> wrote: > Hello everyone, > > I've searched a while for the following problem but didn't get an answer. > > I'd like to create a movieclip with my individual mc-class, that is to > say, a createEmptyMovieClip() function but with getting my individal MC > -> createEmptyMyIndividualMC(). > > I tried the following, but like you guess, myIndMC is a MovieClip so I > get type-problems.. > > Is there a way to get this working, to register a Class to a MC > (registerClass() hasn't done it, too) and maybe call its constructor? > > private function createEmptyMyIndividualMC():MyIndividualMC > > var myIndMC:MovieClip = > this.createEmptyMovieClip("example_mc",4); > > myIndMC.__proto__ = MyIndividualMC.prototype; > > return myIndMC; > } > > class MyIndividualMC extends MovieClip > { > > } > > _______________________________________________ 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