Hi,
i try use duplicateMovieClip on my thumb image loaded from xml:
Actionscript Code:
...
obj.onLoadComplete = function(trg:MovieClip)
{
counter++;
if (counter<listOfImage.length)
{
MCL.loadClip(listOfImage[counter], listOfTargets[counter]);
}
else
{
preloader._visible = false;
}
showImage(trg);
trg.num = counter;
trg.onRollOver = function()
{
tc = this.duplicateMovieClip ("trg_clone"+this.num, this.num); // test
tc._xscale = 200; // test
}
;
trg.onRollOut = function()
{
//
}
;
trg.onRelease = function()
{
//
}
;
}
;
...
On normal objects/buttons duplicateMovieClip works fine, but in xml - not. What am I doing wrong?
- download sample -