# Preload syntax

**URL:** https://forum.kirupa.com/t/preload-syntax/9466
**Category:** flash
**Created:** [December 12, 2002, 11:51am UTC](https://forum.kirupa.com/t/preload-syntax/9466 "2002-12-12T11:51:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Melissa\_Anne](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@Melissa\_Anne](https://forum.kirupa.com/u/Melissa_Anne)
#### Post date: [December 12, 2002, 11:51am UTC](https://forum.kirupa.com/t/preload-syntax/9466/1 "2002-12-12T11:51:09Z")

</div>

This is my preload , it works fine but i would like to apply it to only one scene not all of them…i want to have separate preloaders.

here is the code, what&where do i need to change so that it preloads only one scene?

onClipEvent (enterFrame) {  
var bytes = \_root.getBytesTotal();  
var bytes\_loaded = \_root.getBytesLoaded();  
if (bytes\_loaded == bytes) {  
\_root.gotoAndPlay(2);  
this.melktext = “movie loaded”;  
} else {  
\_root.gotoAndStop(1);  
this.melktext = “loading (”+bytes\_loaded+"/"+bytes+")";  
}  
}

---

<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: [December 12, 2002, 1:52pm UTC](https://forum.kirupa.com/t/preload-syntax/9466/2 "2002-12-12T13:52:42Z")

</div>

Pain in the butt. Do you really have to use several scenes?

---

<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: [December 12, 2002, 2:38pm UTC](https://forum.kirupa.com/t/preload-syntax/9466/3 "2002-12-12T14:38:18Z")

</div>

well i am afraid so…but any other ideas / preloaders are welcome 🙂
