if the methods are in the same class, then that should work, assuming that the reference to timeline is still valid, try trace(timeline) to make sure.

alternatively, you could store the movieclip references in an array and then access that later rather than getting them from their parent movieclip.

martin


Trevor Burton wrote:
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.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to