PDA

View Full Version : ...Loading... Screens


Harkole
10-26-2001, 12:00 PM
Do I have to use the bandwidth meter and just make a simple text scene to loop round till expected load time is complete...

or (and more practicably) ...

Can I use a command to loop frames till the entire flash movie is downloaded?

:confused: :confused: :confused:

Jesse
10-26-2001, 01:02 PM
have you seen the preloader tutorial?

Harkole
10-26-2001, 03:47 PM
Sorry was that busy pulling my hair out over the .txt issue I must of over looked it I'll go look again...

Harkole
10-26-2001, 03:52 PM
ok so as well as being thick this week I'm taking up being blind... I can't find the tutorial I must be looking for the wrong thing...

Shoot me, Shoot me now...

Jesse
10-27-2001, 01:59 AM
http://www.actionscripts.org/tutorials/intermediate/flash5_preloaders/index.shtml

tg
10-27-2001, 03:51 AM
bang!
BANG!
BANG! BANG! BANG!
damn i missed.... well, have a good weekend.

Harkole
10-29-2001, 08:34 AM
Thanks Jesse, and as for tg... Close but no ciggar!

Harkole
10-29-2001, 11:59 AM
OK worked through the tutorial, but somewhere I did a D'oh! So Jesse heres the code, or anyone else for that matter...

total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
remaining_bytes = total_bytes-loaded_bytes;
percent_done = int((loaded_bytes/total_bytes)*100);
bar.gotoAndstop(percent_done);
ifFrameLoaded ("Scene 2", 178) {
gotoAndPlay ("Scene 2", 1);
}


no then, what happens is this... the percent_done always displays 100 the total_bytes = 607033 so does loaded_bytes and bytes_remaining = 0

and as for the bar it just sails accross as a animation....

What I do wrong this time?

red penguin
10-29-2001, 02:04 PM
When you test, are you streaming it?

Harkole
10-29-2001, 02:09 PM
I run test movie (with all scenes ticked) and then I have the bandwidth monitor open adn set the speed to 56K modem 4.2k/s but its just jumping straight to scene 2 now, and when I rewind it and play it again, it does the above....

red penguin
10-29-2001, 02:11 PM
I don't have Flash here, but you have to select show streaming from one of the drop downs when you are in the test mode...this effectively simulates the loading process...

Harkole
10-29-2001, 02:13 PM
well I have flash here... so just give me a second to alt-tab to it hit a few buttons and pick the monitor off the ground floor!!! :D

Harkole
10-29-2001, 02:16 PM
ok all the nice little number's are rolling over now, but the pre-loading bar gizmo shoot along the screen thingy is not moving from well, the beging... it just sits there, dead, none moving, stuffed.... non-animated.... :(

red penguin
10-29-2001, 02:22 PM
so it's a pathing problem or the bar isn't tweened???

I usually use a bar and set it's scale props to indicate progress...However, recently I have used a few tweened and masked deals to do the same...

Harkole
10-29-2001, 02:37 PM
AGHHH!!!!

Ok I went and looked at the tweening it was fine so I went and removed the stop from the first frame... now I have a suicidally over-active blue progress bar!

It just runs like a looped animation... it has no corrolation to the actually loading progression, and when it hits 100% it loops down to 1 and starts again, now this might have its place, but I want a nice SIMPLE go round ONCE corrosponding load bar...

I've used the above mentioned tutorial, and yet something is horrible wrong... I'm going to through the monitor back out the window and go sulk in the board room.... :p


(last statement A.k.a HELP!)

red penguin
10-29-2001, 02:42 PM
An obvious inquiry but I have to ask at this point...I'm having too much joy at the sight of all this...at least in MY haed..

Q: Is the instance named?

hehehe

poab
10-29-2001, 02:45 PM
Hi,

In the code you've posted line 5 is incorrect. It should be:

bar.gotoAndStop(percent_done);

If the S in gotoAndStop isn't a capital in your movie then it won't work. If you've just typed the mistake here, then sorry, don't know.

Maybe check that the variable name in the instance panel is correct. It's easy to miss when you're concentrating on your code.

cheers.

Harkole
10-29-2001, 03:24 PM
Poab you genius! I copy and pasted the code so I will go correct that now... stand-by for futher information, and sorry to dissapoint but the instance name is bar (I hope) I will check that too.... by the way anyone got a spare monitor... this one didn't bounce too well....;)

Harkole
10-29-2001, 03:29 PM
An obvious inquiry but I have to ask at this point...I'm having too much joy at the sight of all this...at least in MY haed..

erm... don't know how to say this... but line 5 of code not changed... instance not named.... named instance.. tested movie.... my god! it works!!! just wondering what in the world I named bar instead...

...

...

...

hmmmm.... whoops! I named the actual frame around the bar, bar in its symbol thingy... i just found my D'oh!

Thanks guys.....






For all that I'm going to go up-load all the flash stuff now so you can see what this was all in aid of... For my first Flash product I'm quite impressed, however I think my buttons needs some work... I will try again harder this time... and try not to finish up looking like a hairless wonder!

may take some time to upload got to go kick a college off the machine with the ftp software on it... and whats more he looks busy....what a shame!

Harkole
10-29-2001, 03:58 PM
Is it possible to have a loading bar for just the four large map images, what I'm saying is this...

The first bit of data to load is a profile of the location etc. This loads in a matter of moments, then flash hits the ordanace maps. adn wham it takes nearly a minute...

So can I let users see the rest of the site and then when they goto the maps section it shows the loading bar there until the image is loaded and then it shows the image?...

Would this be a case of spliting the map section into a scene of its own and then repeating the above scenario (well the working bits anyway) ????

Help my brain is going to explode if I keep having all these ideas and keep getting the basic coding elements wrong (not to mention the rate I'm going through windows and computer monitors at the moment!!!!)

tg
10-29-2001, 04:32 PM
i don't do any preloaders, since 1 im on an intranet with a good pipe, and two i don't need any large images and sounds for any of my projects but here goes...
make your tween 100 frames long.
with the first frame showing your bar close to empty and your last showing the bar full

then in the code that has the loader put in
mytween.gotoAndStop(whateverthepercentis);

heh, may not work. ill learn em when i need em.

:o hmm.. nevermind... guess i got to read all of the pages in the thread...

red penguin
10-29-2001, 06:49 PM
We always seem to overlook the obvious...

hey tg, how 'bout sendin' that "good pipe" over my way? I could use a li...d'oh!...you weren't speaking of that...

Harkole
10-30-2001, 09:09 AM
errrr... arn't we loseing the plot here? The question remains...