# Trouble with Preloader! Please Help!

**URL:** <https://forum.kirupa.com/t/trouble-with-preloader-please-help/305883>\
**Category:** flash\
**Created:** [March 5, 2010, 12:45am UTC](https://forum.kirupa.com/t/trouble-with-preloader-please-help/305883 "2010-03-05T00:45:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yani](https://avatars.discourse-cdn.com/v4/letter/y/e9c0ed/32.png) [@yani](https://forum.kirupa.com/u/yani)\
**Post date:** [March 5, 2010, 12:45am UTC](https://forum.kirupa.com/t/trouble-with-preloader-please-help/305883/1 "2010-03-05T00:45:25Z")

</div>

Hi I’m creating a flash file that has a 2mb video that plays on frame three but for some reason any preloader I’ve tried to use doesn’t work, and I’m just not sure if I’m missing anything or what I am doing wrong.

On frame 1 I’ve got:

```auto
var amountLoaded:Number = _root.getBytesLoaded()/_root.getBytesTotal();
preloader._width = amountLoaded * 200;
loadText.text = Math.round(amountLoaded * 100) + "%";

```

frame 2 I’ve got:

```auto
if(_root.getBytesLoaded() == _root.getBytesTotal()) {
	gotoAndPlay(3);
}

else {
	gotoAndPlay(1);
}

```

and then on frame 3 i have the video with a simple stop.

When I simulate the download it doesn’t shift from frame 1, it loads to about 90% and then goes onto frame 2, the preloader works for a second and then it goes onto frame 3.

What am I missing here? any help would be greatly appreciated.

Thankyou
