I'm not entirely sure what error you're getting, but if I were to take a
wild guess, I'd say the problem is that your sprite doesn't have enough
children for you to add anything at index 2.
For instance, if your sprite only had 1 child, it would occupy index 0 of
your sprite, meaning you'd only be
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr,
Theodore
Sent: Thursday, February 25, 2010 12:09 PM
To: Flash Coders List
Subject: [Flashcoders] targeting sprite
How would I do the following:
function fname(sparent:Sp
Lehr, Theodore wrote:
How would I do the following:
function fname(sparent:Sprite) {
sparent.addChildAt(childSprite,2);
}
fname(spriteParent);
It does not seem to like this
"Not like" is a very vague description. Your error can be anything.
__
How would I do the following:
function fname(sparent:Sprite) {
sparent.addChildAt(childSprite,2);
}
fname(spriteParent);
It does not seem to like this
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/m
4 matches
Mail list logo