View Full Version : help - loading problem
I finished my flash site and i found i had loading problem,
My main loader doesn't appear till 90% whole site loaded.
I check around the posts and some one had problem with heavy head problem.
but my my loader only has a simple progress bar and some text.
Can anyone give me some suggestions? thanks very much
Ruben
04-11-2004, 12:29 PM
Dunno, post a simplified model of your fla and I'll have a look at it...
- Ruben
i tried to attach one, but just cant, file is around 800k in .zip, i'd better try later
Hi Ruben, here it is.
thanks very much
www.freewebs.com/xdcai/mainV2.zip
Ruben
04-13-2004, 08:01 AM
Well, I kinda got lost in all your script, but when I had a quick look inside I noticed that you had this line in your script:
loading_mc.loading_txt.text = percent+"%"
And that you've only given a instance-name to your textbox and no var-name....I'm not sure ['cos I normally use variables for textboxes instead of instance-names] but I remember something of using instancenameofbox.text="bladiebla with textbox-instancenames and variable="bladiebla" for textbox-variables...
And something else: you've got this whole animation in your movie [you know, like the all the lines being drawn and stuff] before the preloader apears, maybe that just the problem, because when the movie is playing it's being loaded as well...
Again: I'm in a bit of a hurry, so I didn't have enough time to make a big study of your movie ;), but if these two things weren't the cause of your problem then just shout [I'm subscribed to any thread I post to so I'll know, when I'm online I'll reply as fast as I can]
Good luck - Ruben
EDIT: By the way, I published your movie to an swf and opened it, but the preloader just stood still at 0% :confused:
ruben, thank you very much for your time, regarding to your first suggestion, i use flash mx 2004, it is rarely talked about using text variable in mx2k4 books. I did see a lot of tuts available online using those variables. But i beileve and i am sure it's okay just calling the instance name. (i got a contact form worked by just passing the inputtext value(calling instance name) to php.
but.. i dont really understand what you are talking about on 2nd issue you addressed. would you mind to extend it a bit, or make a example.
you know, like the all the lines being drawn and stuff] before the preloader apears, maybe that just the problem, because when the movie is playing it's being loaded as well... yeah, it just sounds like my problem, i can tell.. how can i deal with it ,ruben..
the preloader just stood still at 0% i d better go check it, it works at my end..
ah, ruben, i know what u mean bythe preloader just stood still at 0% , i got three scenes in my fla, go check scenes, they are "loading", "prelude", and "main". my question is about "loading" part which loads the whole movie. dont care those preloader script on the main scene. they stood stil at 0 because u have no external swf to load.
still stick with this problem, hey ruben can you talk a bit more on this
And something else: you've got this whole animation in your movie [you know, like the all the lines being drawn and stuff] before the preloader apears, maybe that just the problem, because when the movie is playing it's being loaded as well...
Ruben
04-16-2004, 02:04 PM
[regarding your last post :p]
Alrighty then, I'm in a bit of a hurry [and haven't checked my mail for the past two days either, things've been REALLY busy lately ;)]
But what I meant is something like this:
- If you had a movie which were pretty heavy;
- And there were a preloader which appeared onto the stage after some animation of, let's say 20 seconds;
- Then the preloader wouldn't start at 0% when it appeared, since the movie started loading when it was opened, which would be at the point where the animation started playing...
That's what I meant ;) - Ruben
PS. If you've got any other questions: Don't be shy to ask, I'll get to you as soon as possible. But in the week ahead I've got a lot of things to do for school and stuff...But if I get any mail [I'm subscribed to this thread ;)] I'll be sure to pop by ;)....OK?
thank s ruben, :confused: know what u meant, dont know how to deal with it, could u please have a look at my fla again whenever you feel free (it got three sences, problem is at the first scene named "loading"), thanks again and sorry for disturbing you. I am really wanna know what happen to it. Just can't test it out myself :confused:
Ruben
04-17-2004, 08:02 AM
Well, I don't think it's neccessary to have a look at your fla again if the problem is like I described in my last post [and that's the problem you're facing, am I right?]...
If you'd want your preloader to start at 0% while it's already been loaded partly then the answer isn't that hard...This would be the code for the bar on the preloader [with a width of 1px and a maximum width of 200px]:
maxWidth = 200; // set maximum width of the bar
loadedPart = _root.getBytesLoaded() / _root.getBytesTotal(); // calculate how much of the movie has been loaded
if (_width < maxWidth*loadedPart){ // check wether or not the bar has the correct width
_width++; // if not: increase the bar it's width
}else{
if (_root.getBytesLoaded() != _root.getBytesTotal()){ // if the bar DOES have the correct width: check if the movie has been loaded completely
_width = loadedPart *maxWidth; // if not: display the loaded part by the width of the bar
}else{ // if the movie HAS been loaded completely: do the things in the next line:
// here the stuff you want to let the movie do when it's been loaded completely
}
}
NOTE: I didn't test it, but this should fit it
Good luck! - Ruben
PS. You're not disturbing me or anything. Things have just been a little busy lately so I didn't have that much time to post on threads and stuff, OK? :p
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.