A Flash Developer Resource Site














Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Featured Flash FLA
Gallery Downloads 11336 Flash Movies | 2 New Flash Movies Added
What's New | Top 100

Featured FLA

» Author: Surjit Dhami
» Title: Book
» Description: Book
» More by Surjit Dhami


Random FLAs | Add Flash Movie
Featured Flash Site
Gallery Downloads 5848 Flash Sites | 0 New Flash Links
What's New | Top 100 Flash Site

Featured Site

» Posted in the Flash Kit Links section
» Title: All-American Rejects
» Description: Get to know this great band by exploring their "practice room".


Random Links | Add your own Flash Related Links
Flash Tutorials 1277 Tutorials 7 New Tutorials Added!
What's New | Top100

» Create xml slideshow with free template
» How to Insert a Multilingual Subtitle Into Your Flash Video Studio
» How to Create Cool Halloween Slideshow
» Debugging flash using the Firebug console
» Create Flash Slideshow on Blogger
» FLASH TRICKS IN WEB ADVERTISING: FLASH BANNERS
» HTML Photo Gallery Tutorial
» Create your first flash site – PART 1
» How to Make a Flash Photo Gallery
» Unknown Tag: Title10
Random Tutorial | Add Site

Sr Instructional Designer D2L-Moodle,Clearance
WSI Nationwide, Inc.
US-NJ-Fort Monmouth

Justtechjobs.com Post A Job | Post A Resume


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Categories Flash 5.0 ActionScript Special-Effect (Optic Infusion Slideshow)
Author: Paul Price | Website: http://www.chapterzero.org |

 
Page 2
«prev 1 2 3 next»

The main idea behind the effect

An MC with a picture per frame is created. This clip is placed into another clip that has a rectangular mask on it. The masked MC is duplicated on the stage. The duplicated masked MC has functions on it that manipulate its scale and position during the pic-clip's transition from picture to picture. The buttons on the stage tell a variable on the main timeline to tell the picture MC to move forward or backward, producing a slideshow-like presentation. I have included a show border button for teaching purposes because it is difficult to visualize the position and scale of the masked MC without it. The border is NOT a part of the effect. Unfortunately, it causes a minor performance hit because Flash wants to alias the lines. This is why the pictures in picture MC should be rasterized graphics, NOT Flash vector graphics. Flash will automatically try to alias vectors causing the movie to run slowly.

The MC setup

Pic Clip

Make an MC called "PIC CLIP" (F8 is the shortcut to insert a symbol). Import your pictures into the PIC CLIP. If you have named them in sequence Flash will ask if you want to import them all. If this happens, click yes. Flash will place the pictures in your MC. All you have to do is center-align them and place them on individual frames. If you didn't name your pictures sequentially, then create several blank keyframes by selecting some frames, then going to Modify>Frames>Convert to blank keyframes. Now drag in the pictures for your slideshow. Make sure that the largest picture of your slideshow is on the first the frame. Use the Align tool to center-align each picture to the stage. Delete any extra blank keyframes by selecting them and then hitting Ctrl+Alt+x. Regardless of how you got your pictures into Flash, you must now add an "actions" layer to your PIC CLIP. On the first frame of this "actions" layer place a stop() action. Drag this layer above the pic layer for convenience. To recap, you should have two layers for your PIC CLIP: the first has your stop action, the second has your center-aligned pictures with one picture per frame.

Masked Pics Clip

Go back to the main timeline. Make an MC called "MASKED PICS" (F8). Add three layers to this MASKED PICS MC. On the first layer place a stop() action. On the second layer use the rectangle tool to draw a rectangle. Delete the border of the rectangle by double clicking it and hitting delete or select no border before you draw the rectangle. Once the border is deleted, select the rectangle, bring up the INFO panel, set the rectangle's width to 105 and its height to 65. While you have the INFO panel up, set the rectangle's X: 50 and Y: 30. I will talk about why we chose these coordinates later. On the third layer drag an instance of your PIC CLIP. Now name this clip's instance "pictures". Use the Info Panel to set the PIC CLIP X:200 and Y:100. Once you've done that, make the second layer (the one with rectangle) a mask by right clicking or control clicking and selecting mask from the contextual menu. This should create a rectangular mask for the PIC CLIP. Your MASKED PICS MC is finished.

«prev 1 2 3 next»

» Level Intermediate

Added: : 2001-12-17
Rating: 8.20 Votes: 54
Hits: 5518
» Author
I am a subversive writer by profession/trade. My first book, The Real Work, is about street cons. I got interested in web design by accident. I just wanted to learn how to make a site to promote my book, but I ended up learning (D)HTML, JavaScript, and Flash 5.0 ActionScript by accident.
» Download
Download the files used in this tutorial.
Download (720 kb)
Get conversion and unzipping tools for PC and Mac here!

» Forums
More help? Search our boards for quick answers!

Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments
 
   
 

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs