'Dynamic' movieclip references
Posted on 2003-03-18
I am trying to find out the values of some movieclip properties. I want to be able to tell Flash to check several movieclips, so I will pass a unique value for each movieclip to the function.
Can someone please tell me why, in the following function, trace 1 returns the length of _root.movieX but trace 2 does not?
trace('1) movie X length = ' + _root.movieX._totalframes + ' frames');
myMov = ('_root.movie' + whichMovie)
trace('2) movie ' + whichMovie + ' length = ' + myMov._totalframes + ' frames');