I having a problem with my paths, I think. I had this code working fine on the movieClip itself but something has gone wrong now that I have made it into a function on the root.
What am I doing wrong here? I'm guessing it has something to do with the duplicateMovieCLip() & the depth. Any tips would be appreciated as always : )Code:xMin = 0; xMax = 500; yMin = 0; yMax = 280; function masking() { for (i=0; i<20; i++){ randomX = Math.random() * ( _root.xMax - _root.xMin ); randomY = Math.random() * ( _root.yMax - _root.yMin ); orgClip = "_root.mcMask.mcItem"; dupClip = "_root.mcMask.mcItem" + i; //trace("dupClip = " + dupClip); duplicateMovieClip(orgClip, dupClip, this.getNextHighestDepth()); trace(dupClip); eval("_root.mcMask.mcItem"+i)._x = randomX; eval("_root.mcMask.mcItem"+i)._y = randomY; } }
Thanks!




Reply With Quote