# \_root external swf preloader

**URL:** https://forum.kirupa.com/t/-root-external-swf-preloader/70383
**Category:** flash
**Created:** [November 13, 2004, 7:54am UTC](https://forum.kirupa.com/t/-root-external-swf-preloader/70383 "2004-11-13T07:54:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 13, 2004, 7:54am UTC](https://forum.kirupa.com/t/-root-external-swf-preloader/70383/1 "2004-11-13T07:54:09Z")

</div>

I’ve been on these boards for 2 days and still can’t get this right. I’m leading an external swf file into a flash movie. It works great. The external flash movie im trying to load contains a preloader (the one from this site). The preloader contains this actionscript:

bytes\_loaded = Math.round(\_root.getBytesLoaded());  
bytes\_total = Math.round(\_root.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
\_root.loadBar.\_height = getPercent_100;  
\_root.loadText = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
\_root.gotoAndStop(3);  
}

I know it’s something do with with having \_root. I’ve tried changing it to “this” and \_parent… but those don’t work. There is probably a simple solution to this. Anyone got a second to spare? Thanks.  
rob
