Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Pre Loader Tutorial For Flash, Made by: Jordain
jord2
post Jun 30 2006, 05:20 AM
Post #1


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 18
Joined: 28-June 06
Member No.: 14,177



Simple pre loader tutorial with play button by: Jordain Joyce

First of all open up flash then

Create 4 Layers and in order name them: Actions
Loader outline
Loader Bar
Content

Then create 3 frames for each layer.
Lets start in the actions layer, for the first frame make it blank and the second frame make it blank also. Press F9 to open the actions panel (make sure you are in the 2 frame of the actions layer) and put this in
CODE
myLoaded = Math.round(getBytesLoaded());
myTotal = Math.round(getBytesTotal());
myPercent = myLoaded/myTotal;
myBar._width = myPercent*170;
MyText = Math.round(myPercent*100)+"%";
if (myLoaded == myTotal) {
    gotoAndStop(3);
} else {
    gotoAndPlay(1);
}

Ok so now your done with the action layer now you move on to the Loader outline. Select the rectangle tool and create a box with a width of 170 and a height of 10. (to change the width and height just make any size box and then go to Properties and change it there). Ok so you have a rectangle with a fill inside the border so select the fill inside the border and right click it and cut it. Now you change in the loader bar layer and right click and select paste in place. Now select the fill and press F8 to make it a movie clip. Make sure when you are making it into a movie clip change the registration to the top left square!! Now once it is a movie clip go back to the previous screen with all the layers in it. So you are still in the loader bar layer so click on the rectangle just the filled one and go to properties and change its name myBar (you put the name in right beside where it has the swap button is.

For your loader outline and your loader bar on the third frame make it a blank keyrame.

Now to move on to your content layer, which is your play button. (I am only showing you how to make a play button, in another tutorial I will show you how to make a scene select button) Now make a rectangle or something that will be your button. Once you are done that click on it and press F8 and make it a button (you can make it a MC but for this tutorial I’ll keep it simple) Now once you finish making it a button (your registration is probably still in the top left I would suggest changing it back to the middle) you click on it once and press F9 to go into your action panel and copy and paste this in there

CODE
on (press) {
play();
}

For the frames for the content layer it doesn’t really matter if you leave it all with the button but if you want the button to only appear when it is done loading make the first two frames blank and the last frame you have your button in it. Here a picture to show you what all your layers and frames should look like.
IPB Image
Now to test this movie first create a new scene and import a large picture file. Now drag it on the screen. You do this so your pre loader has something to load. Now test your movie by pressing ctrl+enter twice. Remember twice so if you see your bar going across that means you got it. YAY!!!

If you have any questions just PM me.

Hope you found this tutorial handy this is my first tutorial I made =D

Remember NO stealing I spent time doing this and stealing isn’t cool >=(

Made by: Jordain Joyce
Go to the top of the page
 
+Quote Post
OpaQue
post Jun 30 2006, 07:17 AM
Post #2


Administrator
Group Icon

Group: Admin
Posts: 460
Joined: 26-August 04
Member No.: 1



Wow! Thanks for the Flash preloader tutorial :-) This is definately going to be handy smile.gif
Go to the top of the page
 
+Quote Post
jord2
post Jun 30 2006, 07:34 AM
Post #3


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 18
Joined: 28-June 06
Member No.: 14,177



Ya I am going to be making a couple more tutorials but they probably wont be as long as this one. Iam going to make a scene select button tutorial and how to make a good frame by frame movie. I would like to make a tutorial on how to make a basic game but I only know some gaming AS and the tutorial for it would be filled with mistakes :/

This post has been edited by jord2: Jun 30 2006, 07:39 AM
Go to the top of the page
 
+Quote Post
techocian
post Jun 30 2006, 03:56 PM
Post #4


'Prentice de-Zighner
Group Icon

Group: Members
Posts: 368
Joined: 23-January 05
From: USA
Member No.: 2,290



I'll try this out right now. I haven't always been very good with Macromedia Flash and making movies using that program. So i hope i can learn a little more through your tuts. biggrin.gif
Go to the top of the page
 
+Quote Post
VexD
post Dec 22 2006, 02:20 AM
Post #5


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 3
Joined: 22-December 06
Member No.: 18,628



Theres a preloader that you can just edit and use for urself hosted at newgrounds.com

http://www.newgrounds.com/flash/NewgroundsPreLoader.fla
Go to the top of the page
 
+Quote Post
iGuest
post Apr 23 2008, 09:18 PM
Post #6


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869



how many Loaders can be use on the same page / adding links to external text file
Pre Loader Tutorial For Flash

Well I guess is clear ,,,, I hope ,,,, I am a new user and trying to learn some flash ,,,,, need to know how many Loaders I can use on the same page and if is possible to add to an external text that is been loaded with variables links to the text.Text file
I

-reply by Nano
Go to the top of the page
 
+Quote Post
iGuest
post Aug 13 2008, 07:20 AM
Post #7


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869



Help needed to create a preloader
Pre Loader Tutorial For Flash

Hi,
Friend, I want to create a preloader which consist of 5 diamonds, as the percentage is loader the diamond should glow. I.E. If the percentage loaded is 20% then 1 diamond should glow. When the percentage loaded is 40% two diamond should glow. I think you got what I mean to create. Can you help me with it. I think masking is not the proper way, since I tried it. It doesn�t work good.Please can you help me?

-question by shyju
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Introduction To Mask Layers In Flash(0)
  2. Using Symbol Effects In Flash(0)
  3. Using Sprites In Flash(2)
  4. Matching Sound To Animations In Flash(2)
  5. Flash Webcam Room(8)
  6. A Button That Senses The Mouse(2)
  7. Vaile's Flash Mx 2004 Tutorial!(5)
  8. How To Make A Scene Select Button(0)
  9. How To Make A Simple Flash Button(1)


 



- Lo-Fi Version Time is now: 8th October 2008 - 12:13 AM