# Loader Component Help Required!

**URL:** <https://forum.kirupa.com/t/loader-component-help-required/44405>\
**Category:** flash\
**Created:** [March 3, 2004, 4:01pm UTC](https://forum.kirupa.com/t/loader-component-help-required/44405 "2004-03-03T16:01:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tyberius7](https://avatars.discourse-cdn.com/v4/letter/t/c77e96/32.png) [@tyberius7](https://forum.kirupa.com/u/tyberius7)\
**Post date:** [March 3, 2004, 4:01pm UTC](https://forum.kirupa.com/t/loader-component-help-required/44405/1 "2004-03-03T16:01:53Z")

</div>

Hello!

I have placed the loader component in a frame which loads an external .swf file. Because the external .swf is quite large I want there to be some kind of indication of loading.

I inserted the following code:

Note:[loader instance name = Loader], [dynamic text, var = Percent]

===============================

//Frame 1 Actionscript

Loader.load(“external.swf”);  
Percent = Loader.percentLoaded;  
if (Loader.bytesLoaded == Loader.bytesTotal){  
stop();  
}  
else  
gotoAndPlay(“Scene1”, 2);

//Frame 2 Actionscript

gotoAndPlay(“Scene1”, 1);

===============================

What appears in the Dynamic text when I test the movie is the value 0!!

Can anybody help me get this thing working??

Thank you in advance!
