# Starting a swf on frame one after loading

**URL:** <https://forum.kirupa.com/t/starting-a-swf-on-frame-one-after-loading/73515>\
**Category:** Uncategorized\
**Created:** [December 17, 2004, 4:20am UTC](https://forum.kirupa.com/t/starting-a-swf-on-frame-one-after-loading/73515 "2004-12-17T04:20:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fio](https://avatars.discourse-cdn.com/v4/letter/f/dbc845/32.png) [@fio](https://forum.kirupa.com/u/fio)\
**Post date:** [December 17, 2004, 4:20am UTC](https://forum.kirupa.com/t/starting-a-swf-on-frame-one-after-loading/73515/1 "2004-12-17T04:20:39Z")

</div>

Here’s a basic one! I have managed (finally) to get a progress bar working through a loader, but the swf starts half way through - where it has loaded to in the background. Here is the code I have so far…

myLoader.contentPath=“golding.swf”;  
myBar.setStyle(“themeColor”, “0xB50000”);  
myBar.setStyle(“color”, “0xFFAC2E”);  
myBar.label="%1 KB out of %2 KB loaded (%3%%)"  
myBar.conversion=1024;  
myBar.source=myLoader;  
myBar.mode=“polled”;  
myLoader.load();

I have tacked this at the bottom to no effect…

if (\_framesloaded\>=\_totalframes) {  
gotoAndPlay (2);  
} else {  
gotoAndPlay (1);  
}

But I suspect that I’m on the right track???

Anyone with a clue would be most welcome, having spent way too much time with silly errors so far!

Thanks  
Fio
