# And the difference is

**URL:** https://forum.kirupa.com/t/and-the-difference-is/2714
**Category:** Uncategorized
**Created:** [March 16, 2002, 4:30am UTC](https://forum.kirupa.com/t/and-the-difference-is/2714 "2002-03-16T04:30:13Z")
**Posts on this page:** 20
**Page:** 1

<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: [March 16, 2002, 4:30am UTC](https://forum.kirupa.com/t/and-the-difference-is/2714/1 "2002-03-16T04:30:13Z")

</div>

I pasted this code in my movie per the instructions from the preloader tutorial by kirupa. \r\rif (\_framesloaded\>=\_totalframes) {\r&nbsp &nbsp &nbsp &nbsp gotoAndPlay (2);\r} else {\r&nbsp &nbsp &nbsp &nbsp gotoAndPlay (1);\r}\r\rIt seemed to work once just fine.\rAnd then it wreaked destruction with the browser (IE 6, Windows XP and Flash Player6). So I got out my handy dandy Flash 5 Action Script book. The book recomended this for my preloader\r\rif (\_framesloaded\>=\_totalframes) \r{\r&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp \_root.mainMovie.gotoAndPlay (2);\r}\r\rAnd my question is…Whats the difference? Is the tutorial directed more towards Flash 4 maybe?&nbsp &nbsp &nbsp &nbsp

---

<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: [March 16, 2002, 6:18am UTC](https://forum.kirupa.com/t/and-the-difference-is/2714/2 "2002-03-16T06:18:00Z")

</div>

exactly wut destruction are you talking about?? I recommend not using the \_frameloaded thing bcuz Upu’s tutorial is much better.\r\r[pub40.ezboard.com/fkirupa…ID=9.topic](http://pub40.ezboard.com/fkirupafrm24.showMessage?topicID=9.topic)

---

<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: [March 16, 2002, 7:02am UTC](https://forum.kirupa.com/t/and-the-difference-is/2714/3 "2002-03-16T07:02:40Z")

</div>

Cool, I’ll take that into account, Ill have to dig into it some more. To answer your question, I believe that there may be a conflict with Flash Player 6. I recieved the following error message when using kirupas tut. \r\r" A script in this movie is causing Macromedia Flash Player 6 to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script?" Yes or No\r\rIf you click yes, it aborts the preloader code and go’s directly to frame 2. I fixed the problem from this…\r\rif (\_framesloaded\>=\_totalframes) {\r gotoAndPlay (2);\r} else {\r gotoAndPlay (1);\r}\r\rTo this…\r\rif (\_framesloaded\>=\_totalframes) \r{\r \_root.mainMovie.gotoAndPlay (2);\r}\r\rI was just wondering what the difference was between the two.\rThanks\r

---

<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: [March 16, 2002, 2:20pm UTC](https://forum.kirupa.com/t/and-the-difference-is/2714/4 "2002-03-16T14:20:08Z")

</div>

[pub40.ezboard.com/fkirupa…ID=9.topic](http://pub40.ezboard.com/fkirupafrm24.showMessage?topicID=9.topic)

---

<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: [March 16, 2002, 6:00pm UTC](https://forum.kirupa.com/t/and-the-difference-is/2714/5 "2002-03-16T18:00:19Z")

</div>

Ok…That is a very cool pre-loader. I even downloaded the fla. But when I tested the movie (inside of Flash" I got the same script error.\r\r" A script in this movie is causing Macromedia Flash Player 6 to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script?" Yes or No\r\r\rAnd the difference is?

---

<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: [March 16, 2002, 6:31pm UTC](https://forum.kirupa.com/t/and-the-difference-is/2714/6 "2002-03-16T18:31:02Z")

</div>

lol sorry Z doens’t seem we answered your question. To tell you the truth, I’m not really sure. I’ve never had that experience using a preloader. I think that it has to do with the fact that from FRAME 1 you are telling Flash to go to Frame 1. I think Flash might get confused. Thats why Upu’s tutorial had a loop\r\rgotoAndPlay (1);\r\rin frame two. The allows flash to continue on but then return to frame 1, and then check the preloader again (loop).\r\rDon’t quote me cuz I don’t really know all the much, but this seems to be the most logical explaination i can think of.

---

<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: [March 16, 2002, 6:45pm UTC](https://forum.kirupa.com/t/and-the-difference-is/2714/7 "2002-03-16T18:45:49Z")

</div>

that’s not a conflict with Flash Player, it just means that you’re executing too many calculations in one single frame. There must be something wrong, like an infinite loop somewhere… Use Upu’s tute.\rpom 0]

---

<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: [March 16, 2002, 8:09pm UTC](https://forum.kirupa.com/t/and-the-difference-is/2714/8 "2002-03-16T20:09:20Z")

</div>

I see your point Jubba, Im not sure why it won’t work. But the .fla I downloaded from upu wouldn’t work. I didn’t use it for my own movie. I just ran it on it’s own, without any modification whatsoever. It should work when you test it using the “Show Streaming” option. I smell a bug or somthing with Flash Player 6. \r\rNo biggie…It is what it is.

---

<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: [March 16, 2002, 8:36pm UTC](https://forum.kirupa.com/t/and-the-difference-is/2714/9 "2002-03-16T20:36:09Z")

</div>

i downloaded the fla and it worked fine for me. and I have flash player 6. maybe something with your computer? are you running a lot of programs?

---

<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: [March 16, 2002, 8:50pm UTC](https://forum.kirupa.com/t/and-the-difference-is/2714/10 "2002-03-16T20:50:32Z")

</div>

No…Just the browser, AOL IM, Flash 5. Its a pretty fast box. 1.6Ghz, 512RAM. Im running Windows XP. I loaded the tut from upu on my Windows 98 Laptop, and it worked fine. Go figure. It’s not a pressing issue, I was just curious.

---

<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: [March 16, 2002, 9:45pm UTC](https://forum.kirupa.com/t/and-the-difference-is/2714/11 "2002-03-16T21:45:30Z")

</div>

hmm… what exactly is the processor you are using? Maybe that will 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: [March 17, 2002, 12:24am UTC](https://forum.kirupa.com/t/and-the-difference-is/2714/12 "2002-03-17T00:24:13Z")

</div>

Pentium 4 1.6 Ghz…Upu , I ran your tut just in the swf, and the same error message popped. This is kind of weird.\rBut like I said earlier. It’s no big deal for me at this point.\r:)

---

<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: [March 17, 2002, 5:09am UTC](https://forum.kirupa.com/t/and-the-difference-is/2714/13 "2002-03-17T05:09:15Z")

</div>

hmmm… you are saying that you downloaded my fla, opened it on your Flash program, did a test and it gave you that message?\r\rI will try to download my own file, and test it and see if It does that.

---

<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: [March 17, 2002, 11:08am UTC](https://forum.kirupa.com/t/and-the-difference-is/2714/14 "2002-03-17T11:08:23Z")

</div>

Here it is. I took a print screen.\r[www.ptwood.com/error.jpg](http://www.ptwood.com/error.jpg)

---

<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: [March 17, 2002, 7:11pm UTC](https://forum.kirupa.com/t/and-the-difference-is/2714/15 "2002-03-17T19:11:28Z")

</div>

OK… I just tested that FLA downloaded from my site, and I had no error.\r\rI really don’t know what to tell you… I’d say reinstal Flash if I were sure that was the problem… I really don’t know. The script is secure, and error free.

---

<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: [March 17, 2002, 8:24pm UTC](https://forum.kirupa.com/t/and-the-difference-is/2714/16 "2002-03-17T20:24:32Z")

</div>

upu…Im sure your script is solid, like I said earlier. It worked on my other box. Maybe its a Winblows XP thing, some kind of glitch, who knows. Anyway…Thanks for checking.

---

<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: [March 17, 2002, 10:36pm UTC](https://forum.kirupa.com/t/and-the-difference-is/2714/17 "2002-03-17T22:36:18Z")

</div>

Nope. I’m using Window’s XP… and I tried it on a Mac as well. The OS is not the problem… \r\rStill thinking about this though… if I can come up with any explination I will… right now I’m stumped.

---

<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: [March 17, 2002, 10:39pm UTC](https://forum.kirupa.com/t/and-the-difference-is/2714/18 "2002-03-17T22:39:02Z")

</div>

Please send me your file, with the errror, at [upuaut@centerspin.com](mailto:upuaut@centerspin.com)\r\rI want to see if perhaps something in your system is corupting the file as it is being opened.

---

<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: [March 19, 2002, 3:00am UTC](https://forum.kirupa.com/t/and-the-difference-is/2714/19 "2002-03-19T03:00:29Z")

</div>

File sent.

---

<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 30, 2002, 7:01am UTC](https://forum.kirupa.com/t/and-the-difference-is/2714/20 "2002-04-30T07:01:25Z")

</div>

The reason why this preloader doesn’t work is because the frame is jumping to itself, so there is no time delay while passing to another frame.\r\rThis causes the “slowing down your computer” loop effect, because Flash is trying to execute the script repetitively at infinte speed. I have repeatedly triggered the warning message when executing loops that did not cycle through at least one frame backwards or forwards.\r\rTo fix this preloader, all you’d have to do is move everything forward one frame, so the script is in frame 2 and jumps to frame 1 if everything isn’t loaded. Although I’m not sure why, it seems to work better if you give it even more space, like move everything to frame 10. Then, Flash can use its resources to load the movie rather than just having to constantly deal with the loop command. Not sure about this part…\r\rGood luck…\r\rAndrew

[Next page](https://forum.kirupa.com/t/and-the-difference-is/2714.md?page=2)
