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

load movie

Status
Not open for further replies.

edd1eg

Programmer
Jun 27, 2003
123
GB
Hi there, I am working on my site at the moment not all the links are working yet as work is still in progress, anyway if you click on portfolio, there is a flash movie that loads up, but i want there to be a loader as it loads up, nothing too fancy just plain text saying LOADING, how would i go about doing this.

thanks

edd
 
You might want a generic preloader within your main movie to eventually load other sections as well...

You'll find one example here...


Regards,

cubalibre2.gif
 
I completed the tutorial for the pre-loader, but the actionscript, i'm having a bit of a problem with,on the first frame for the layer actions at has the code:

bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}

I want it when the loader gets to 100% it goes to the next scene, how will i go about doing this.

or do i change something in the second frame of the layer actions

this.gotoAndPlay(1);

thanks

edd
 
A preloader is basically an at least 2 frames loop, that loops until all the bytes of your movie have loaded. Do not change the code on frame 2.

If you've inserted a new scene for your preloader, and that it only holds 2 frames, then going to frame 3 would actually be going to the next scene... Just leave it as it is.

But as I posted above, that preloader may work fine for your main movie, but probably won't (as scripted) if you integrate it to your portfolio movie.


Regards,

cubalibre2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top