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
_______________________________________________
[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