# My preloader dosnt work...?

**URL:** <https://forum.kirupa.com/t/my-preloader-dosnt-work/106568>\
**Category:** Uncategorized\
**Created:** [April 7, 2004, 1:40am UTC](https://forum.kirupa.com/t/my-preloader-dosnt-work/106568 "2004-04-07T01:40:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Desire](https://avatars.discourse-cdn.com/v4/letter/d/f475e1/32.png) [@Desire](https://forum.kirupa.com/u/Desire)\
**Post date:** [April 7, 2004, 1:40am UTC](https://forum.kirupa.com/t/my-preloader-dosnt-work/106568/1 "2004-04-07T01:40:29Z")

</div>

Feckin preloader s\*\*t :puzzle:

on my scene labled “Pre” first layer (2 frames long)i have a symbol thats a box flashing though diffrent colours and the word loading.

on the 2nd layer (above the other layer) i have 2 keyframes the first with the codeing

ifFrameLoaded (“Main”, 4) {  
gotoAndPlay(“Main”, 1);  
}

and on the 2nd keyframe i have

gotoAndPlay(1);

but when i preview my work the word loading and the flashing box do not apeare?? seems to me that the preloader is not takeing effect??

also it puts because of my buttons on the main scene useing the \_root.gotoandstop(1)} its adding an extra 2 frames so on my main scene frame 1 is actualy frame 3 because the preloader is bumping it up 2 frames.

any way to get round that???

i have no idea wats gone off here.

here is a link to the .SWF

[the .swf file](http://homepage.ntlworld.com/s.rate/version2.swf)

is it just me or the preloader not doing squat!?

yeah if the code is screwed please let me no but i did one of them preloaders with loadbar and that and it still dose the same thing???

thanks for any help

---

<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:** [April 7, 2004, 2:15am UTC](https://forum.kirupa.com/t/my-preloader-dosnt-work/106568/2 "2004-04-07T02:15:32Z")

</div>

First frame code:

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

```

Second frame code:

```auto
this.gotoAndPlay(3);

```

---

<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:** [April 7, 2004, 2:24am UTC](https://forum.kirupa.com/t/my-preloader-dosnt-work/106568/3 "2004-04-07T02:24:26Z")

</div>

AHA! bingo thanks man u seem tome the cure for all my problems 😛 😃 lol

hey another question it takes a while for the preloader to kick in cos its one swf file and its pretty big so how can i cut that down??

cud i make a preloader in 1 .swf and then get it to load the main .swf in after?? if so how wud i go about doin that?

thanks
