# \[MX\] Yet another problem

**URL:** <https://forum.kirupa.com/t/mx-yet-another-problem/128181>\
**Category:** Uncategorized\
**Created:** [November 10, 2004, 7:04am UTC](https://forum.kirupa.com/t/mx-yet-another-problem/128181 "2004-11-10T07:04:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danKSU](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@danKSU](https://forum.kirupa.com/u/danKSU)\
**Post date:** [November 10, 2004, 7:04am UTC](https://forum.kirupa.com/t/mx-yet-another-problem/128181/1 "2004-11-10T07:04:40Z")

</div>

[font=Century Gothic]Now I am trying to center an image/movieClip. Below is how I get everything going[/font]

```auto

var k = _root.createEmptyMovieClip("stage", 50);
k._x = 400;
k._y = 300;
var p = k.createEmptyMovieClip("bigImage", 0);
p.loadMovie("lowres/"+imageList[0]);
trace(k._width); //Returns 0
trace(p._width); //Returns 0
trace(stage._width); //Returns 0
trace(_root.stage._width); //Returns 0
trace(k.bigImage._width); //Returns 0

```

[font=Century Gothic]How do I get the right width?[/font]

[font=Century Gothic]Someday I will learn? :-/ [/font]

[font=Century Gothic]Thanks,[/font]

[font=Century Gothic]Dan[/font]
