Hi, Anthony,
You're totally right - I shouldn't have contradicted you.
I saw a very simple problem in either the start of the index or the limiter
of the index needed to be altered - so in that essence we are saying the
same thing.
I read your email too quickly and I thought you were saying "Jiri
Johnathan:
if there are 6 items on the stage, numChildren = 6 but to access the
6th item you need to be at position [5] of the array, so for ease of
implementation he used:
this.numChildren-1
My test showed that it if he has some screwed up object that does not
match his regex, it will no
Just so there is no confusion... that is not the only change you would have
to make. When you do the getChildAt call you'll need to adjust by one for
the index at that time.
I could see why Jiri would have to do this technique if he was handed a
bunch of Stage-authored content from another party a
I think Jiri wants all clips, not all but one. You've repro'd the last one
not showing up.
Jiri, why are you shaving 1 off your numChildren? I'ts a count, not an
index.
Try
var childnum:int=this.numChildren;
instead.
-jonathan
On Thu, Mar 18, 2010 at 8:20 PM, Anthony Pace wrote:
> While I re
While I really don't understand why you would want to do things this
way, but...
I tested this code below, with several clips on the stage:
sq_1, sq_12, sq_122, sq_1222a, sq_1212_1212, sq_6dad_12, sq_6d_6d
it worked fine and outputed the obvious results:
sq_1
sq_12
sq_122
sq_1212_1212
sq_6dad_1
Hello,
i would like some help, because I am confused.
If have a Movieclip that holds several sprites some of them have
instance names like so
frame_ where n is a number.
I then loop through every child of the MovieClip and test the instance
name using regExp.
var childs:int = clip.numChild
6 matches
Mail list logo