# How to show percentage in 1 frame?

**URL:** <https://forum.kirupa.com/t/how-to-show-percentage-in-1-frame/80327>\
**Category:** Uncategorized\
**Created:** [February 21, 2005, 2:07pm UTC](https://forum.kirupa.com/t/how-to-show-percentage-in-1-frame/80327 "2005-02-21T14:07:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tolgainam](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tolgainam](https://forum.kirupa.com/u/tolgainam)\
**Post date:** [February 21, 2005, 2:07pm UTC](https://forum.kirupa.com/t/how-to-show-percentage-in-1-frame/80327/1 "2005-02-21T14:07:40Z")

</div>

Hello guys, the problem is:

Im loading some swfs with loadmovie technique to my mainmovie.  
Thereis a mc\_container layer and transitions layer, while the movie is loading,  
the transation layers alpha increase to 100% and mask the loading area with some animation, and during that animation I wanna show the % percentage of the movie. Howcan I do that ?  
The mc\_container code is:

```php

onClipEvent (enterFrame) {
 if (!loaded && this._url != _root._url) {
   LB = this.getBytesLoaded();
		 TB = this.getBytesTotal();
   PC = Math.floor((LB/TB)*100);
	 _root.transition.pc = PC;
	trace("yuzde:"+PC);
	//trace(LB);
  if (this.getBytesLoaded() == this.getBytesTotal()) {
   loaded = true;
   _root.transition.gotoAndPlay("opening");
  } 
 }
}

```

Thanks
