Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Preloader problem 2

Status
Not open for further replies.

bubu

Programmer
Mar 3, 2002
463
RO
i have made a preloader and i want to add a "percent bar".
I think i have an idea of making it, using ifframeloaded(Scene1,20)...etc.....for example.
My movie has 2 scenes:Scene1-the preloader;and Scene2-the content of my webpage.
THE PROBLEM is that in the second scene i have some "principal" movies....i have only 1 frame and the content of the page is in one of these movies.So how can i use the ifframeloaded(SCENE1,20) for a percent check of my loading if in the SCENE1 i have only 1 frame? The check should be done in one of the movies in the scene1....how can i do this?????

Thanks,
DRAGOS
 
First off, the ifFrameLoaded action is deprecated in Flash 5, and although it will still work, you should be using _framesloaded & _totalframes or getBytesLoaded() & getBytesTotal(), instead.

Now, in your second scene are you loading your content movies in container clips or on other levels with the loadMovie action? Or is the content in movie clips included in scene 2?

If you're using the loadMovie action, usual preloaders ignore such actions and won't work. In that case, the to be loaded movie has to have it's own preloader that works in conjunction with the main movie preloader. The main preloader then starts off by loading your content movie(s), and when it's loaded (getting feedback of the process from the preloader of the loaded movie itself!), rather than playing that movie, control is sent back to the main preloader, which continues on with what other stuff it has to do. When finised, it moves to scene 2, where your loaded movie(s) can now be played!

Regards,
new.gif
 
I have asked you to help me some days ago and i have sent you a .fla ....something with a Services button.....In this scene i don't use loadmovie action...
In this scene i have for example a Mainmenu layer wich contains Mainmenu movie clip and it's content.
Check: I want that preloader to show how much of the loading process has been made in percent %.



Can you tell me the actions i should enter instead of ifframeloaded.....As i said to you my second scene contains 1 frame.....and again i don't use loadmovie....that 1 frame from scene 2 has the content of the movies.

Thanks a lot man you're the best!!!!!


P.S. Tell me what do you think about my site!
 
Do you really want a percentage bar being filled up (I hate those!), or just a updating percentage text displayed?

Post the code of your preloader as it now stands.

Regards,
new.gif
 
i have returned to the work!!!!

ifframeloaded(scene2,1)
gotoandplay(scene2,1).......i may mystake the sintax but you got the idea.
I want a percentage bar...not the text.
Can you help me?
 
I can mail you my preloader. It has the following on it:

1) Bytes to load
2) Bytes Loaded
3) Bytes Remaining
4) Percentage Bar
5) Percentage in text (this is over the top of the bar in the centre)

You can take off it what you need if you wish.

Rgds
 
dragos.bocai@rdsct.ro

I have one little problem:
The second scene of my movie contains 1 frame so the percentage check should be done in one of the movie clips from scene2.
Let me put in another way:for e.g. the action: ifframeloaded(Scene2,20) won't work because my scene has only 1 frame so it should look like: ifframeloaded(scene2.mainmenu,20)...i don't know if it shoul look like this.
You understand?


Thanks a lot,
DRAGOS BOCAI.
 
Yeah, no problem...I'll mail it tonight. All I should have to do is set it to ifframeloaded (scene 2, frame 1) because it'll load anything thats in the first scene (which is all your content).

Its really easy to edit as well. I've just read loads of tutorials and put it together from them. In the end, theres very little actionscript.

Like I say, I'll mail it tonight as I'm at work now. If you have any problems with it, let me know and I'll try to sort it.

Rgds
 
Link seems to be dead...anyway, I've mailed the fla, so let me know if its like what you wanted...

Rgds
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top