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

Difficulty: Easy
Cost: Free

I will tell you how to do a simple preloader. Yes, the famous "LOADING!" First, open the flash; second, follow the steps below:

  1. Create a static text (see the image) and write something like this: "Loading..."
  2. 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();
    }
  3. 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."

  4. 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);

  5. OK, now to test if it's working, create a next scene (see image), put something big, like music...how? See the next steps.

  6. One click in the first frame, and press F9 (ACTIONS). Put this code:

    stop();

  7. Click in File/Import and import a music choice.

  8. One click in first frame, on "sound." Select your music (image)

  9. Press CTRL+ENTER for test, but to see the "loading," click in VIEW/DOWLOAD SETTINGS (see image) and select one:

  10. Press CTRL+ENTER again and see the loading.

     

OK, wait and see more tutorials by me!

By vinimaz
Required Tools:
You will need the Flash program.
Average rating:

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.