Probably a bit of newbie question but here goes:
 
In a class method I'm creating a movieclip (this is simplified)
 
Public function whatever(timeline) {
 
            Var mc:MovieClip;
 
            For (var j = 0; j < someVariable; j++) {
 
                        Mc = timeline.createEmptyMovieClip("face" + j,
j);
 
            }
 
}
 
then later, in another method I'm getting hold of that movieclip again
and doing something with it:
 
public function whatever_again() {
 
            var mc:MovieClip;
 
for (var j = 0; j < someVariable; j++) {
 
            mc = timeline["face" + j];
 
}
 
}
 
but the trace gives the value of mc in the second method as 'undefined'
- I can't seem to grab hold of those movieclips created in the first
method.
 
Can anyone spot what I'm doing wrong?
 
 
 
            
 
            
 
            
 
 
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to