# Preloader 'strobes' my movie

**URL:** <https://forum.kirupa.com/t/preloader-strobes-my-movie/6376>\
**Category:** flash\
**Created:** [October 5, 2002, 8:19pm UTC](https://forum.kirupa.com/t/preloader-strobes-my-movie/6376 "2002-10-05T20:19:50Z")\
**Posts on this page:** 7\
**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:** [October 6, 2002, 4:43am UTC](https://forum.kirupa.com/t/preloader-strobes-my-movie/6376/21 "2002-10-06T04:43:07Z")

</div>

No problem, I am glad I could help at least a little bit:)

Even if it didn’t fix the whole problem on your side, you at least have a nudge in the right direction, which is always better than nothing:)

---

<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:** [October 6, 2002, 10:56pm UTC](https://forum.kirupa.com/t/preloader-strobes-my-movie/6376/22 "2002-10-06T22:56:12Z")

</div>

Hey LOST i saw that you said to put a stop on the last frame of movie but what if you want Scene 2 to loop? and Scene one is your preloader? …oh yeah another thing that code you put isn’t working

if (\_framesloaded\>=\_totalframes) {  
gotoAndPlay(nextScene());  
} else {  
gotoAndPlay (1);  
}

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:** [October 7, 2002, 2:25am UTC](https://forum.kirupa.com/t/preloader-strobes-my-movie/6376/23 "2002-10-07T02:25:02Z")

</div>

Yeah, so sorry about that, I messed up on the code, it is actually…

```auto
if (_framesloaded>=_totalframes) {
nextScene();
} else {
gotoAndPlay (1);
}

```

If you have the preloader on Scene 1 and want Scene 2 to loop then just add a gotoAndPlay(1) action on the last frame in Scene 2, this week keep going back to Frame 1 in Scene 2. If you don’t put it, it will loop back to Scene 1 and so forth.

---

<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:** [October 7, 2002, 2:54pm UTC](https://forum.kirupa.com/t/preloader-strobes-my-movie/6376/24 "2002-10-07T14:54:16Z")

</div>

ok thanks i’ll try that although regarding the code the problem according was regarding the " else " it was saying that it was missing the “if” but anyway i will go try it …thank you

---

<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:** [October 7, 2002, 3:43pm UTC](https://forum.kirupa.com/t/preloader-strobes-my-movie/6376/25 "2002-10-07T15:43:44Z")

</div>

Well I just tried out that above code and it worked fine.

---

<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:** [October 7, 2002, 6:08pm UTC](https://forum.kirupa.com/t/preloader-strobes-my-movie/6376/26 "2002-10-07T18:08:09Z")

</div>

yeah i got no errors in the code, however the preloader did not work. I set it up like you do with the 2 scenes, but when i load my page all i see is a blank rectangle where i should see a preloader…☹

---

<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:** [October 7, 2002, 6:21pm UTC](https://forum.kirupa.com/t/preloader-strobes-my-movie/6376/27 "2002-10-07T18:21:31Z")

</div>

Hmm, it has been a while since I have done a basic preloader. I will have to test this out.

[Previous page](https://forum.kirupa.com/t/preloader-strobes-my-movie/6376.md?page=1)
