[Flashcoders] addChildAt

2010-03-05 Thread Lehr, Theodore
Why can I (seemingly) not do:

parentSprite.addChildAt(childSprite,6);

seems like I can only do:

parentSprite.addChild(childSprite)

or

addChildAt(childSprite,6);
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] addChildAt

2010-03-05 Thread Matt S.
You should in theory be able to do to mc.addChildAt(childmc,6), so
there's a problem elsewhere in how you're doing it. Are you getting
error messages?

.m

On Fri, Mar 5, 2010 at 8:54 AM, Lehr, Theodore
ted_l...@federal.dell.com wrote:
 Why can I (seemingly) not do:

 parentSprite.addChildAt(childSprite,6);

 seems like I can only do:

 parentSprite.addChild(childSprite)

 or

 addChildAt(childSprite,6);
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] addChildAt

2010-03-05 Thread Nathan Mynarcik
Does your parent sprite have 6 displayobjects in it? If the 6th position is not 
available, you can't add it to that layer. 

If it works when adding to the stage, you must have atleast 6 displayobjects on 
the stage. 


--Original Message--
From: Lehr, Theodore
Sender: flashcoders-boun...@chattyfig.figleaf.com
To: Flash Coders List
ReplyTo: Flash Coders List
Subject: [Flashcoders] addChildAt
Sent: Mar 5, 2010 7:54 AM

Why can I (seemingly) not do:

parentSprite.addChildAt(childSprite,6);

seems like I can only do:

parentSprite.addChild(childSprite)

or

addChildAt(childSprite,6);
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders