| Downloaded from www.biorust.com on Sat Nov 21, 2009 21:39:39 |
![]() | |
| A Simple Flash Gallery Tutorial Author - Airguitar (http://forums.biorust.com/member.php?userid=26331) |
Flash has many uses, but perhaps its most common application over the years has been for interfaces in websites, galleries, and web comics. This tutorial describes how to make a basic gallery, yet
the principal behind it is very useful for many other things. What
you will learn to do in this tutorial is make an action on one symbol that
affects the appearance of another. You will find this very useful
when creating websites, and when you need to have a navigation element affecting
other content. Here's what you'll be
creating:
Step 4: Give your movie clip the instance name: viewer. This is very important, as we will be using actionscript to refer to this symbol later by name.
Step 5: Double click your Movie Clip to edit it. Create as many new keyframes as you need and place all
your into separate keyframes, and then drag your images from the library
and place one on each keyframe, but now in the first keyframe - this should remain blank! On your first frame place the following scripting:
Do this by selecting the frame in the timeline, opening the action script panel and typing stop(); It is only really necessary to do this on the first frame. Step 6: Click Scene 1 to get back to the main stage. Now, drag your images onto the stage and resize them - these will be your thumbnails. Once you've resized them all and placed them where you want, convert each one to a button (Highlight, hit F8, & select 'button') you can call these whatever you want. Step 7: OK, now comes the scripting, so pay attention! Select your first image (which should now be a button), and add the following action script to the button:
Where there is a pink
x replace it with the frame number of
the movie clip (instance name: viewer)
that the corresponding larger image is on. Step 8: Repeat this process for the rest of your thumbnails. Then File > Export Movie and you should have a nice functioning gallery and some useful knowledge of Flash! If you have any trouble, you can download the source file here.
This basically just makes the images show when you roll over them and when you roll off the image changes back to the first frame, which should be your "Please Select an Image" screen.
|