# Linking Dynamic text w/ loadbar ?@#$$?

**URL:** https://forum.kirupa.com/t/linking-dynamic-text-w-loadbar/199544
**Category:** Uncategorized
**Created:** [September 3, 2006, 9:34pm UTC](https://forum.kirupa.com/t/linking-dynamic-text-w-loadbar/199544 "2006-09-03T21:34:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Vision\_Design](https://avatars.discourse-cdn.com/v4/letter/v/7c8e57/32.png) [@Vision\_Design](https://forum.kirupa.com/u/Vision_Design)
#### Post date: [September 3, 2006, 9:34pm UTC](https://forum.kirupa.com/t/linking-dynamic-text-w-loadbar/199544/1 "2006-09-03T21:34:09Z")

</div>

Hello -

```
I'm very new to the flash program. I have a fairly good understanding of the basics, but lack some skills in actionscript. I have a progress bar with a dynamic text that precedes a large swf file. I was able to get the width of the bar to grow with the bytes loaded, but I can't seam to figure out how to link the dynamic text box to do the same. I'm sure its something very simple, but again my syntax needs work.

```

(I also left no text in the “var” box thats in the dynamic text properties )

instance name of the progress bar is “loadBar”  
instance name of dynamic text is “load\_Text”

Here’s the code on the first frame

bytes\_loaded = Math.round(this.getBytesLoaded());  
bytes\_total = Math.round(this.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
loadBar.\_width = getPercent_788;  
load\_Text.text = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
this.gotoAndPlay(3);  
}

Anyhelp would be greatly appreciated-- Thanks
