 |
|
|
|
|
| Preloading the Website |
|
 |
 |
|
| Step 63. |
| This is the final part of this flash tutorial, where we'll be creating the preloader for the website. So, go back to root of the time, where the 'site' MC is, and move the frame that it's on to frame 2 (image b). |
 |
| a) |
|
b) |
 |
|
 |
|
| |
| Step 64. |
| Now make a text field on the 1st frame, with the text "loading", using the settings shown below, in the properties panel |
 |
|
|
| |
|
|
| Step 65. |
| Convert the text field (F8) to an MC called 'loader' |
 |
|
|
| |
| Step 66. |
| Double click on the 'loader' MC and create a 2nd text field on the right, with the text "99%". From the properties panel the text has been made "dynamic", and a Var (variable) has been given to it called "p". When the website is preloading, this variable will hold the percent value that's loaded so far, and it'll be displayed in the dynamic text field. |
 |
|
|
| |
| Step 67. |
| Go back to the root timeline. Now instead of placing the code on a frame on the timeline, place it on the loader MC, by clicking on it, opening up the Actions Panel, and then entering the code below. This piece of Actionscript will check to see how much of the website has loaded and display the percentage in the text, using the 'p' variable. Once the whole of it is loaded, the timeline will go to frame 2, and the site will be displayed |
 |
|
|
| |
| Step 68. |
| Now we need to make the movie stop while it loads so make anew layer called "script". Create a blank key frame on frame 2 of the script layer. |
 |
|
|
| |
| Step 69. |
| Click on frame 1 of the script layer and add a stop action, using the actions panel. |
 |
|
|
 |
| That brings us to the end of this flash site tutorial! |
Part:
1 |
2 |
3 |
4 |
5 |
6 |
7 | 8
|
|
|
|
|
|
|
 |