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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loading

Status
Not open for further replies.

Baixinha

Programmer
Dec 27, 2000
122
BR
How can I create a loading before the project starts?
 
Do you need this for shockwave?

I don't do much shockwave stuff so my only suggestion is to hit and macromedia knowledge base and take a look around. I'm sure one of these two places will have what you need to know.
 
No, I need this to run in a .exe file. My project has some points that's very slow and I need to load this points before start the project.


Tks
 
ok. I haven't done any preload stuff for a long time. There are a few ways to go about it but they all depend on how you have structured things. I am guessing you are using lots of small movies strung togeather.

Use preloadmovie. If there are specific images/content that cause problems put them on the first frame but hide them (put them off screen) as the preloadmovie only loads the first frame. This system will load all those nasty slow cast members early on.

If you have one big movie and just want a "loading" message before it plays post again. I have never done one of those but will look into it if you need one. You can use this preload method with one movie as well by creating a launcher.exe file that executes the preload command then a go to the movie command. This works well because you only have to create the .exe once then can edit the main movie without creating a new .exe file.
 
This is How you do it :
prepare a blank screen (with a background if you like) and have recangle vector cast member.
prepare its width to zero,and place it on the stage. let's call it sprite(2) (if sprite(1) is the background.)
check out how many cast members you have let's say number_of_casts
in a movie script, in the on preparemovie handler.
write the script

on preparemovie
initital_right = sprite(2).right
target_right = initial_right + 150
increment = 150/number_of_casts
repeat with x = 1 to number_of_casts
preload member x
sprite(2).right = sprite(2).right + increment
end repeat
put "preload complete :) "


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top