# Can't set width height

**URL:** <https://forum.kirupa.com/t/cant-set-width-height/175193>\
**Category:** Uncategorized\
**Created:** [January 12, 2006, 1:55pm UTC](https://forum.kirupa.com/t/cant-set-width-height/175193 "2006-01-12T13:55:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Duivelke](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@Duivelke](https://forum.kirupa.com/u/Duivelke)\
**Post date:** [January 12, 2006, 1:55pm UTC](https://forum.kirupa.com/t/cant-set-width-height/175193/1 "2006-01-12T13:55:06Z")

</div>

Hi! I’ve got a MC mcBox on the scene (\_root.mcBox).

```auto

var screenW = 0;
var screenH = 0;
xml_playlist.onLoad = function(success){
    if (success){
          ....Reading XML....
        setBoxSize();
   }
}
var xml_playlist = new XML();
xml_playlist.ignoreWhite = true;
xml_playlist.load(xmlURL);

function setScreenSize(){
    mcBox._width = screenW;
    mcBox._height = screenH;
    trace("W: " + screenW + " H: " + screenH); // output: W: 800 H: 600
    trace(mcBox._width); // output: 0
}

```

Why the MC-width and heigth doesnt change? I just don’t understand?
