Dimensions of loaded movie

hi,

I’m loading some jpgs into a movieclip when the user presses a button. I want to get the jpgs to be positioned automatically in the center of the movie, and this worked for attachMovie but not for loadMovie cause it doesn’t get the loaded movie dimensions…

My stage is 800 wide, so I was doing

item._x = (800 - item._width) /2

If I do that it just puts the jpg on x = 400

Is there a way to let it know how big the jpg is? I’m using different sizes jpgs, so I can’t just do it manually.

Thanks!