# Dimensions of dynamically filled MCs

**URL:** <https://forum.kirupa.com/t/dimensions-of-dynamically-filled-mcs/69598>\
**Category:** Uncategorized\
**Created:** [November 5, 2004, 5:37pm UTC](https://forum.kirupa.com/t/dimensions-of-dynamically-filled-mcs/69598 "2004-11-05T17:37:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![instantjesus](https://avatars.discourse-cdn.com/v4/letter/i/ecccb3/32.png) [@instantjesus](https://forum.kirupa.com/u/instantjesus)\
**Post date:** [November 5, 2004, 5:37pm UTC](https://forum.kirupa.com/t/dimensions-of-dynamically-filled-mcs/69598/1 "2004-11-05T17:37:45Z")

</div>

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 = (x_bildbreite)+(x_abstand);  
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
