Ich glaube ich bin zu doof
Ich habe das ganze im root. Einen mc "mc" auf der Bühne der das Bild enthält
Und dann eben mal dein Code angepasst und zwar so
PHP-Code:
mitte_Gross = new Element(0, 0, 590, 0, 590, 308, 0, 308);
tmp = (mitte_Gross, 0, 2, mc);
function cover(obj, x, i, clip):Array {
this["bmd"+i] = new BitmapData(clip._width, clip._height);
this["clip"+i] = this.createEmptyMovieClip("holder"+i, i);
this["clip"+i]._x = x;
this["clip"+i]._y = 150;
this["clip"+i].cacheAsBitmap = true;
this["di"+i] = new DistortImage(this["clip"+i], this["bmd"+i], 1, 1);
this["di"+i].setTransform(obj.x1, obj.y1, obj.x2, obj.y2, obj.x3, obj.y3, obj.x4, obj.y4);
this["di"+i].texture.draw(clip);
this["clip"+i].di = this["di"+i];
this["clip"+i].num = i;
return [this["clip"+i], this["di"+i]];
}
Machen wirs kurz. Ich verstehe nur Bahnhof.
Frage 1.
Was macht deine covefunktion genau?
Frage 2:
Wieso arbeitest du mit cacheAsBitmap?
Frage 3:
In der Klasse wird der Array "point" zweimal deklariert was natürlich einen Fehler ausgab.
Ich habe den unteren der beiden auskommentiert.
War das richtig?