Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Requirements:<br />
Apply a Kuler color scheme to your movie/project<br />
1<br />
GRC 288<br />
Assignment 4<br />
Provide example of broken apart text with the shapes of the letters altered, add a<br />
shape morph effect. Get creative and add at least 10 dif keyframes.<br />
Create an example of syncing audio (voice over). Sync a sound clip which has<br />
some type of speaking or voiceover to some animation that relates to the words in<br />
the sound clip. Sound must be imported into flash, set sync to stream. Voiceover<br />
sample audio file will be available in lab.<br />
Provide an example of Loader class<br />
Add an example of Perspective and provide an example of the 3d translation tool.<br />
Create a graphic showing a perspective in flash or import an image that shows a<br />
perspective (illusion of 3d, image should have a vanishing point). Add a second<br />
image that moves along the perspective accordingly (it matches the perspective).<br />
Add a shadow filter to image if appropriate.<br />
Add 3 examples of sounds from the sounds library<br />
(Window > Common Libraries > Sounds)<br />
Create an example of movable MC using start drag and stop drag<br />
Provide 4 dif videos, use the component inspector all same size like 320x240<br />
Provide an example of the Deco tool, provide examples for each of the 3 Drawing<br />
Effects available via the Properties Inspector<br />
Make a Flash movie with a transparent background<br />
Add some type of background image to the published html page<br />
Once you have finished your Assignment, save as<br />
firstletterofyourfirstname_lastname_<strong>A4</strong> and place in a <strong>A4</strong> folder, etc<br />
Extra Credit: Create an example of a Flash form (form does not have to submit<br />
data to an email or webserver but could have a submit button)
How to create Assignment 4<br />
Step 1 - Start a new project and Import files<br />
Import nec. assets<br />
File>Import>Import to library<br />
1 voice over audio clip (audio clip with speaking/talking)<br />
Don’t import the following, instead place in the same folder as this assignment<br />
4 video files, .flv or f4v<br />
Step 2 – Apply a “Kuler” color scheme to your movie/project<br />
Kuler is now integrated into Flash CS4. Kuler is a web-based color mixing application<br />
from Adobe.<br />
Window>Extensions>Kuler<br />
Add to swatches panel and then apply colors throughout your project<br />
Window>Swatches opens the swatches panel<br />
Add a color scheme throughout your movie, use those set of colors in your design<br />
throughout the movie.<br />
Step 3 – Create an example of broken apart text alter shapes of the letters<br />
Create a new movieclip and name styled_text<br />
Select the type tool and within the property inspector set font size to extra large for<br />
example 125 and pick a more blockier font<br />
Type some text on stage<br />
Break apart text twice, hit Control-B twice in order to break text apart into shapes<br />
Add a keyframe f6<br />
Move playhead to frame 2<br />
Using the subselection tool (press a) and select text which is now a shape<br />
Modify text shape by moving anchor points of shapes, create an unusual looking text<br />
Shape tween for a morph effect, add frames using f5 so morphing is viewable<br />
Get creative and add at least 10 dif keyframes.<br />
Add example to main movie timeline<br />
2
Extra credit, add examples of bones tool to your shape.<br />
Step 4 - Syncing audio to a voice over<br />
Syncing a sound clip requires an audio clip with some type of speaking or voiceover<br />
which will be matched to some animation that relates to the words in the sound clip. You<br />
will need to find a sound clip which has an example of a voice over, a voice over has<br />
audio with talking words or a voice speaking in the audio clip. You can alternatively<br />
create your own voiceover using the usb mic available from the Instructor.<br />
Navigate to google.com and search for voiceover.aif or voiceover.wav<br />
Or navigate use the sample file available in lab.<br />
If you use the above example, shorten the length of the file using audacity, it is very<br />
long, large file. We only need about 10 seconds of a talking audio file.<br />
If you haven’t already done so import audio clip into the library<br />
Create a new movieclip and put this example inside the movieclip<br />
Name layer audio, and drag sound clip to layer<br />
Click anywhere on sound waveform that is showing on the sound layer and within the<br />
property inspector set sound sync option to Stream<br />
Expand length of sound clip by adding frames (f5)<br />
Edit sound clip by clicking on edit within the property inspector, sound clip should<br />
play a short sentence or several words at least<br />
Add a new layer and name this layer whatever the first word of your sentence is<br />
Using the Text tool type the first word of your sentence<br />
Select the word and convert to symbol (f8)<br />
Name your movie clip symbol<br />
Select the key frame and use the properties inspector to set the color alpha 0% to<br />
make word transparent<br />
Position word slightly offstage<br />
Try adding a cool shadow or glow filter to the movie clip<br />
Determine what frame the word appears in the audio clip and add a second keyframe<br />
(f6)<br />
In order to determine the frame, scrub playhead, audio sync must be set to stream<br />
3
Select the second key frame and use the properties inspector to set the color alpha<br />
100% to make transparent position word onto the stage so it will be visible<br />
Repeat the above steps for each word, create a new layer, name layer, type the next<br />
word, and convert word into a movie clip symbol<br />
Classic tween all layers<br />
On property inspector set Ease to 100 out (tweening slows at end)<br />
Add easing to all of the tweens<br />
Add blur filter effect for added realism, add blur only while text is moving<br />
Control>Test Scene<br />
Add example to main movie timeline<br />
Step 5 – Loader class<br />
A .swf has the ability to load other swf files into itself. It is useful for separating a large<br />
project into smaller swf’s or simply loading any swf into a flash movie. Process was<br />
referred to as LoadMovie in Actionscript 2.0. In Actionscript 3.0 we now use the Loader<br />
class.<br />
Best to put this example inside a Movieclip symbol.<br />
Click on the frame where you want to load a new swf movie to appear, add a blank<br />
keyframe f7<br />
Within the Actions panel copy and paste the following:<br />
var myLoader:Loader = new Loader(); addChild(myLoader); var<br />
url:URLRequest = new<br />
URLRequest("http://media.ebaumsworld.com/2006/06/burgerking.<br />
swf"); myLoader.load(url);<br />
stop();<br />
URL shown above represents the external url file we want to load .<br />
URL path can be either relative or absolute<br />
A relative file like main.swf means we must include the swf file within the same<br />
folder as the main project file.<br />
• Control>Test Movie<br />
4
You will need to create a button to unload the swf since it will continue playing once<br />
loaded<br />
Use premade buttons from the button library Window>Common Libraries>Buttons<br />
Add a button instance, give an instance name, and add the following script to frame<br />
where button first appears.<br />
You can add the following script to the same location as the loader script<br />
unloading_btn.addEventListener(MouseEvent.CLICK,<br />
unloading_function);<br />
function unloading_function(e:MouseEvent):void {<br />
myLoader.unload();<br />
SoundMixer.stopAll();<br />
gotoAndStop(1);<br />
}<br />
Modify unloading_btn to match the button instance name you used<br />
Modify gotoAndStop(1); to go to the desired frame once the unload button is pressed<br />
Add text above button, turn off please<br />
Control>Test Movie<br />
Step 6 - Perspective example<br />
Create an example of perspective in flash. Import an image that shows a perspective<br />
(illusion of 3d, depth and a vanishing point). Add a second image that moves along the<br />
perspective into its vanishing point. A perspective by definition is the way in which<br />
objects appear to the eye based on their spatial attributes, or their dimensions and the<br />
position of the eye relative to the objects. As objects become more distant, they begin to<br />
appear smaller. This phenomenon is caused by perspective. For more info about the<br />
definition of perspective: http://en.wikipedia.org/wiki/Perspective_%28visual%29<br />
• Search for an image example of a perspective<br />
• Go to images.google.com and do an image search for perspective<br />
• Below is a jpg image of a perspective.<br />
5
• Download image file to local computer (cntrl-click)<br />
• Within flash click File>Import>Import to Library<br />
• Select the image and drag to a new layer<br />
• Import a second image that will move along the perspective, the second image needs<br />
to be converted into a movieclip<br />
• For example, in the above picture you might find a train or a car to move along the<br />
tracks<br />
• You will need to either draw the train in flash or import an image<br />
• If you find a image make sure to remove the background so you have only the train<br />
and no background around the train<br />
• You will need to convert image into a movieclip f8<br />
• Optional add a shadow filter, select movieclip on stage, on the property inspector,<br />
select the filter tab and click on the Add Filter button and choose drop shadow from<br />
the drop down list. Adjust settings as desired, for example blur x, strength, and angle.<br />
• Use the 3d translation tool in order to tween along the z-axis<br />
• Before using the tool you will need to add a motion tween to the layer<br />
• After adding the tween select frame where you want the change to occur then select<br />
the 3d translation tool and drag the z-axis<br />
• Adjust as desired to make object appear it is moving along the perspective towards<br />
the vanishing point<br />
6
Step 7 – Add several audio examples from sounds library<br />
Flash includes a Sounds library containing many useful sounds that can be used for<br />
effects. To open the Sounds library, choose Window > Common Libraries > Sounds.<br />
Create a new layer name sounds<br />
Select the desired frame where you want audio to appear and add a blank keyframe f7<br />
Drag desired sound from the Sounds library to the stage.<br />
Set sync to stream (recommended).<br />
Repeat steps adding two more new sounds to different areas<br />
Step 8 - Create an example of movable MC using start drag and stop drag<br />
• MUST put this example inside a movieclip symbol!!!<br />
• Select frame where you want example to appear<br />
• Create a new layer and name movable_MC<br />
• Create a circle or similar shape<br />
• Convert circle to a movieclip symbol (f8)<br />
• Select movieclip and give an instance name circle<br />
• Select the Actions layer, add a blank keyframe where movieclip first appears<br />
• Copy and paste the following script into the Actions layer, make sure script is in the<br />
same frame where movieclip first appears<br />
circle.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown)<br />
function mouseDown(event:MouseEvent):void {<br />
circle.startDrag();<br />
}<br />
circle.addEventListener(MouseEvent.MOUSE_UP, mouseReleased);<br />
function mouseReleased(event:MouseEvent):void {<br />
circle.stopDrag();<br />
}<br />
stop();<br />
• Stop action was added in order to keep playhead on the particular frame where<br />
movieclip appears<br />
• Control>Test Movie<br />
7
• Click and hold down the mouse button and drag the circle to reveal the background,<br />
releasing mouse button stops dragging of mask circle<br />
Step 9 - Create a Video jukebox with controls<br />
Create a video jukebox, a video area within your project with options to play four<br />
different videos, make all videos the same dimension 320x240. Flash uses Skins to<br />
provide built-in play controls. You will first need to create four flv/f4v/h264 video files<br />
using Adobe media encoder batch program. Make videos all the same dimensions,<br />
320x240 and place in the same folder as the flash project.<br />
You will want to organize our video jukebox by first creating a movieclip to contain<br />
all of our videos<br />
Create a new movieclip name VideoJukebox<br />
Select blank layer, name video1<br />
Click on frame 2 and insert a blank keyframe f7<br />
Open Window>Components<br />
Expand Video and select FLVPlayback (double+click adds to stage)<br />
Select video player on stage and within the top right of the properties inspector select<br />
the Component Inspector panel icon<br />
On the Parameters tab find Source and click on the magnifying glass and select the<br />
first flv file<br />
Adjust other settings if desired<br />
Control>Test Scene<br />
Note our first video should be in frame 2 not frame 1, our second video will be in<br />
frame 3 only.<br />
Select video clip on stage and reposition if desired.<br />
Create a new layer, required! Name layer video2.<br />
Click on frame 3 of this layer and insert a blank keyframe.<br />
Repeat same steps for the second video putting on a new layer.<br />
Select FLVPlayback (double+click adds to stage)<br />
Select video player and using the Component Inspector find Source and click on the<br />
magnifying glass and select the second flv file<br />
8
Create a new layer required! Name layer video2.<br />
Click on frame 4 and insert a blank keyframe.<br />
Repeat the steps for the third video.<br />
Create a new layer, required click on frame 5 and insert a blank keyframe and repeat<br />
the steps for the fourth video<br />
Add a new layer and call labels, add labels to frame 2, 3, 4, 5<br />
Name labels video 1, video2, video3, etc.<br />
Labels will be referenced by Actionscript<br />
Add a new layer, name buttons, add 4 buttons for each video, must begin on frame 1<br />
Use premade buttons from the button library Window>Common Libraries>Buttons<br />
If necessary add text for buttons in a new layer above your buttons<br />
Give each button a unique instance name like a, b, c, d<br />
Each button will represent each of the videos<br />
Buttons should be available throughout the video area<br />
Add an Actions layer, select frame 1 of the actions layer<br />
Copy and paste the script on the next page into frame 1<br />
9
stop();<br />
//Video 1 button, modify instance name, function name, and label<br />
btn_instancename.addEventListener(MouseEvent.CLICK,<br />
functionnamegoeshere);<br />
function functionnamegoeshere(e:MouseEvent):void {<br />
gotoAndStop("the label name");<br />
}<br />
//Video 2 button, modify instance name, function name, and label<br />
btn_instancename.addEventListener(MouseEvent.CLICK,<br />
functionnamegoeshere2);<br />
function functionnamegoeshere2(e:MouseEvent):void {<br />
gotoAndStop("the label name");<br />
}<br />
//Video 3 button, modify instance name, function name, and label<br />
btn_instancename.addEventListener(MouseEvent.CLICK,<br />
functionnamegoeshere3);<br />
function functionnamegoeshere3(e:MouseEvent):void {<br />
gotoAndStop("the label name");<br />
}<br />
//Video 4 button, modify instance name, function name, and label<br />
btn_instancename.addEventListener(MouseEvent.CLICK,<br />
functionnamegoeshere4);<br />
function functionnamegoeshere4(e:MouseEvent):void {<br />
gotoAndStop("the label name");<br />
}<br />
Modify btn_instancename, functionnamegoeshere, and the label name for each of the<br />
scripts above in order to match the values for your 4 video buttons<br />
All four video buttons should be available throughout your video jukebox<br />
Control>Test Scene<br />
Modify as desired, try adding an interface around video and buttons, for example<br />
draw a rounded corners box with a shadow filter.<br />
10
Step 10 – Provide an example of the Deco tool<br />
Use the Deco tool to provide examples for each of the 3 Drawing Effects available via the<br />
Properties Inspector. View the following tutorials for more help:<br />
http://www.adobe.com/go/lrvid4060_fl<br />
http://tv.adobe.com/#vi+f1552v1001<br />
htpp://ww.adobe.com/devnet/flash/articles/deco_intro.html.<br />
The Decorative drawing tools let you turn graphic shapes into complex, geometric<br />
patterns. The Decorative drawing tools use calculations applied to a movie clip or graphic<br />
symbol in the library. In this way, you can create a complex pattern using any graphic<br />
shape or object. You can use the Spray Brush or Fill tool to apply the patterns that you<br />
create. You can create kaleidoscopic effects using single or multiple symbols with the<br />
Deco Symmetry tool. The following instructions came from flash help press f1.<br />
Apply patterns with the Spray Brush tool<br />
The Spray Brush acts like a particle sprayer, letting you “brush” a pattern of shapes onto<br />
the Stage at one time. By default, the Spray Brush emits a spray of dot particles using the<br />
currently selected fill color. However, you can use the Spray Brush tool to apply a movie<br />
clip or graphic symbol as a pattern.<br />
Select the Spray Brush tool.<br />
In the Spray Brush tool Property inspector, select a fill color for the default spray<br />
of dots. Or, click Edit to select a custom symbol from the library.<br />
You can use any movie clip or graphic symbol in the library as a “particle.” These<br />
symbol-based particles give you a great deal of creative control over artwork you<br />
create in Flash.<br />
Click or drag on the Stage where you want the pattern to appear.<br />
Spray Brush tool options<br />
The Spray Brush tool options appear in the Property inspector when you<br />
select the Spray Brush from the Tools panel.<br />
11
Edit, opens the Select Symbol dialog box, from which you select a movie<br />
clip or graphic symbol to use as a spray brush particle. When a symbol in<br />
the library is selected, its name appears next to the edit button.<br />
Color selector, select a fill color for the default particle spray. The color<br />
selector is disabled when you use a symbol in the library as a spray<br />
particle.<br />
Scale width, scale the width of a symbol used as a spray particle. For<br />
example, a value of 10% makes the symbol 10% narrower. A value of<br />
200% makes the symbol 200% wider.<br />
Scale height, scales the height of a symbol used as a spray particle. For<br />
example, a value of 10% makes the symbol 10% shorter. A value of 200%<br />
makes the symbol 200% taller.<br />
Random scaling, specifies that each symbol-based spray particle is placed<br />
on Stage at a random scale, altering the size of each particle. This option is<br />
disabled when using the default spray of dots.<br />
Rotate symbol, rotates the symbol-based spray particle around a center<br />
point.<br />
Random rotation, specifies that each symbol-based spray particle is<br />
placed on Stage at a random degree of rotation. This option is disabled<br />
when you use the default spray of dots.<br />
The Deco Drawing tool<br />
Use the Deco Drawing tool to apply an effect to a selected object on the Stage. Choose<br />
the effects from the Property inspector after you select the Deco Drawing tool.<br />
Apply the Symmetry effect<br />
Use the Symmetry effect to arrange symbols symmetrically around a central point. When<br />
you draw the symbols on the Stage, a set of handles appears. Use the handles to control<br />
the symmetry by increasing the number of symbols, adding symmetries, or editing and<br />
modifying the effect. Use the Symmetry effect to create circular user interface elements<br />
12
(such as an analog clock face or dial gauge) and swirl patterns. The default symbol for<br />
the Symmetry effect is a black rectangle shape with no stroke that is 25 x 25 pixels.<br />
Select the Deco Drawing tool<br />
Select Symmetry Brush from the Drawing Effect menu in the Property inspector.<br />
In the Deco Drawing tool Property inspector, select a fill color to use for the<br />
default rectangle shape. Or, click Edit to select a custom symbol from the library.<br />
You can use any movie clip or graphic symbol in the library with the Symmetry<br />
Brush effect. These symbol-based particles give you a great deal of creative<br />
control over artwork you create in Flash.<br />
The Symmetry Brush advanced options<br />
The Symmetry Brush advanced options appear in the Property inspector<br />
when you select Symmetry Brush from the Drawing Effect pop-up menu<br />
in the Property inspector.<br />
Rotate Around Point, rotates the shapes in the symmetry around a fixed<br />
point that you designate. The default reference point is the center point of<br />
the symmetry. To rotate the object around its center point, drag in a<br />
circular motion.<br />
Reflect Across Line, flips the shapes an equal distance apart across an<br />
invisible line that you specify.<br />
Reflect Around Point, places two shapes an equal distance apart around a<br />
fixed point that you specify.<br />
Grid Translation<br />
Creates a grid using the shapes in the Symmetry effect you are drawing. Each click of the<br />
Deco Drawing tool on the Stage creates a grid of shapes. Adjust the height and width of<br />
the shapes using the x and y coordinates defined by the Symmetry Brush handles.<br />
13
Test Collisions<br />
Prevents shapes in the Symmetry effect you are drawing from colliding with one another,<br />
regardless of how you increase the number of instances within the Symmetry effect.<br />
Deselect this option to overlap the shapes in the Symmetry effect.<br />
Click the Stage where you want the Symmetry Brush artwork to appear.<br />
Use the Symmetry Brush handles to adjust the size of the symmetry and the<br />
number of symbol instances.<br />
Apply the Grid Fill effect<br />
The Grid Fill effect lets you fill the Stage, a symbol, or closed region with a symbol from<br />
the library. After the Grid Fill is drawn to the Stage, if the filled symbol is moved or<br />
resized, the Grid Fill will move or resize accordingly. Use the Grid Fill effect to create a<br />
checkerboard, a tiled background, or area or shape with a custom pattern. The default<br />
symbol for the Symmetry effect is a black rectangle shape with no stroke that is 25 x 25<br />
pixels.<br />
Select the Deco Drawing tool, and select Grid Fill from the Drawing Effect menu<br />
in the Property inspector.<br />
In the Deco Drawing tool Property inspector, select a fill color for the default<br />
rectangle shape. Or click Edit to select a custom symbol from the library.<br />
You can use any movie clip or graphic symbol in the library as a symbol with the<br />
Grid Fill effect.<br />
You can specify the horizontal and vertical spacing and the scale of the fill shape.<br />
Once the Grid Fill effect is applied, you cannot change the advanced options in<br />
the Property inspector afterwards to alter the fill pattern.<br />
Click the Stage or within the shape or symbol where you want the Grid Fill<br />
pattern to appear.<br />
14
Grid Fill effect advanced options<br />
Horizontal spacing, specifies the horizontal distance in pixels between<br />
shapes used in the Grid Fill.<br />
Vertical spacing, specifies the vertical distance in pixels between shapes<br />
used in the Grid Fill.<br />
Pattern scale, enlarges or shrinks an object horizontally (along the x axis),<br />
and vertically (along the y axis).<br />
Apply the Vine Fill effect<br />
The Vine Fill effect lets you fill the Stage, a symbol, or closed region with a vine pattern.<br />
You can substitute your own artwork for the leaves and flowers by selecting symbols<br />
from the library. The resulting pattern is contained in a movie clip that itself contains the<br />
symbols that make up the pattern.<br />
Select the Deco Drawing tool,<br />
Select Vine Fill from the Drawing Effect menu in the Property inspector.<br />
In the Deco Drawing tool Property inspector, select a fill color for the default<br />
flower and leaf shapes. Or, click Edit to select a custom symbol from the library<br />
to replace one or both of the default flower and leaf symbols.<br />
You can use any movie clip or graphic symbol in the library to replace the default<br />
flower and leaf symbols with the Vine Fill effect.<br />
You can specify the horizontal and vertical spacing and the scale of the fill shape.<br />
After you apply the Vine Fill effect, you cannot change the advanced options in<br />
the Property inspector afterward to alter the fill pattern.<br />
Click the Stage or within the shape or symbol where you want the Grid Fill<br />
pattern to appear.<br />
Grid Fill effect advanced options<br />
Branch angleSpecifies the angle of the branch pattern.<br />
Branch colorSpecifies the color to use for the branch.<br />
Pattern scaleScaling an object enlarges or reduces it both horizontally<br />
(along the x axis), and vertically (along the y axis).<br />
15
Segment lengthSpecifies the length of the segments between leaf and<br />
flower nodes.<br />
Animate patternSpecifies that each iteration of the effect is drawn to a new<br />
frame in the timeline. This option creates a frame-by-frame animated<br />
sequence of the flower pattern as it's drawn.<br />
Frame stepSpecifies how many frames to span per second of the effect<br />
being drawn.<br />
Step 10 - Make a Flash movie with a transparent background<br />
• First save your movie File>Save<br />
• Adjust publish settings File>Publish settings and click on the HTML tab<br />
• Under the Window mode: select the Transparent Windowless option<br />
• Click on Publish and then OK<br />
Step 11- Add a background image to the published html page<br />
Next we will add a background to the published HTML file in order to see if flash movie<br />
is transparent<br />
• Find the published HTML file for your flash movie<br />
• Open with a text editor or Dreamweaver<br />
• Modify the first several lines of your HTML code, add internal css, must go inside the<br />
head tags<br />
<br />
<br />
<br />
• Replace bg_image.jpg (above) with the name of the background image you would<br />
like to use. Image will have to be added to the same folder/directory as your html file.<br />
• Save your HTML file and then double click on the file to open within a browser.<br />
16
Step 12 - Finish movie by adding any additional content to your areas<br />
Add content to each of your areas and test movie to make sure your project works as<br />
intended and that all Assignment requirements have been met.<br />
Deliverables for Assignment 4<br />
Once you have finished your Assignment make sure you have named in this format<br />
firstletterofyourfirstname_lastname_<strong>A4</strong> place in a folder with the same naming<br />
convention. Publish an html, swf, and remember to include the fla file<br />
17
Extra credit: Cut out a head or body in Photoshop and import and use in your movie,<br />
image must enlarge or shrink slowly<br />
First what we want to do is cut out an image in Photoshop and import that image into<br />
Flash. Basically in Photoshop we want to add cut out the background of an image using a<br />
technique called quick mask in Photoshop. We want to take an image of a person and cut<br />
out their body or head, export that image out of Photoshop and import that image into<br />
Flash. Once in Flash we will add the “ken burns” style effect to this image.<br />
Find and image that has a picture of a head or body that we can cut out in photoshop<br />
Go to images.google.com and type headshot.jpg<br />
Download an image<br />
Next, there are two options you can use to remove background<br />
Use Flash or Photoshop to remove bg, pick one<br />
Open image in flash, drag to stage, break image apart command+b and then use<br />
eraser to erase background<br />
Open within Photoshop<br />
Click on the edit in quick mask mode icon or press Q<br />
Select the brush tool and adjust size, opacity, and other settings, make sure brush<br />
color is set to black/white default<br />
Use brush to paint the areas you wish to make transparent on the image<br />
Quick mask mode paints area red that you want to become transparent, make sure all<br />
areas you want removed are painted with the brush and appear red<br />
Click on the edit in standard mode or press Q<br />
Click on Select>Inverse in order to select the desired masked area<br />
Click on Edit>Cut in order to remove the masked area we want to delete<br />
Click on Select>Inverse in order to select the new desired area<br />
Click on Edit>Copy in order to copy the desired area<br />
Click on File>New and create a new Photoshop document that has a transparent<br />
background, make sure documents dimensions are big enough for us to paste the<br />
copied image<br />
Within new document paste the copied image Edit>Paste<br />
18
Click on File>Save for web and export image<br />
Make sure you pick the png or gif option and make sure transparency is selected<br />
Import the png/gif image into flash, its background should be transparent<br />
Add image somewhere to your movie<br />
Add a second keyframe at about frame 60 and tween image<br />
Select the second keyframe and use the transform tool to make the image larger or<br />
smaller while holding down the shift key, shift key constrains the image so that the<br />
aspect ratio remains constant and doesn’t become distorted<br />
Add a background image behind cutout, tween background so that it either gets<br />
bigger or smaller at a much slower rate than the cutout. Add a blur filter for an<br />
enhanced look.<br />
Control>Test Movie<br />
Extra Credit: Flash forms<br />
Forms in Flash are similar to forms in HTML which allow users to interact and select<br />
information or fill out (forms) with their own information. Forms are most often used to<br />
have viewers fill out an online inquiry with their own answers or information such as in a<br />
survey or order form.<br />
The form we will create in this example will not have to submit data to an email or<br />
webserver but should have a submit button. Optional, when the user presses submit it<br />
takes them to a confirmation message or a message saying this feature is not currently<br />
activated.<br />
User Interface (UI) Components within Flash are a way to create form related elements<br />
Form related User Interface (UI) Components<br />
Button<br />
Button, can be clicked on and can also be programmed with a behavior or<br />
action to do something<br />
CheckBox<br />
Checkbox, can be selected or deselected (checked or unchecked)<br />
19
ComboBox<br />
Drop down menu, provides multiple choices, user selects one choice<br />
Label<br />
Label, similar to a text field but allows an instance name to be assigned<br />
List<br />
List, list of choices in a scrollable menu<br />
RadioButton<br />
Radio button, allows one to many choices to be listed but only one choice<br />
can be chosen for an assigned group<br />
TextArea<br />
Can be used to display text or for users to type in text<br />
TextInput<br />
Allows users to insert text such as a username and password<br />
Four basic steps to creating a functioning form in Flash<br />
1. Add component(s) to your project<br />
2. Configure the components (define/modify)<br />
3. Modify their appearance<br />
4. Write ActionScript to enable the components functionality<br />
(The last step will require advanced knowledge of ActionScript as well as an<br />
application server to submit the data to, for example when a user fills out the<br />
form and presses the submit button you may want the info to be submitted to<br />
another server, database, or email )<br />
Adding a Flash form (Extra Credit)<br />
Create a new scene or new area for our form<br />
Determine which form elements (components) you will be using or determine what<br />
questions or info you want users to provide through the form<br />
Create a new layer, name components<br />
Open the Components panel (cmd f7 mac or ctrl f7 pc) and expand the UI options by<br />
clicking on its +<br />
20
Drag 1x ComboBox, 1x List, 4x RadioButton, 1x TextArea, 1x Button onto the stage<br />
Use the Align panel to align (cmd k mac or ctrl k pc)<br />
Create a new layer, name text<br />
Select text tool, type directions or questions next to each form component<br />
Return to the components layer and select the ComboBox (allows you to list all<br />
options within a drop down box, allows a single selection to be picked)<br />
Within the Properties inspector select the Parameters tab<br />
Type an Instance name, quantity (type quantity under the word Component in the<br />
Instance name field)<br />
Double click right of labels<br />
Within the Values window, select + and then select the field under values and type<br />
the first value, select + , select field and type the second value, etc. In this example I<br />
am using quantity 1,2,3, etc.<br />
Repeat this step for each value you want to list<br />
Control>Test Movie<br />
Select the List box (allows you to list all options within a box, box can also be<br />
configured to allow multiple selections the default allows only one selection )<br />
Within the Properties inspector click on the Parameters tab<br />
Type an Instance name, product<br />
Double click right of labels<br />
With the Values window, select + , then select field and type first option name, for<br />
example product name, select +, select field and type second product name, for<br />
example coffee cup, pillow, etc<br />
Repeat this step for each selection option you want to list<br />
Control>Test Movie<br />
Select the first RadioButton (allows you to list several options with the viewer having<br />
the ability to choose one of the options)<br />
Within the Properties inspector (Parameters tab) type an Instance name, red<br />
Click to the right of groupName and type colorsGroup<br />
Click to the right of label, type red<br />
Select the next RadioButton<br />
21
Within the Properties inspector type an Instance name, black<br />
Click to the right of groupName and type colorsGroup<br />
Repeat this step for each of the two remaining color options you want to list<br />
Control>Test Movie<br />
Select the TextArea box (allows for text to be typed)<br />
Within the Properties inspector type an Instance name text<br />
Make sure wordWrap is set to true<br />
Select Button (on stage)<br />
Within Properties inspector, right of label, type Submit<br />
Remember previously we used the text tool on the text layer to type directions or<br />
questions next to each form component, modify as desired<br />
Control>Test Movie<br />
Note: When you test movie, each form component should work/ function (allow input<br />
or selection) except the submit button, submit button will not have any functionality<br />
(doesn’t submit anything when you click on).<br />
The submit button, in order to take the information that is typed by the viewer and<br />
then submit it, you will need to have some advanced ActionScript attached to the<br />
button. This would also require the use of an application server set up to accept our<br />
form information. These topics are beyond the scope of this assignment. The most<br />
important think to learn how to create a form and the various form components that<br />
are available. Check with your web host about using CGI or PHP scripts to submit<br />
form data.<br />
Extra Credit: Finding more components at Adobe Flash Exchange<br />
Components and extensions extend the capabilities of Flash using plug-ins which add<br />
additional features. Components are imported and managed using the Adobe Extension<br />
Manager built into Flash.<br />
Components and extensions are available for use within Flash by navigating and<br />
downloading via Adobe’s website:<br />
22
http://www.adobe.com/cfusion/exchange/index.cfm?l=3&loc=en_us&event=produc<br />
tHome&exc=2&Submit=Filter<br />
Installing a component or extension<br />
Go to Adobe’s site, search for extension, register or log in, save extension to your<br />
local computer<br />
Within Flash click on Help>Manage Extensions<br />
Within Adobe’s Extension Manager window click on File>Install Extension<br />
Locate file where it was saved locally and click on Install<br />
The component/extension should now be available through the components panel<br />
Drag component onto stage to desired location<br />
Within the Properties inspector, under Parameters modify component as desired<br />
Control>Test Movie<br />
23