Ask a Question related to Macromedia Flash, Design and Development.
-
Johnny Walker #1
Loader. What i'm doing wrong?
I have made a 2 Kb preloader for a 783 Kb page. It is supposed to show a
counter going from 0% to 100% as it loads the main movie into a
container movie clip and then, when it is fully loaded, the main movie
starts.
I've tryed it with the Flash MX 2004 Download simulation and it works
but when I upload the page to the server, it doesn't work the way it was
meant.
Instead of that, The counter doesn´t appear and the movie starts playing
before the loading is fully concluded so it begins playing, stops
waiting for content needed for some frame and then continues.
What is wrong with my code?
The scenery just contains a dynamic text whith the variable "loading"
and an empty movieclip at 0,0 called "container"
-----------First frame is:
loadMovie("home.swf", container);
//loads the big movie in empty movieclip placed at 0,0 coordinates
-----------Second frame:
container.stop(); //keeps the movie from starting until it is fully loaded
total = container.getBytesTotal();
loaded = container.getBytesLoaded();
if ((loaded >= total) && total > 0) {
//checks if movie is completely loaded and also if there is
//something already loading in the container
gotoAndStop(4); // exits the loading loop
}
loading = "LOADING... "+Math.round((loaded/total)*100)+"%";
// this variable is the text for the textfield in the counter
-----------Third frame:
gotoAndPlay(2);
-----------Fourth frame:
stop();
container.play();
As simple as this, but it works in the simulation but not in the www.
Any help would be greatly appreciated.
JW
Johnny Walker Guest
-
loader problem
Hi i am using loader to load another page in my main page. But while loading time my cursor is not showing busy cursor. Do anybody know why it is... -
pre loader
Hi I'm pretty new to pre-loaders and want to create one where an image moves along the screeen proportionately to the amount loaded. Instead of... -
Looking 4 a LOADER.
Hi. I'm looking for a nice looking and well working loader. If you happen to have one, please let me know... Thanks, BlueStar. -
LOADER NEEDED
Hi. I'm looking for a nice looking and well working loader. If you happen to have one, please let me know... Thanks, BlueStar. -
loader
hi there, i am creating a website for a restaurant, and was wanting to have a loader scene, the tricky part is, that the loader scene is a red pepper...



Reply With Quote

