I am trying to tell a movie clip nested within a movie clip to play a movie clip in a totally different part of my timeline. How do I do this?

At the same time I need the target pic1 to iterate as the nested clip loops, for example pic2, then pic 3 each time it plays.

This is in frame 30 of the nested movie clip:
`var _i:int = 1;
var varPlayer:String = "pic" + _i ;
playMask(varPlayer);
_i ++;`

then in my actions layer frame 1 I have the function:
`function playMask(theNum) {
this[theNum].play();
}`

But my nested movie clip can't seem to call the main function.

Is there a way to make this work? Appreciate the help, Thank you.