- Flash Guide 2006
- Welcome to the New Flash Reference Guide
- Flash Design Guide
- Introduction To Flash
- Working with the Authoring Tool
- Working with Templates
- FreeHand for the Power User
- Creating Animation with Fireworks
- Creating Animation in Flash
- Animating Text
- Working With Layers and Keyframes
- Working With Tweens
- Quickly Add Keyframes to Tweens
- Using Animation Paths
- Using Flash's Onion Skinning Tools
- Publishing Your Animation
- Preloading for Non-Programmers
- Drawing in Flash
- Using the Library
- Organizing Animations With Storyboards
- Working With Masks
- Making 2D Look 3D
- Working With Text
- Working With Input Text Fields
- Working With Dynamic Text
- Working with Text: Advanced Text Treatment With CSS
- Working With Text: Embedding Fonts
- Flash Interactive Developer Guide
- What is an Interactive Developer?
- Creating Flash Projects
- Using Form Applications
- Working with Form Components
- Setting up a Movie for Design and Animation
- Setting up a Movie for Programming
- Working with Components
- ActionScript Fundamentals
- Intro to Working With Arrays
- Understanding The Three Types of Arrays
- Control Data Stored in Arrays
- The Eolas Solution
- Intro to Flash Player 9
- Working with Strings
- Creating ActionScript Transitions
- Working with Boolean Objects in ActionScript
- Optimizing Delivery
- Working with Numbers in ActionScript
- Working with the Number Class
- Flash Professional 9 Preview
- Adobe Takes ActionScript Open Source
- Flash Rich Media Guide
- Pros and Cons of Flash 8 Video
- Using SMIL in Flash Video 8
- Stream an MP3 Audio File to Your Flash Movie
- Flash 8
- Introduction to Flash 8
- Advanced Text Rendering
- Using BitmapData Class in Your ActionScript
- The CacheAsBitmap Property
- Bitmap Rendering Improvements and Blend Modes
- Using The ExternalInterface Class
- Using Filters
- Downloading and Uploading Files with ActionScript
- Runtime Support for GIF and PNG Files
- Garbage Collection in Flash 8
- Using Enhanced Gradients
- Using Scale 9
- Stroke Enhancements in Flash 8
- Video Support in Flash 8
- How to Create a Slideshow
- Creating Dynamic Text in Flash
- Flash 3-D–Taking Flash to the Third Dimension!
- Object Collision Detection with Flash
- Create a Quiz With The Flash Quiz Template
- Working with Flash
- Uses for Flash
- Beyond Flash
- Flash Reference Guide
- Informit Articles and Sample Chapters
- Books
- Online Resources
- Blogs and Discussion
- Tools and Downloads
- Summary
- Flash MX Interface
- Welcome to Flash: the Designers' and Developers' Tool
- Using the Stage
- Panels, Panels Everywhere
- Using the Tools Pane
- Using the Property Inspector
- Using the Timeline Panel
- Using the Library
- Adding Interaction through the Actions Panel
- Integrating with Studio MX
- Saving and Publishing Flash Movies
- Informit Articles and Sample Chapters
- Books
- Online Resources
- Summary
- Drawing in Flash
- Shape Tools
- Applying Color
- Informit Articles and Sample Chapters
- Tools and Downloads
- Summary
- Flash Bitmaps
- Importing Bitmaps
- Exporting Bitmap Images
- Converting Bitmap Images to Vector Illustrations
- Informit Articles and Sample Chapters
- Online Resources
- Tools and Downloads
- Summary
- Flash Text and Text Fields
- Text Types
- Input Text
- Online Resources
- Tools and Downloads
- Summary
- Using the Library
- Library Organization
- Creating Instances
- Informit Articles and Sample Chapters
- Books
- Online Resources
- Summary
- Flash Animation
- Controlling Time
- Keyframe Animation
- Tweening
- Text Animation with Flash
- Informit Articles and Sample Chapters
- Books
- Online Resources
- Summary
- Flash Audio
- Using Audio in Flash
- Importing
- Linking to MP3
- Publishing Audio
- Streaming MP3 from the Flash Communication Server
- Informit Articles and Sample Chapters
- Online Resources
- Summary
- Video in Flash
- Video
- Flash Video
- Spark Codec
- Exporting Video
- Informit Articles and Sample Chapters
- Blog and Discussion
- Summary
- Flash Components
- Attaching Components to Movies
- Creating a Component
- Informit Articles and Sample Chapters
- Tools and Downloads
- Summary
- Exporting and Optimization
- Connecting Flash to the Internet
- Loading SWF Movies
- Sharing Fonts Between Movies
- Reusing Your ActionScripts
- Using Third-Party Tools
- Informit Articles and Sample Chapters
- Online Resources
- Tools and Downloads
- Summary
- Introduction to Design in Flash
- Introduction to Design
- Fundamental Design Concepts
- Breaking Up the Screen
- Branding
- Adding Forms to Movies
- Developing with ActionScript
- Introduction to Programming within Flash MX 2004
- Using ActionScript to Extend the Functionality of Flash
- ActionScript Fundamentals
- Using the Actions Panel
- Using the Reference Panel
- Rapidly Adding ActionScript with the Behaviors Panel
- Event Handling within ActionScript
- Timeline Events
- Triggering Events through User Interaction
- Flash MX 2004 Pro
- Summary
- Creating Interactive Movies
- Giving Users a Choice
- What it All Comes Down to
- Summary
- Testing your Flash Movies
- Naming Conventions
- Syntax Checker
- Testing your movies
- Summary
- Debugging
- Using the "Debugger"
- Reviewing ActionScript Error Codes
- Summary
- Using ActionScript to Control Your Movies
- Setting Up Your Movies for Interaction
- Making Movie Clips Behave Like Buttons
- Controlling Multiple Movie Clips
- Applying Different Types of Events to a Movie Clip
- Summary
- Using ActionScript to Control Text
- How ActionScript Can Control Text
- Using Cascading Style Sheets within Flash MX 2004 Dynamic Text Boxes
- Applying CSS formatting with ActionScript
- Where Do You Go Now?
- The Differences Between ActionScript 1 and ActionScript 2
- Working with Classes
- Which Version of the Flash Player should you use?
- What’s Next?
- Using Pre-Built Classes In Flash MX 2004
- Using a Class in ActionScript
- The List of Core Classes
- Flash Player-Specific Classes
- Summary
- Creating Your Own Classes
- Creating a Custom Class
- Working with External Data in Flash
- Why Use XML in Flash?
- Integrating Flash and XML
- Visual Elements
- Adding the ActionScript
- Future Shock
- Using Components
- Begin Using Components
- Building an Application with Components
- Gluing Components Together with ActionScript
- Summary
- Informit Articles and Sample Chapters
- Books and e-Books
- Online Resources
- Rich Internet Applications
- Introduction to Rich Internet Applications
- Why Use Flash for Building Application Solutions?
- Building Applications with Flash
- Getting Started
- Using Flash Variables
- Working with Parameters in the Object and Embed HTML Tags
- Linking data with Flashvars
- Getting Data Into Flash: Loading External SWF and JPG Files
- Why You Should Separate Your Files
- Loading Movies into Levels and Target Movie Clips
- Summary
- Loading SWF and JPG Images
- Working With XML: What is XML, and How Does it Relate to Flash?
- A Brief History of XML
- Why Structuring Your Data is Always a Good Thing
- How XML Came to Flash
- Summary
- Working with XML: Good XML vs. Bad XML
- Good Places to Start
- Writing Good XML
- XML Tools
- The Next Step - Using XML in your Flash Applications
- Working with XML: Loading XML into Flash
- Integrating Flash and XML
- Visual Elements
- ActionScript
- Future Shock
- Working with XML — Dynamically Building XML with .NET, ColdFusion, Java, and PHP
- ColdFusion
- .NET
- Java
- PHP
- Summary
- Working with XML — Web Services
- SOAP Support in Flash MX 2004
- Using Components to Bind Web Services into your Applications
- Summary
- Working with Data — Working with XML
- XML In Flash
- Writing XML In Flash
- Building Trees of Data with XML
- Working with Data: Pushing Data back to the Server with Load Vars
- Setting up the Database
- Writing the VB.NET Code
- Creating the Flash Movie
- Working with Data: Leveraging Persistent Connections
- Using XMLSocket Connections
- XMLSocket Server
- XMLSocket Security
- XMLSocket Class in Flash
- Creating a Pong Game with an XMLSocket Server
- Summary
- Flash Remoting
- What is Flash Remoting?
- Using Flash Remoting
- The Future of Flash Remoting
- Flash Remoting Links
- Working with Data: Macromedia Flex Presentation Server
- What Problem Does Flex Presentation Server Address?
- How does Flex work?
- Coding and Building Flex Applications
- Building Rich Internet Applications: Connecting Flash to a Database
- Using FlashVars
- Using LoadVars
- Loading XML
- Consuming a Web Service
- Live data connections with XMLSocket Connections
- Building Rich Internet Applications: Planning, Planning, Planning
- A Simple Plan
- Tools You Can Use
- Applying a Discipline
- Building Rich Internet Applications: Design Counts
- Do Not Be Afraid to Ask For Help
- What if You Do Not Have a Ben To Call
- Building Rich Internet Applications: Beyond the Movie Clip
- UI Components
- Data Components
- Media Components
- Manager Components
- Screen Components
- Building Rich Internet Applications: Using Macromedia Central
- What Central is All About
- Who is Using Central?
- Developing for Macromedia Central
- Next Steps You Need to Take
- Building Rich Internet Applications: Using Macromedia Flex
- Authoring with Flex
- Publishing with Flex
- Presenting the Solution: Delivering Flash Applications to the Web
- Flash's own Publishing Tools
- Using Dreamweaver
- Writing your Own HTML
- Presenting the Solution: Delivering Flash Over Non-PC Devices
- Using Macromedia's Flash Lite
- Programming for Flash Lite
- FlashCast
- Informit Articles and Sample Chapters
- Books and e-Books
- Flash for Designers: Rich Media Production
- Graphic Control in Flash
- Drawing in Flash
- Importing Vector Art
- Importing Raster
- Scripting Images
- Introduction to the Rich Media Production
- Using Video, Audio and Images in your Flash Movies
- Using SWF Flash Movies
- Using JPEG Images
- MP3 Sound Files
- Flash Video
- Using Components to Build Rich Media Solutions
- Using the Loader Component
- Using the Media Components
- Controlling Components with ActionScript
- Controlling the Loader Component
- Media Components
- Using Audio in Flash
- Linking to MP3
- ActionScript-Controlled Audio
- Volume Control
- Publishing Audio
- Summary
- Video in Flash
- Working with Video
- Controlling Video with Components
- Exporting Video
- Summary
- Choosing Which Version of Flash Communication Server to Use
- Server Requirements
- Installation
- Running Communication Server on Different OS Platforms
- Pitfalls to Watch for
- Summary
- Streaming Video
- Live Video
- Broadcast Video on Demand
- Flash Video Components
- The Communication Server MX Server Code for the VideoPlayBack Component
- Record Video with VideoRecord Communication Component
- Create A Video Conference
- Examining the VideoConferencing Component
- The Communication Server MX Server Code for the VideoConferencing Component
- Summary
- Using the Microphone and Camera Core Classes
- Microphone
- Camera
- Constructing Large Applications That Leverage Video and Audio
- Configuring the Server
- Creating the Movie
- Broadcasting
- Summary
- Informit Articles and Sample Chapters
- Books and e-Books
- Matthew's Predictions for 2006
- Matthew's Favorite Flash Books
- Matthew's Favorite Flash Web Resources
- Macromedia as Part of Adobe
- First Look: Flash Player 8
- First, the Facts
- What Macromedia Brings to the Table
- What Adobe Brings to the Table
- What the Two Companies Can Do for Each Other
- A Brief History of Flash
There are two types of graphical format predominantly on the Internet: raster and vector. The difference between the two can be seen through a simple experiment.
A common raster graphic is either a JPEG or GIF graphic. These graphic formats can be found on almost any web page. When you stretch a raster graphic, you will see that the graphic starts to become grainy, or pixilated. This is because raster graphics, typically used for photographic images, are created pixel by pixel. The images can not stretch elegantly.
Now find a Flash movie. When you open a Flash movie and stretch it, the image does not become pixilated. The edges remain crisp and sharp. The reason for this is that Flash likes to build imagers as vectors, and vector images are created mathematically. Each line is a coordinate from one point to another. Stretching the image does not affect the underlying mathematics to the image.
Macromedia FreeHand, Adobe Illustrator, and Flash all create vector-based images. The bonus with Flash is that the images can also be animated along a timeline. To create vector-based images in Flash, you need to know the ins and outs of the Shape tools.
Shape Tools
Flash comes with three different Drawing tools that enable you to create shapes:
- Line tool
- Pencil tool
- Oval/Rectangle tool
Each of these tools is located on the Tools panel (choose Windows > Tools). I find that I use these tools a lot and that it is quicker to access these tools using the keyboard shortcuts in Flash. After the title for each tool you will find the keyboard shortcut.
Keyboard shortcuts are great. You can access a great deal of functionality directly from the keyboard. If you do not like the default keyboard shortcuts, you can change them. To do so, choose Edit > Keyboard shortcuts. This opens the Keyboard Shortcuts window. Here you can access all of the tools that are enabled to support keyboard shortcuts. You can then change the shortcut with your own custom command. The only caveat is that the new keyboard shortcut you create cannot be the same any existing shortcut.
Using the Line Tool
As you might expect, the Line tool allows you to draw straight lines across the stage. This tool is useful for adding borders and connecting objects together. The Line tool has several parameters that allow you to control color, line thickness, and line design. The following exercise demonstrates how you can draw with the line.
- Open a new document in Flash.
- Press N on the keyboard. The cursor changes to the line control.
- Click on the stage, then hold and drag the line. You will see that the Properties Inspector has changed to reflect the controls that can be managed through the Line tool.
- With the line still selected, click on the color picker tool in the Properties panel. Change the color to #FF6600 (it is a dark orange color). Press Enter for the color to take effect on the stage. The line is now orange.
- On the right of the color picker is a text field into which you can enter a number from 1-10. This is the thickness, or stroke, of the line, expressed in pixels. Change the setting to 5. The line on the stage becomes thicker.
- To the right of the Stroke field is the Stroke Style. This is where you can apply a custom design to the line on the stage. From the Stroke Style menu drop down menu, choose the dashed style. The effect is reflected on the stage. The line is now dashed instead of solid.
Additional stroke styles, colors, and sizes can be applied to lines. Experiment with them to see what kind of effects you come up with.
Using the Pencil Tool
The function of the Pencil tool is to create irregular shaped lines on the stage. This can be a fun tool to play with. The Pencil tool has the same controls in the Properties Inspector as the Line tool. It does, however, come with a couple of extras.
- Create a new document in Flash. Save this file as Pencil.fla.
- Press Y on the keyboard. The cursor changes to the pencil control.
- Draw on the stage. You can make the drawing irregular. You will notice that you can draw any shape you like.
- In the Properties panel, change the color of the line to #996666. You will see that you can also change the stroke thickness and style in much the same way you did with the Line tool. Change the thickness to 2 and the style to Solid. On the stage you now have an irregular shaped line. You can control the roundness of the curves and the straightness of the lines.
- Choose Edit > Select All to highlight the Pencil line on the Stage. Click the Smooth button at the bottom of the Tools Bar. This smoothes the line. Click the Straighten button to straighten the outline of the line.
Using the Oval Tool or Rectangle Tool
The two final shape tools that I am going to cover are the Oval and Rectangle. These shapes form the foundation for almost every graphic drawn. They are very powerful in their simplicity.
As with the Line and Pencil tools, the Oval and Rectangle tools are located on the Tools Bar. The only difference the two shapes have over the Line and Pencil tool is that when you draw an Oval or Rectangle, the area within the shape is colored. This internal color is called the Fill Color.
Writing Text in Flash
Whatever you draw in Flash, you will likely need to use the Text tool at some point to add labels or any other text.
With Flash 5, you had three different panels that managed all of the tools needed to format a text field. Thankfully, these tools are now all merged into the Properties Inspector.
Within Flash there are three distinct Text types, all of which share some similar functionality. For each type, you can change the font, color, size, paragraph alignment, and text decoration (Boldness and Italics). The three different types are:
- Static
- Dynamic
- Input
Static text is arguably the most basic of the text formats. It allows you add text to the stage in Text Area Boxes. Whatever font you use for this style of text will be preserved by Flash. That means when you preview the page, you will see the text in the font you chose (when you are working with HTML, you are limited to a finite set of fonts as font embedding is not a standard on the Internet).
For me the most interesting Text type is Dynamic. Dynamic text can be created through ActionScript. This is extremely useful. It allows Flash to connect to databases and present the content from the database directly into a Flash movie.
The Input Text fields is very similar to the an input field within a web page. The text field allows you to enter in your own values. Input Text fields are indispensable for creating forms within Flash.
Applying Color
The final section of the Shape tools is focused on Color. The Tools Bar has two main color controls: the Stroke and Fill colors.
The Stroke Color controls the outline of a shape or a line. Earlier you changed the color of the lines created with Pencil and Line tools. Pressing the Stroke Color selector gives you 256 Web-safe colors. The colors are guaranteed to appear as intended, no matter what computer is used to display them, be in Windows, Mac, or Linux.
The Fill Color enables you to pour color in areas, such as the inside of rectangle. As with the Stroke Color, you can press the Color Selector to choose your desired color.
In addition to the Color Selector, you can also use the Color Mixer panel to apply colors to objects. The Color Mixer allows you to add new color to the bottom of the Color Picker. New colors can include bitmap images gradients and non-Web safe colors.
- Create a new file and save it as Color Mixer.
- Choose Windows > Color Mixer.
- Choose the Fill Color selector. Now choose Solid from the drop down menu. This will allow you to create a solid color. You can choose your color from either the spectrum of colors in the top grid or by entering the Red, Green, Blue (R, G, B) value. Enter in R = 203, G = 138, and B = 68. This is a new color. You may have also noticed that you can add an Alpha transparency to the color. Slide the Alpha setting to 75%. Observe that you can see the grid now appearing through the color swatch.
- Select the Rectangle tool and draw a rectangle. The shape will be filled with the new color. Draw another rectangle on top of the first to see the effect of the Alpha transparency. You can keep the new color swatch to use later. To do this, choose Windows > Color Swatches, then move the cursor over the color swatch area until you see the Paint Can icon. Click and you will see a new swatch of color is added. You can now access this new color any time you want to apply Stroke or Fill Colors.
- Now you will create a gradient color with the Color Mixer. There are two types of gradient color: Linear and Radial. Linear gradients move from one edge to the other. Radial gradients begin in the center of a fill and move outward. In the Color Mixer, select Linear from the drop down menu. A horizontal line appears with a Black indicator on the left and a White indicator on the right. Select the Black indicator and slide it back and forth. The effect of the selector is immediately shown in the preview window. With the Black indicator still selected, change the color by choosing Red from the color picker above the preview window. Add the new Linear color to the Color Swatches panel.
- Draw a square with the Rectangle tool. Fill the shape with the new linear gradient. The gradient can be change to Radial in the Color Mixer. From the Style drop down menu choose Radial. This will change the gradient to appear to be coming from the center of the shape.
The Free Transform tool is new to Flash. You can access the tool from the Tool Bar or by pressing "T" on the keyboard. The Free Transform tool enables you to stretch, skew, and resize any selected object on the stage. All you have to do is select the Free Transform tool and then select a shape or library instance on the stage. The image is then free to be manipulated. Very nice to have.
Summary
What you have covered here is the fundamentals of drawing in Flash. There is a lot more to Flash than just art. In the next section of the guide you will start taking your steps towards animation through mastering the Library tool and understanding instances.