View Full Version : CD-ROM Preloader
ryando
07-24-2004, 01:09 AM
Does anybody know how to create a cd-rom preloader that shows status? Like a load bar?
farafiro
08-10-2004, 03:02 PM
I think it would be same as the usual preloader
i have the same question....
i am making a cd that loads .swf's with embedded video......
they are pretty hefty.... when i request to load them into a MC
it takes a good 10-15 seconds to see anything... there has got to be a way to show the user how much data has entered the flash movie....
if you find out anything let me know..
eber
farafiro
08-12-2004, 07:42 AM
is there any attachments or components in your movie??
no there are no compoment or "attachments".....
i have a MC created on the first frame of a projector...
_root.createEmptyMovieClip("holder");
then it loads the main menu....
_root.holder.loadMovie("main.swf");
everything is okay until........
a load movie is called to another MC....."movieHolder"
_root.holder.movieHolder.loadMovie("myMovie.swf");
myMovie.swf is 33 MB
the entire movie freezes until the whole movie is loaded.
i have tried to create a preloader for it to indicated that the movie is loading
but flash loads everything and when it refreshes it skips the preloader, thinking that all the data has loaded.
i hope this explains the situation.....
-eber
farafiro
08-15-2004, 06:48 AM
what do u mean by 'when it refreshes'??
see this:
http://www.actionscripts.org/forums/showthread.php3?threadid=14844
ready2fight
08-17-2004, 06:25 PM
why don't you compress you videos to .FLV and load them through flash media components?
Tearex
10-05-2006, 05:30 PM
Hi... I think I have a similar problem as eber (if not exactly). I created preloader, on a "loader", called Start.exe. When I did simulated download (ctrl + enter), the loader bar works fine. However, when I burn the exe on DVD and did the [autorun], the preloader won't appear. It just stuck on the frame with preloader & loading scripts.
The following scripts are on a single frame in Start.exe.
Preloader Scripts (standard script found in Flash's help, only changed some parameters):
//create clips to hold your content
this.createEmptyMovieClip("progressBar_mc", 0);
progressBar_mc.createEmptyMovieClip("bar_mc", 1);
progressBar_mc.createEmptyMovieClip("stroke_mc", 2);
//use drawing methods to create a progress bar
with (progressBar_mc.stroke_mc) {
lineStyle(0, 0xFFFFFF);
moveTo(0, 0);
lineTo(150, 0);
lineTo(150, 10);
lineTo(0, 10);
lineTo(0, 0);
}
with (progressBar_mc.bar_mc) {
beginFill(0xFF0000, 150);
moveTo(0, 0);
lineTo(150, 0);
lineTo(150, 10);
lineTo(0, 10);
lineTo(0, 0);
endFill();
_xscale = 0;
}
progressBar_mc._x = 438.9;
progressBar_mc._y = 585;
// load progress
var mclListener:Object = new Object();
mclListener.onLoadStart = function(target_mc:MovieClip) {
progressBar_mc.bar_mc._xscale = 0;
};
mclListener.onLoadProgress = function(target_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number) {
progressBar_mc.bar_mc._xscale = Math.round(bytesLoaded/bytesTotal*100);
};
mclListener.onLoadComplete = function(target_mc:MovieClip) {
progressBar_mc.removeMovieClip();
};
mclListener.onLoadInit = function(target_mc:MovieClip) {
target_mc._yscale = 100;
target_mc._xscale = 100;
};
Presentation Loader Scripts:
//Create a clip to hold presentation.
this.createEmptyMovieClip("loader_mc", 1);
var loader_mcl:MovieClipLoader = new MovieClipLoader();
loader_mcl.addListener(mclListener);
// Load the presentation into the clip.
loader_mcl.loadClip("./Presentation.swf", loader_mc);
I even tried putting "updateAfterEvent();" all over the places.... Nothing seems to work.
-_-" Anyone can help? Thanks in advance...
amervb
10-06-2006, 08:18 AM
the entire movie freezes until the whole movie is loaded
thats right cause the system in cd reading operation .
1- make a few empty frames in the main movie.
2- in the first empty frame use ifFrameLoaded operation and if it's loaded goto last empty frame.
3- in the last empty frame stop the movie for some seconds.
4- then goto main frame that u load the files from.
dont forget to put not animated(loading....) text in the first frame.
best way to load the files is to put the files in xml then collate between xml data and loaded file(s).
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.