# \_width question on some code example

**URL:** https://forum.kirupa.com/t/-width-question-on-some-code-example/17451
**Category:** Uncategorized
**Created:** [April 5, 2003, 11:53am UTC](https://forum.kirupa.com/t/-width-question-on-some-code-example/17451 "2003-04-05T11:53:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![7of9](https://avatars.discourse-cdn.com/v4/letter/7/c89c15/32.png) [@7of9](https://forum.kirupa.com/u/7of9)
#### Post date: [April 5, 2003, 11:53am UTC](https://forum.kirupa.com/t/-width-question-on-some-code-example/17451/1 "2003-04-05T11:53:40Z")

</div>

A while back one of our members wrote this piece of code and I’m trying to figure it out. I got 90% down but I can’t figure where the \_width value is coming from. I looked in the debugger section and now results. Can someone please explain in detail this to me? I know what is the \_root.container is coming from but the \_width is a mystery to me. If the author or someone can please explain the below AS script to me I will greatly appreciate it.

Thanks.

if (\_root.container=\_width){  
trace(“container” + \_root.container);  
trace(“width”+ \_width + "  
");

```
_root.barimg.onEnterFrame = function() {
bytes_loaded = _root.slika.getBytesLoaded();
bytes_total = _root.slika.getBytesTotal();
getPercent = Math.round(bytes_loaded/bytes_total*100);
getPercenttext=getPercent+"%";
this._width=getPercent*1.91;

```

};

I attached the .fla and the AS code is in frame #8.
