View Full Version : Help with Creating Software Loading Screen
d0brin
02-17-2009, 06:27 PM
Hey all, i want to ask you can you help me with the creation of loading screen for my flash program that i made on flash. Actually i dont want a real load screen i just want to put a loading screen jusat for style. Anyway i want thsi screen to be created on flash and when you open it, i dont want teh Windows Frame to appear with all the View, Edit... btns and the exit btn just the content of the file. I think that this msut happen with Adobe Air and i have it but how to make it whit adobe air? pls help
A real loading screen is easy!
Flash actionscript can acess the total byte size of the .swf file and find that as a percentage so it can be expressed as byte size of swf of 100 heres an example:
onClipEvent(load) {
totalFileSize = _root.getBytesTotal();
this._xscale = 0;
}
onClipEvent(enterFrame) {
bytesLoaded = _root.getBytesLoaded();
amountLoaded = bytesLoaded/totalFileSize;
percentLoaded = int(100*amountLoaded);
this._xscale = percentLoaded;
_root.loadingMessage = percentLoaded + "%";
if (amountLoaded >= 1.0) {
_root.gotoAndStop("complete");
}
}
This produces a loader as a percentage and also increases the ._xscale of a bar to show the loading
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.