# Forced Preloader

**URL:** https://forum.kirupa.com/t/forced-preloader/62186
**Category:** flash
**Created:** [August 25, 2004, 4:56pm UTC](https://forum.kirupa.com/t/forced-preloader/62186 "2004-08-25T16:56:43Z")
**Posts on this page:** 12
**Page:** 2

<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: [August 30, 2004, 5:21pm UTC](https://forum.kirupa.com/t/forced-preloader/62186/21 "2004-08-30T17:21:58Z")

</div>

Btw, you shouldnt happen to know how I can get this preloader to work for the transitions aswell? Having some problem getting it working, because it the transition preloader works abit different.

Thanks,  
fatnslow

---

<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: [August 30, 2004, 10:27pm UTC](https://forum.kirupa.com/t/forced-preloader/62186/22 "2004-08-30T22:27:45Z")

</div>

lot of ppl asking questions about the transitions tut… ill hav to have a look at it… but if you can grasp the basic concept of what ive done (sorry if that sounds patronising or owt… its not intended if it does! :S) chances are you could adapt it to the transitional preloader thingy… ill hav a look for the tut wen i get time k?

Prophet.

---

<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: [August 31, 2004, 12:16pm UTC](https://forum.kirupa.com/t/forced-preloader/62186/23 "2004-08-31T12:16:08Z")

</div>

Thanks, that would be great. I have used the transition tutorial on the index2.fla I posted over. I have tried some, but it is alittle bit to much for my lvl in as atm.

Thanks in advance,  
fatnslow

---

<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: [September 1, 2004, 2:58pm UTC](https://forum.kirupa.com/t/forced-preloader/62186/24 "2004-09-01T14:58:19Z")

</div>

Thanks, that would be great. I have used the transition tutorial on the index2.fla I posted over. I have tried some, but it is alittle bit to much for my lvl in as atm.

Thanks in advance,  
fatnslow

---

<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: [September 4, 2004, 10:22am UTC](https://forum.kirupa.com/t/forced-preloader/62186/25 "2004-09-04T10:22:37Z")

</div>

Hey, Prophet.

Are you able to have a look at the transition thingy?

Thanks

---

<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: [September 7, 2004, 4:34pm UTC](https://forum.kirupa.com/t/forced-preloader/62186/26 "2004-09-07T16:34:02Z")

</div>

Hey, Prophet.

Are you able to have a look at the transition thingy?

Thanks

---

<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: [September 8, 2004, 6:17pm UTC](https://forum.kirupa.com/t/forced-preloader/62186/27 "2004-09-08T18:17:02Z")

</div>

SORRY!!! i went all quiet on u ther dint i… :S

promise ill make time 2 have a look within 24 hours!

Prophet.

---

<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: [September 10, 2004, 6:38am UTC](https://forum.kirupa.com/t/forced-preloader/62186/28 "2004-09-10T06:38:27Z")

</div>

Hehe, no problem. Thanks for all the 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: [September 10, 2004, 8:30pm UTC](https://forum.kirupa.com/t/forced-preloader/62186/29 "2004-09-10T20:30:05Z")

</div>

```auto
bytesLoaded = Math.round(this.getBytesLoaded());
bytesTotal = Math.round(this.getBytesTotal());
//getPercent = bytes_loaded/bytes_total; // Just to remember what the old one was
realPercent = (bytesLoaded/bytesTotal)*100
_root.loadBar._width = fakePercent*2; //max width is 2*100 = 200
_root.loadText = fakePercent+"% Loaded"; //no need to round or times as fakePercent is incremented by 1 each time rather than being loaded/total
if(!firstTime){
	firstTime=1
	fakePercent=0
}
if(intervalStarted!=1){
    intervalStarted=1
	clearInterval(fakePercentInt)
	fakePercentInt = setInterval(function(){
        	fakePercent++
		trace(realPercent)
    },20) //again, change the 100 to a speed of your choice ;)
}
if(fakePercent>realPercent){
	clearInterval(fakePercentInt)
}
else if(fakePercent<(realPercent-5)||realPercent>=100){
	intervalStarted=0
}
if(fakePercent>=100){
	gotoAndStop(3)
	clearInterval(fakePercentInt)
}

```

should work ok judging by the code in this tut:  
[http://www.kirupa.com/developer/mx2004/transitions2.htm](http://www.kirupa.com/developer/mx2004/transitions2.htm)

sorry i didnt reply as soon as promised but i had my first car crash yesterday at about 2.50 pm (ie. before i got home) and my car was a write off… so for once i had a pretty good excuse! 😛

Prophet.

---

<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: [September 10, 2004, 9:34pm UTC](https://forum.kirupa.com/t/forced-preloader/62186/30 "2004-09-10T21:34:59Z")

</div>

Hehe, no problem.

But I can’t see where I should have this code? That is the code I have in the first frame of my main movie. But how can I get it to replace the transition preloader, the one that comes up after the “in” transition has played.

Understandable? 🙂

Thanks for the 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: [September 12, 2004, 8:22pm UTC](https://forum.kirupa.com/t/forced-preloader/62186/31 "2004-09-12T20:22:13Z")

</div>

replace the preloading code on the frames of the swfs with the above and things should run forcibly i hope 😉

Prophet.

---

<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: [September 13, 2004, 6:32pm UTC](https://forum.kirupa.com/t/forced-preloader/62186/32 "2004-09-13T18:32:38Z")

</div>

Ok, now I have a main.swf that on button press loads profile.swf using this code.

on (release)  
\_root.content.loadMovie (“profile.swf”)

and in the profile.swf I have the preloader in the first 2 frames and the text in the third. But when I click on the profile button in the main.swf, the content box gets white and it doesn’t display the preloader, but after the preloader are done, it shows the text…

Understandable 🙂

So, why doesn’t the preloader show up?

Thanks,  
fatnslow

[Previous page](https://forum.kirupa.com/t/forced-preloader/62186.md?page=1)
