Thanks Ian.  That's the method I'm looking for, but can it work two
"levels" deep?  I'm really looking to change one MovieClip within each
of these columns.  Here's the code:

private function changeChar(e:Event):void {
        var newFrame:uint = Math.random()*50;
        var whichColumn:uint = Math.round(Math.random()*50);
        var column:Sprite =
Sprite(e.target).getChildByName(String("column" + whichColumn));
        var ec:MovieClip = column.getChildByName("endChar");
        ec.gotoAndStop(newFrame);
}


- MM



If each of the columns has .name='column1' etc:

e.target.getChildByName("column10").gotoAndStop(5);

should do it.

But personally I'd at least do some type-checking on all that, and
would probably create a method inside an AllColumns class to handle
changeChar(). (Obviously I don't know what you're doing, though...)

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to