It's a Tutorial for Anyone, and It's Easy to Do


I will tell you how to do a simple preloader. Yes, the famous "LOADING!" First, open the flash; second, follow the steps below:
- Create a static text (see the image) and write something like this: "Loading..."
- Click on the first frame (see the image), press F9 or click in ACTIONS and put the following code (THE CODE: Here we get the size of your project and how much is loaded, and if the loaded is equal to the total, go to the next scene.):

Loaded = _root.getBytesLoaded();
Total = _root.getBytesTotal();
if (Loaded = Total) {
nextScene();
} -
We need to make this code verify every time how much is loaded, so click with the right button in the second frame, and click in "Insert Keyframe."
-
With the second frame selected (one click in it), press F9 again (or click in ACTIONS) and put the following code (THE CODE: simple...will go to frame 1 when reach the 2):
gotoAndPlay(1);
-
OK, now to test if it's working, create a next scene (see image), put something big, like music...how? See the next steps.
-
One click in the first frame, and press F9 (ACTIONS). Put this code:
stop();
-
Click in File/Import and import a music choice.
-
One click in first frame, on "sound." Select your music (image)
-
Press CTRL+ENTER for test, but to see the "loading," click in VIEW/DOWLOAD SETTINGS (see image) and select one:
-
Press CTRL+ENTER again and see the loading.
OK, wait and see more tutorials by me!
- Login or register to post comments
Comments
Well that was a good tutorial for making flash loader, but it is bit difficult explained, and I don't think everyone can understand it if they are beginners to flash. Anyway a good tutorial, thanks for sharing.

Delicious
Digg
Google
Yahoo