Hey all,
I am in the process of building a site for an Architect…
http://217.199.182.231/~jamiefob/
(projects)
I am useing transitions between the projects and am loading details/text and images externally through flashvars, php and a mySQL database.
Within my transitions I have a a preloader on the forst 2 frames the code is as follows (taken from a Voetsjoeba tutorial):
midframe = [21];
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}
This works pretty well if the content is within the .swf, but when it is loaded externally it doesnt preload it at all.
Does anyone know how I can adapt/improve this preloader? or somehow ensure that all the content being loaded externally is loaded before the transition plays?
As ever any assistance much appreciated.
thanks
Henry