# loadBar in a minus width value? any ideas

**URL:** <https://forum.kirupa.com/t/loadbar-in-a-minus-width-value-any-ideas/161272>\
**Category:** flash\
**Created:** [September 2, 2005, 10:50am UTC](https://forum.kirupa.com/t/loadbar-in-a-minus-width-value-any-ideas/161272 "2005-09-02T10:50:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trevorsaint](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/trevorsaint/32/268_2.png) [@trevorsaint](https://forum.kirupa.com/u/trevorsaint)\
**Post date:** [September 2, 2005, 10:50am UTC](https://forum.kirupa.com/t/loadbar-in-a-minus-width-value-any-ideas/161272/1 "2005-09-02T10:50:47Z")

</div>

Hi all, I would like the load bar to use a minu value, have a look at my code below:

```auto

onClipEvent (enterFrame) {
	loading = _parent.getBytesLoaded();
	total = _parent.getBytesTotal();
	
	percent -= (percent-((loading/total)*100))*.25;
	per = int(percent);
	
	percentage = per+"%";
	loadBar._width = int(per * 1.80);
	
	if (percent>99) {
		_parent.gotoAndStop(2);
	}
}

```

As you can see my calculation sets the width of the loadBar movie clip based on my calculations, however I am trying to get it in a reverse value “-” any ideas???

Cheers
