# Flash gone mad

**URL:** <https://forum.kirupa.com/t/flash-gone-mad/159832>\
**Category:** Uncategorized\
**Created:** [August 20, 2005, 7:45pm UTC](https://forum.kirupa.com/t/flash-gone-mad/159832 "2005-08-20T19:45:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanel96](https://avatars.discourse-cdn.com/v4/letter/t/5fc32e/32.png) [@tanel96](https://forum.kirupa.com/u/tanel96)\
**Post date:** [August 20, 2005, 7:45pm UTC](https://forum.kirupa.com/t/flash-gone-mad/159832/1 "2005-08-20T19:45:07Z")

</div>

it’s really embarrasing to ask something like this, but my brain is too fried with the more complex code and i can’t get this simple preloader to work properly:

```auto
  
stop();
this.onEnterFrame = function() {
protsendid.text = this.getBytesLoaded()+" of "+this.getBytesTotal();
   if (this.getBytesLoaded() == this.getBytesTotal()) {
	 this.gotoAndPlay("2");
   }
};

```

this code is on the first frame… and also on the same frame there is a dynamic text field called “protsendid”… it does everything correctly, but just goes to frame 2, and stops… does not start palying… why ?
