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

concept thing

Status
Not open for further replies.

bubu

Programmer
Mar 3, 2002
463
RO

Hello guys!
Please have a look at that link...and move across a section ... you will notice how the movies with the images are loading one after another (the menu is masked by the percentage bar).

The question:

They have a main movie in which they load the images....but the percentage bar is outside that movie...and the movies are loading one after another...how can i do that?...i have a solution but i think is too complicated ... make the percentage bar movies in the main movie, and set their width ( i've noticed is more flexible than _xscale when it comes to percentage bars) accordingly to the loading progress....load those movies in a container from the main movie and set the width like this:

total=_root.container.getBytesTotal();
loaded=_root.container.getBytesLoaded();
progress= int(total/loaded*100);

_root.percentage_bar._width=progress;

...as for the looping load of the images: on a first frame load the first movie and stop(); and on the last frame of this movie(loaded in container from the main movie) set an action to go on a second frame where we load the second movie and stop(); ....somehow on these frames from the main movie (1 for the first movie, 2 for the second, etc...) we have to set the _width of the percentage bars ....

Sounds pretty complicated to me...so please advise :)
Thanks a lot!


Regards,
Dragos.
 
You could monitor the entire thing from one event which loads the next movie in sequence once the previous one hits 100% loaded. This removes the need for lots of individual key frames doing the loading.

For me _xscale is by far the best way to scale the progress bars because you don't need to know how wide the clip is.
 
Thanks a lot for the tip wangbar! ;-)

Regards,
Dragos.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top