# Regarding the post ive made

**URL:** <https://forum.kirupa.com/t/regarding-the-post-ive-made/12368>\
**Category:** flash\
**Created:** [January 30, 2003, 8:41am UTC](https://forum.kirupa.com/t/regarding-the-post-ive-made/12368 "2003-01-30T08:41:42Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![aston](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@aston](https://forum.kirupa.com/u/aston)\
**Post date:** [January 30, 2003, 8:41am UTC](https://forum.kirupa.com/t/regarding-the-post-ive-made/12368/1 "2003-01-30T08:41:42Z")

</div>

Somebody or somethiing plz help …spent 2-3days on this problem and cant solve it…go to \>\>\>[http://webstorage.btinet.net/storage.php?fid=0](http://webstorage.btinet.net/storage.php?fid=0)

to download my index.fla file and take a look in it…  
pwd:allanwang  
[user:astonmartin888@yahoo.com](mailto:user:astonmartin888@yahoo.com)

---

<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:** [January 30, 2003, 3:04pm UTC](https://forum.kirupa.com/t/regarding-the-post-ive-made/12368/2 "2003-01-30T15:04:30Z")

</div>

1. You didnt tell us what the problem was …?

2. your subject heading doesnt tell anyone browsing the boards what this is about

3. most people arent going to go to the trouble of going to that site and downloading the file:  
\_a) especially having to bother with a password  
\_b) not knowing how big or complicated it is  
\_c) and not even knowing what to look for

4. your best bet is to specifically narrow down your problem to something specific and then posting the code involved with a detailed to fairly detailed explanation, or with posting a sample (simple) fla which outlines the problem specifically without other complications which it doesnt involve.

…if you’re lucky and someone is feeling adventurous/generous you might get a responce, but then again you might not

---

<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:** [January 30, 2003, 3:14pm UTC](https://forum.kirupa.com/t/regarding-the-post-ive-made/12368/3 "2003-01-30T15:14:41Z")

</div>

Hi seno. Thanks for replying. Well its so strange let me tell you. I have a first movie which has a enter (to main menu) function and it has a preloader on the first scene. So it doesnt works out when it was uploaded to the site. It doesnt work well coz it seems to struck at loading. Till you have to right clicked it to forward the movie! Can you please check this for me i will uploaded it here a small file. Help me to check twhy the loader seems not working. (such as automatically proceed to the next scene)

Thanks a million!

ps : this file is supposed to be the index.html where it will load the main meun(movie) into it. :cowboy:

---

<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:** [January 30, 2003, 3:18pm UTC](https://forum.kirupa.com/t/regarding-the-post-ive-made/12368/4 "2003-01-30T15:18:45Z")

</div>

well you can go to [www.allanwang.com](http://www.allanwang.com) and u will koe what i meant m8. help me to examine loading part.

---

<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:** [January 30, 2003, 4:11pm UTC](https://forum.kirupa.com/t/regarding-the-post-ive-made/12368/5 "2003-01-30T16:11:44Z")

</div>

#1- Why is that FLA empty except for a loadMovie Command? What is hte point of that? It doesn’t do anything… unless you are going to load and unload other SWFs… but still the point of that is lost on me…

#2- Since index.fla is empty except for that loadMovie command then the problem must lie in main.swf. Post the code you are using for the 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:** [January 30, 2003, 4:16pm UTC](https://forum.kirupa.com/t/regarding-the-post-ive-made/12368/6 "2003-01-30T16:16:36Z")

</div>

bytes\_loaded = Math.round(\_root.getBytesLoaded());  
bytes\_total = Math.round(\_root.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
\_root.loadBar.\_width = getPercent_100;  
\_root.loadText = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
\_root.gotoAndStop(3);  
}

---

<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:** [January 30, 2003, 4:26pm UTC](https://forum.kirupa.com/t/regarding-the-post-ive-made/12368/7 "2003-01-30T16:26:12Z")

</div>

what ActionScript is in frame 2 and frame 3?

try this:

```php

bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent*100;
_root.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded >= bytes_total) {
     _root.gotoAndStop(3);
}

```

---

<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:** [January 30, 2003, 4:28pm UTC](https://forum.kirupa.com/t/regarding-the-post-ive-made/12368/8 "2003-01-30T16:28:13Z")

</div>

Here is the code that I always use:

```php

nTotal = getBytesTotal()/1000
nLoaded = getBytesLoaded()/1000
nPercent = Math.round((nLoaded/nTotal)*100)
nRemain = Math.round(nTotal - nLoaded)
if (nRemain<= 0 && nLoaded != 0){
        gotoAndPlay(3)
}

if(length(nPercent) == 1){
	nPercent = "0"+nPercent
}
_root.loader.bar._xscale = nPercent
nRead = nPercent+"%"

```

THere might be something that I am missing in your code…

---

<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:** [January 30, 2003, 4:28pm UTC](https://forum.kirupa.com/t/regarding-the-post-ive-made/12368/9 "2003-01-30T16:28:22Z")

</div>

(frame2) gotoAndPlay(1);

(frame 3) stop();

tats all

🙂

---

<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:** [January 30, 2003, 4:43pm UTC](https://forum.kirupa.com/t/regarding-the-post-ive-made/12368/10 "2003-01-30T16:43:53Z")

</div>

Thanks m8 anyway i’ll try with your code…

---

<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:** [January 31, 2003, 5:53am UTC](https://forum.kirupa.com/t/regarding-the-post-ive-made/12368/11 "2003-01-31T05:53:27Z")

</div>

Aston, I told you how I fixed your problem in your other thread.

It worked great for me after I fixed it and I told you exactly what I did to fix 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:** [January 31, 2003, 11:19am UTC](https://forum.kirupa.com/t/regarding-the-post-ive-made/12368/12 "2003-01-31T11:19:04Z")

</div>

Hi beta. I saw it. Hehe.
