# \[F5\] thunder, lightning, "HELP!"

**URL:** <https://forum.kirupa.com/t/f5-thunder-lightning-help/7952>\
**Category:** flash\
**Created:** [November 11, 2002, 4:38am UTC](https://forum.kirupa.com/t/f5-thunder-lightning-help/7952 "2002-11-11T04:38:55Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![morse](https://avatars.discourse-cdn.com/v4/letter/m/bbce88/32.png) [@morse](https://forum.kirupa.com/u/morse)\
**Post date:** [November 11, 2002, 4:38am UTC](https://forum.kirupa.com/t/f5-thunder-lightning-help/7952/1 "2002-11-11T04:38:55Z")

</div>

go here

[http://www.geocities.com/h4xx02/movie2\_2\_37.swf](http://www.geocities.com/h4xx02/movie2_2_37.swf)

and tell me if you get past 25% loading.  
If you do, please comment on the site. It is my first decend Flash website, but don’t hold back.

im not getting past 25%.

Troubleshoot my AS?:

frame1:

stop()  
ifFrameLoaded (5) {  
gotoAndPlay (2);  
}

frame2:

stop()  
ifFrameLoaded (75) {  
gotoAndPlay (3);  
}

frame3:

stop()  
ifFrameLoaded (134) {  
gotoAndPlay (4);  
}

frame4:

stop()  
ifFrameLoaded (270) {  
gotoAndPlay (5);  
}

frame5:

stop()  
ifFrameLoaded (276) {  
gotoAndPlay (10);  
}

any help?

-=:.:=-  
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:** [November 11, 2002, 4:50am UTC](https://forum.kirupa.com/t/f5-thunder-lightning-help/7952/2 "2002-11-11T04:50:57Z")

</div>

IfFramesLoaded has been deprecated (fazed out)… Try this kind of preloader.

[http://www.kirupa.com/developer/actionscript/preloader.asp](http://www.kirupa.com/developer/actionscript/preloader.asp)

PS: Please don’t crosspost the same question in multiple threads.  
I am going to delete the others.

---

<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:** [November 11, 2002, 4:55am UTC](https://forum.kirupa.com/t/f5-thunder-lightning-help/7952/3 "2002-11-11T04:55:12Z")

</div>

so sorry, I wont do it anymore.

---

<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:** [November 11, 2002, 4:55am UTC](https://forum.kirupa.com/t/f5-thunder-lightning-help/7952/4 "2002-11-11T04:55:54Z")

</div>

It is ok, just letting you know. Posting the same question in multiple forums causes confusion when people answer them.

---

<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:** [November 11, 2002, 5:19am UTC](https://forum.kirupa.com/t/f5-thunder-lightning-help/7952/5 "2002-11-11T05:19:19Z")

</div>

ok, wont happen again.  
Anyway, I’m uploading new version of my site, check it out?

[www.geocities.com/h4xx02/movie2\_2\_37.swf](http://www.geocities.com/h4xx02/movie2_2_37.swf)

thx

---

<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:** [November 11, 2002, 5:21am UTC](https://forum.kirupa.com/t/f5-thunder-lightning-help/7952/6 "2002-11-11T05:21:23Z")

</div>

That is very good for your first Flash site.

Did you trace all of that by hand in Flash? If so, that must have been very time consuming! :o

The text is a little hard to read though :-\

---

<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:** [November 11, 2002, 5:22am UTC](https://forum.kirupa.com/t/f5-thunder-lightning-help/7952/7 "2002-11-11T05:22:57Z")

</div>

hymm

try

[www.geocities.com/h4xx02](http://www.geocities.com/h4xx02)

instead.

and [deleted] my AS didnt seem to work. Here is what I have:

Frame4:

if (\_framesloaded\>=\_totalframes) {  
gotoAndPlay (5);  
} else {  
gotoAndPlay (4);  
}

Frame5:

gotoAndPlay (10);

hlp?

btw I love the format and effects of your website. I think its really well done.

---

<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:** [November 11, 2002, 5:28am UTC](https://forum.kirupa.com/t/f5-thunder-lightning-help/7952/8 "2002-11-11T05:28:48Z")

</div>

Hey, thanks for the compliments on my site 🙂

As for your preloader not working… are you sure it isn’t working, or is your page just loading too fast to show it?

I got a quick blip of it the beginning and there are no sounds to beef up your file size, so it should load fairly quickly.

PS: Times New Roman is considered an unprofessional font, so it is up to you, but you might want to look into changing 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:** [November 11, 2002, 5:44am UTC](https://forum.kirupa.com/t/f5-thunder-lightning-help/7952/9 "2002-11-11T05:44:59Z")

</div>

yea i hate times, i was just using it until i found a better one that i liked. I’m very peculiar. I love the one on [www.rayoflight.net](http://www.rayoflight.net) but i dont know what it is. you should check that site out, if you havent already. i believe that Yasuto Suga is the best flasher i have ever seen.

the preloader - i dont think it is working, when i viewed the site it continued right through like i was loading quickly, but it slowed and seemed to wait for frames to load later on. It should take a few seconds, the movie is 588 kb.

the lines - yes i spent a few hours drawing thoes, but that perfectly fine with me, i love flashing and anything that looks good i fly with.

btw if you do go to [photoalchemy.com](http://photoalchemy.com), the new flash version is not up yet, i just submitted it to the owner of photoalchemy today.

any suggestion of a font to use?

---

<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:** [November 11, 2002, 5:54am UTC](https://forum.kirupa.com/t/f5-thunder-lightning-help/7952/10 "2002-11-11T05:54:59Z")

</div>

Alright, here is what I always use for a preloader. I put it in the scene before my main movie.

On Frame 1

```auto
bytes_loaded = Math.round(_root.getBytesLoaded()/1000);
bytes_total = Math.round(_root.getBytesTotal()/1000);
_root.loadBar._width = bytes_loaded/bytes_total*125;
_root.loadText = "("+bytes_loaded+" Bytes out of "+bytes_total+" Bytes Loaded)
"+Math.round((bytes_loaded/bytes_total)*100)+"%";
if (bytes_loaded == bytes_total) {
	gotoAndStop("Scene 2", 1);
	delete bytes_loaded;
	delete bytes_total;
}

```

On Frame 2

```auto
gotoAndPlay(1);

```

Where loadBar is the bar i want to change the width to, 125 is the final width of the bar when the movie is done loading, loadText is the textbox that displays the information.

I haven’t tested it in Flash 5, but by theory it should work, I believe Flash 5 supports all those actions. This preloader has never failed me.

You don’t need to put it in a different scene, I just do because it is my preference.

The font used on rayoflight looks a lot like Times. It might be Arial maybe :-\ I usually use Verdana, Verdana is a highly popular font and comes with almost all OS’s.

---

<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:** [November 11, 2002, 5:59am UTC](https://forum.kirupa.com/t/f5-thunder-lightning-help/7952/11 "2002-11-11T05:59:37Z")

</div>

lol I’v never even tried to make a multi-scene movie. know any good tutorials?

yea thanks for the AS ill try it as soon as i can get thoes smilies out…done…

thx

---

<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:** [November 11, 2002, 6:02am UTC](https://forum.kirupa.com/t/f5-thunder-lightning-help/7952/12 "2002-11-11T06:02:49Z")

</div>

As I said… You don’t need to use scenes.

I only use scenes for the preloader, everything else I use loadMovie or something.

Just go to Insert/Scene the go to Window/Panels/Scene (I believe that is where it is in Flash 5) and make sure the scene with your preloader is before the one with your main movie.

---

<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:** [November 11, 2002, 7:04am UTC](https://forum.kirupa.com/t/f5-thunder-lightning-help/7952/13 "2002-11-11T07:04:39Z")

</div>

ok well, I’m uploading a new one. I changed the font to Century Gothic. I dont know if it is going to work…i didnt embed the font. oh well…

i havent done the loading screen. Im not sure it works in flash 5, i think i screwed up anyway. ill work it out tomorrow. with a broadband connection you shouldnt have trouble having it load in time.

i gotta get flash 6, dont know how though… Cant exactly afford it. I havent done very many pages for $$$. I got $50 for the original PhotoAlchemy, and dont know how much for the new one…anyway…

check out the new site. see if the font works. thx.

ill be on tomorrow…its 12:04 here.

again thx for all your help.
