# \*\* relative path \*\*

**URL:** https://forum.kirupa.com/t/relative-path/31915
**Category:** flash
**Created:** [September 29, 2003, 6:03am UTC](https://forum.kirupa.com/t/relative-path/31915 "2003-09-29T06:03:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![The\_Vulcan](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/the_vulcan/32/145_2.png) [@The\_Vulcan](https://forum.kirupa.com/u/The_Vulcan)
#### Post date: [September 29, 2003, 6:03am UTC](https://forum.kirupa.com/t/relative-path/31915/1 "2003-09-29T06:03:34Z")

</div>

I have this code in frame one.

[AS]  
bytes\_loaded = Math.round(level0\_main\_menu\_container\_mainmenu.getBytesLoaded());  
bytes\_total = Math.round(level0\_main\_menu\_container\_mainmenu.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;

level0\_main\_menu\_container\_mainmenu.loading\_bar.\_width = getPercent_100;  
level0\_main\_menu\_container\_mainmenu.loading\_text = Math.round(getPercent_100)+"% loaded please wait.";

if (bytes\_loaded == bytes\_total) {  
gotoAndPlay(“open”);  
}

[/AS]  
this in the second.  
[AS]  
gotoAndPlay(1);  
[/AS]

this .swf file is being loaded into the root of another movie, at the moment it flashes one frame of the loading bar, then nothing until it is all loaded…

I think that it may have something to do with the paths… but I dont know…

what have I done wrong ?
