# Help!

**URL:** <https://forum.kirupa.com/t/help/26614>\
**Category:** Uncategorized\
**Created:** [July 24, 2003, 6:46pm UTC](https://forum.kirupa.com/t/help/26614 "2003-07-24T18:46:33Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![grandsp5](https://avatars.discourse-cdn.com/v4/letter/g/6bbea6/32.png) [@grandsp5](https://forum.kirupa.com/u/grandsp5)\
**Post date:** [July 24, 2003, 6:46pm UTC](https://forum.kirupa.com/t/help/26614/1 "2003-07-24T18:46:33Z")

</div>

I am making a website and I have a problem. The main screen loads external swf files into a movie clip in the middle of the stage. Each movie clip has a preloader at the beginning. However, the preloader usually doesnt appear until it is as 90 percent or so. It appears for a second after a long period where the screen is blank and then disappears. I would like it to pop up right away so that people know something is happening. Otherwise they click and the screen disappears and doesnt come back for a while. The website is [here](http://www.geocities.com/galynxsystems)

Only the home button and the overview button work right now. The overview button is the one I am concernec about because home loads automatically with the page. You wont see the preloader unless you clear your temporary files. Any help greatly appreciated!

---

<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:** [July 24, 2003, 6:59pm UTC](https://forum.kirupa.com/t/help/26614/2 "2003-07-24T18:59:39Z")

</div>

In your swf files do you have:

-flash components?  
-embedded fonts?  
-1st frame that contains a memory intensive grphic or movie clip?

Also, what is the action script that your using?

REgards,  
Viru.

---

<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:** [July 24, 2003, 7:04pm UTC](https://forum.kirupa.com/t/help/26614/3 "2003-07-24T19:04:45Z")

</div>

The swf’s are graphic intensive but not in the first frame. There are no embedded fonts and the entire site is made in flash. If you need the fla file, I can send it to you. As far as the action script, it is pretty straightforward. The multiple levels make it a little more confusing.  
bytes\_loaded = Math.round(\_root.mc.getBytesLoaded());  
bytes\_total = Math.round(\_root.mc.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
\_root.mc.loadBar.\_width = getPercent_100;  
\_root.mc.loadText = Math.round(getPercent_100)+"%";  
\_root.mc.total = bytes\_total+" Bytes Total";  
\_root.mc.loaded = bytes\_loaded+" Bytes Loaded";  
if (bytes\_loaded == bytes\_total) {  
\_root.mc.gotoAndPlay(3);  
}  
This is the first frame. The second frame just goes back to the first. mc is the name of the movie clip I load the swf into on the main page.

---

<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:** [July 24, 2003, 7:07pm UTC](https://forum.kirupa.com/t/help/26614/4 "2003-07-24T19:07:39Z")

</div>

if (bytes\_loaded == bytes\_total) { // use \>= instead of ==.  
\_root.mc.gotoAndPlay(3);  
}

What about components? like scrollbars or comething?

V.

---

<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:** [July 24, 2003, 7:12pm UTC](https://forum.kirupa.com/t/help/26614/5 "2003-07-24T19:12:05Z")

</div>

There are components. I use a scroll pane but it isnt in the first frame

---

<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:** [July 24, 2003, 7:26pm UTC](https://forum.kirupa.com/t/help/26614/6 "2003-07-24T19:26:09Z")

</div>

The scrollpane export some stuff in the first frame. Anything exported in first frame is preloaded before anything else in the movie. So it may causea load delay before the movie starts.

---

<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:** [July 24, 2003, 7:49pm UTC](https://forum.kirupa.com/t/help/26614/7 "2003-07-24T19:49:44Z")

</div>

Is there any way around this?

---

<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:** [July 24, 2003, 7:54pm UTC](https://forum.kirupa.com/t/help/26614/8 "2003-07-24T19:54:48Z")

</div>

Maybe drag any symbol that is beeing exported to first frame onto stage (any frame besides the first frame). And uncheck the export to first frame option.  
That way i think flash will preload them normally.

ie: place those symbols in 2nd frame. Once the movie is fully loaded, tell flash to move to 3rd frame.

But what i do is avoid using components.

---

<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:** [July 24, 2003, 7:57pm UTC](https://forum.kirupa.com/t/help/26614/9 "2003-07-24T19:57:18Z")

</div>

Ok. I will try it. I don’t know enough to avoid using the scrollpane component yet so I cant really change it.

---

<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:** [July 24, 2003, 8:00pm UTC](https://forum.kirupa.com/t/help/26614/10 "2003-07-24T20:00:42Z")

</div>

If i just uncheck, export in first frame, what will happen? Will it not load the scroll pane until it gets to the frame it is in?

---

<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:** [July 24, 2003, 8:06pm UTC](https://forum.kirupa.com/t/help/26614/11 "2003-07-24T20:06:39Z")

</div>

Ok excellent. I changed all my linkage options so things dont export in the first frame any more and it works much better. It still takes a second to appear but it shows up at about 50 percent instead of 90. 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:** [July 24, 2003, 8:18pm UTC](https://forum.kirupa.com/t/help/26614/12 "2003-07-24T20:18:03Z")

</div>

It still shows up only at 50% ?

---

<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:** [July 24, 2003, 8:24pm UTC](https://forum.kirupa.com/t/help/26614/13 "2003-07-24T20:24:56Z")

</div>

yeah. I think its because of my connection though. The file is only 130k or so and I am on a T1 so i don’t think its the script any more.

---

<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:** [July 24, 2003, 8:26pm UTC](https://forum.kirupa.com/t/help/26614/14 "2003-07-24T20:26:07Z")

</div>

you are welcome to check it out now. [www.geocities.com/galynxsystems](http://www.geocities.com/galynxsystems)

---

<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:** [July 24, 2003, 8:29pm UTC](https://forum.kirupa.com/t/help/26614/15 "2003-07-24T20:29:05Z")

</div>

Yea, the preloader showed up at 18% for me.

---

<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:** [July 24, 2003, 8:29pm UTC](https://forum.kirupa.com/t/help/26614/16 "2003-07-24T20:29:45Z")

</div>

yeah. it works now perfectly. I tried on a different connection. Thanks a bunch for all of your 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:** [July 24, 2003, 8:31pm UTC](https://forum.kirupa.com/t/help/26614/17 "2003-07-24T20:31:55Z")

</div>

Anytime =)
