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_<n> 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.numChildren-1;
var pat:RegExp = /_[0-9]+$/ig;
while(childs >= 0){
var instance:DisplayObject = clip.getChildAt( childs );
if( pat.test(instance.name) ){
Logger.debug( "info box frame" , instance.name );
}
childs--
}
I have three movieclips called 'frame_0' , 'frame_1' and 'frame_2' for
sure, but it when I run the above code, it only show 1 and 0??
Anybody has an idea?
Jiri
On 11/03/2010 22:16, Guest Services, City Concierge wrote:
We're looking for a coder to some small contract work
We're in Los Angeles
Should know action script very well, and be able to get the flash scripts to
work in .asp and .php and use XML
Ask for Jefferson
323-874-6610
_______________________________________________
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