hallo ;)
dieses script funzt (lässt beim 15. Frame mask8 verschwinden, allerdings NUR mask8)
var count = 0;
for(var yp = 88.5; yp <= 410; yp += 59)
{
var c = count+13;
mask8.duplicateMovieClip("mask8"+count,count+80,{_y:yp});
count++;
this.onEnterFrame = function() {
if (this._currentframe == 15) {
mask8.swapDepths(0); //removeMovieClip greift nur auf mcs mit positiver Tiefe zu
removeMovieClip(mask8);
delete this.onEnterFrame;
}
}
versuch ich nun, mask 8 + nachfolgende duplkate auf frame 15 zu entfernen, mithilfe von
this.onEnterFrame = function() {
if (this._currentframe == 15) {
var clip = ["mask8"+count];
clip.swapDepths(0); //removeMovieClip greift nur auf mcs mit positiver Tiefe zu
removeMovieClip(clip);
delete this.onEnterFrame;
}
}
klappt es nicht, dabei müsste die variable eigentlich erkannt werden, bei trace(clip) wird sie richtig ausgegeben !