I apologize if a similar question has been asked before. I searched and couldn’t find what I was looking for.
I’ve got a loop which creates some instances of a movie clip. I’m then trying to call a function from the newly created movie clip. The loop runs fine and the clips are attached… however… the function is never called. I’ve got a trace action in the method being called and it never prints. Is the syntax for calling the method incorrect? Here’s the code…
[AS]for(i = 0;i<imageSize;i++)
{
// clipname
clipName= “imageFrame” + i;
//clip depth
clipDepth= i+10;
// attach the image clip
_root.attachMovie("image_frame",clipName,clipDepth);
// call function in the new clip
_root[clipName].loadImage();
}[/AS]