Hi everybody,
yet again I hope for some kind soul to have mercy on me and show me the way...
I've done this site which has a preloader that loads the intro, then starts paying it while the rest of the site downloads... just the usual...
Now I want to add a progressbar to indicate how much has loaded - just to give the visitor an idea.
My problem is that I have no idea how to implement the AS in a way that it will recognise the bytes for the intro only, rather than the whole site.
The AS I have in place at the moment will indicate the whole bytes of the site, then after 20% or so - the intro starts paying - which just looks wrong.... I've tried so many different angles, but not exactly being the script genius ( I WISH) - I just can't figure it out...![]()
![]()
Anyway, here's what I've got there at the moment:
total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
remaining_bytes = total_bytes-loaded_bytes;
percent_done = int((loaded_bytes/total_bytes)*100);
bar.gotoAndStop(percent_done);
ifFrameLoaded ("intro", 250) {
gotoAndPlay("intro", 1);
}





Reply With Quote