Flashvault.net

Symple Gallery

12.9.2006, 13:53    Total views: 44430

This tutorial will show you how to create a simple flash gallery using the Action Script and Loader.

Step 1


First, you'll need to find somewhere a five picture equal dimension. After that set every picture in photoshop or some other graphic program to be 200x150 px, and after that 50x40 px. If you have a problem with picture, just download my picture. Note! Your picture must be saved in the same folder with fla. Just one thing! You have to know what extension is your pictures (.gif, .jpg......).

Step 2

Create a new flash document, press Ctrl+J (Document Properties) and set Width to 320 and Height to 220px.

Step 3

Then, click on Window > Components (Ctrl+F7), to open the Components Window.

Step 4

From Components Window, choose Loader, and using drag and drop technique move it on the stage. Look at the picture below!





Step 5

While your "Loader" is still selected, open tha Align Panel (Ctrl+K) and then click on Align to stage icon, after that on Align horizontal center and Align vertical center icon, to precisely center your "Loader" with background.

Step 6

After that, open the Properties Panel (Ctrl+F3), and under type loader.



Step 7

Choose File > Import > Import to Library, and Import first the large pictures (200x150 px), and after that small pictures (50x40 px). Look at the picture below!



Step 8

Using drag and drop technique, move from Library on the stage all small pictures. Look at the picture below!



Step 9

Select the first picture and press F8 on the keyboard (Convert to Symbol) to convert it into a Button.

Step 10

While your new made Button is sitll selected, open the Action Script Panel (F9) and write this script:

on (release) {
loader.contentPath = "img1.gif";
}

We're done for the first button! Repeat steps 8 and 9 for every other pictures. Only difference in Action Script is that you must instead of img1.gif  type img2.gif, img3.gif......

on (release) {
loader.contentPath = "img2.gif";
}

on (release) {
loader.contentPath = "img3.gif";
}.........

Enjoy!

Have questions about this tutorial?
Visit our friendly Community Forums!
Digg it! Add this tutorial to del.icio.us! Furl it! Add this tutorial to reddit! Spurl it! Add this tutorial to technorati!

Forum - Newest Discussions

Convert FLV to iPod MP4 Video
Last post by: linddy
Date: 04.12.2008 10:40:59

How do I combine images with text simultanuelsy?
Last post by: speedyj
Date: 03.12.2008 23:10:49

Convert AVI Video to Flash
Last post by: linddy
Date: 29.11.2008 04:40:55

photogallery
Last post by: trnghosn
Date: 26.11.2008 16:22:19

For Sale Brand NewHTC Touch HD $380Samsung i900 Om
Last post by: so100
Date: 25.11.2008 13:01:33

For Sale Brand NewHTC Touch HD $380Samsung i900 Om
Last post by: so100
Date: 25.11.2008 13:00:48

Waiting for your hour of triumph? It is near!
Last post by: VitaMary
Date: 21.11.2008 18:46:41

Yeow dogs!
Last post by: deco11
Date: 21.11.2008 01:15:49

Show your girlfriend what a real sex is!
Last post by: VitaMary
Date: 20.11.2008 22:00:13

Related links