i have the following code:
[AS]
MovieClip.prototype.blattkopie = function(bildpfad, bildanzahl, bildbreite, bildhoehe, spalten, abstand) {
y = 0;
x = 0;
for (i=0; i<bildanzahl; i++) {
this.createEmptyMovieClip(“bild”+i, i);
this[“bild”+i]._x = (xbildbreite)+(xabstand);
this[“bild”+i]._y = y;
this[“bild”+i].loadMovie([bildpfad+“bild”+i+".jpg"]);
x++;
if ((i+1)%spalten == 0) {
y += bildhoehe+abstand;
x = 0;
}
}
bounds = new Object();
bounds = myMC.getBounds(_root);
trace("xMin= “+bounds.xMin+” xMax= "+bounds.xMax);
trace(“yMin= “+bounds.yMin+” yMax= “+bounds.yMax);
};
myMC.blattkopie(””, 10, 60, 45, 2, 5);
[/AS]
in the end, on the stage there is a movieclip with several pictures (taken from a url)in a tab with defined columns and rows.
But: getBounds always returns that the MC has no dimension (x,y), also with _height or _width, the MC is always taking up zero space.
is there any solution to return the dimensions for the state after it was filled dynamically by the createEmptyMovieClip and loadMovie functions?..
thx for help