If you're not using absolute strict typing and everything that AS3 has (display, addChild, etc.), then you're gaining no benefit because Flash will just kick down to VM1.
IMO, you should either rebuild it from scratch in AS3 style (using sprites, display objects, etc.) or leave it as AS2 and save yourself the headache. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of ben gomez farrell > Sent: Thursday, March 29, 2007 11:32 AM > To: Flashcoders mailing list > Subject: [Flashcoders] Confused about accessing nested > movieclips in AS3 > > Hey everyone, I've been working with AS3 for a bit, and been > kind of avoiding this problem till now, but I've converting > an AS2 project which has some nested clips, and I'd rather > not change things! > > So basically the question is how do I access nested clips? > Before in AS2, I'd say myclip.nestedclip.othernestedclip. > > But now the problem I have is that once I get a clip on stage > I can't drill down to it's children with dot syntax. It > gives an error that the nested MC is an undefined property. > I suppose I could create a class for myclip that exposes it's > nested clips as public variable - and do that for each > nesting level, but that's a lot of work. > > I also tried declaring it in my main class as private var > myclip.nestedclip:MovieClip, but of course that's bad syntax. > > If it matters, I'm exporting my assets out of the Flash 9 > Alpha as a Flash 9 AS2 movie. (I tried AS3, but the ability > to specify a linkage ID went away). Then I'm embedding the > movieclips I need with the [Embed] tag through FlashDevelop > and sending it over to the Flex 2 SDK compiler for output. > > Anyway, this all works, and my stuff appears on stage, but I > just can't get access to the nested clips! > > thanks! > ben > _______________________________________________ > 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