Sunday, July 26, 2009

Simple and Standard Flash Loader by Emil Jaranilla


Hello to everyone again, I am posting some basic and simple techniques. This time, the topic is about flash animation default loader using action script. I wrote this tutorial because some site or flash animation is using the loader intro as movie clip. In addition, this will not help the user to know how long they will wait to load that movie clip loader so it means that your site is not considered as usable and accessible. It is better to have some animations or notifications for the user to see while the browser is calculating the total bytes needed to load your flash webpage or animation project.


Here is your requirement.

. Basic Knowledge in Flash Action Script

Here are the steps.

1.) Create a text box. Make sure that it is set as dynamic text.

2.) Convert the dynamic text as movie clip named it as loader

3.) Double click the movie clip and set the font color, size, style and variable name on the dynamic text inside the movie clip.


Note: Do not convert the dynamic text inside the movie clip to any symbol like button, and graphic. On this tutorial, I named my dynamic text as “text”

4.) Back to main scene to start the coding process.


5.) Type these script




· The “total” is the your variable name for total bytes needed to load your movie.

This would be very easy for you because flash automatically suggest codes that you will need.

6.) Type this script next the script on step 5


· loaded is the variable name for bytes loaded while loading the movie

· percent is the variable name on the syntax that calculates the bytes loaded

· text is the variable name you entered on step 3.


· The if statement states that, if the total bytes loaded is equal to total bytes needed to load your movie, then _root gotoAndPlay(); will execute.

Note: You can put any frame number on the gotoAndPlay script it depends on your needs.



7.) Its output should be

Loading… 100%



8.) While putting this on your movie or flash website, you should put this on the last layer of your flash file and followed by blank key frame or just simply press F7.


This Tutorial was developed by Emil Jaranilla. You may reblog this tutorial on your own site but please include credits and always link back to this page. Thank you for reading this basic tutorial, more tutorials on different topics will be post soon.


“GTUG PH Site Banner Soon…”


Our group’s first meet up held on July 24, 2009 sponsored by the Orange and Bronze software lab. The day seems slothful and tired because before I get to Makati I have to survive the huge traffic at edsa, so I left Quezon City earlier than 5pm and expecting to arrive at Makati before 7pm. On my way to Makati, I was preparing myself (Mejo Kabado) for the reason that I’ll meet many developers there and I am going to present to Ma’am Aileen our GTUG PH logo that I created. Sir Calen and Ma’am Chel prepared a lot of food for 35 people who signed up for the meal but only few members attended the meet up I presume there be not as much of 20 GTUG members. I met Sir Jay, Godie, the speaker for the night, and the newly member Roy Javier who just signed up an hour before the meet up. Welcome Roy!


After dinner, Sir Godie Prepared for the presentation of the Google Application Engine Which is our topic for the night. He is really a good developer because he demonstrated how to create a simple facebook application using Eclipse I had difficulty understanding him maybe because of the microphones. Yeah it is hard to talk while typing your source code. “Sayang Hindi ko kasi nakunan ng picture when he was trying to speak on the microphone while typing using his two hands. Imagine? ” Anyway, the presentation took 2 hours and after the presentation, he shared some knowledge about the Google voice though I cannot share it here because it is exclusive for those who attended the meet up. Maybe for other members, who were not able to attend you can ask Sir Godie about it. The presentation ended past 10pm but it is ok, at least I learned something like creating simple facebook application. I expect that for the next meet up, all members are present. “Sayang naman kasi, GTUG PH pa naman ang may pinakamadaming members sa lahat ng GTUG worldwide. O diba!” As a part of GTUG PH, I am very thankful to Ma’am Chel and Sir Calen for preparing and sponsoring the GTUG PH meet up. Thank you guys!