Even the most complex interactivity in Flash is fundamentally composed of two basic parts: (a) the behavior (what happens), and (b) the cause of the behavior (what makes it happen). Here’s a simple example: Suppose you have a looping soundtrack in a movie and a button that, when clicked, turns the soundtrack off. The behavior is the sound turning off, and the cause of the behavior is the mouse clicking the button. In Flash, behaviors are referred to as actions. The first step in learning how to make interactive movies is becoming familiar with the list of possible actions. However, actions can’t act without being told to act by something. That something is often the mouse coming in contact with a button, but it can also be a keystroke, or simply a command issued from a keyframe. We refer to any occurrence that can cause an action to happen (such as the button click in the preceding example) as an event. The mechanism we use to tell Flash what action to perform when an event occurs is known as an event handler. This cause-and-effect relationship seems obvious, but it is an extremely important concept. For the purposes of creating basic interactivity, the difference between an action and the cause of an action is merely a practical detail. But with Flash 5’s new programmatic actions and the scripting capabilities that they provide, understanding the relationship between actions and the things that cause them can be the key to adding more sophisticated behavior to your movies with traditional programming techniques.
Don’t worry, we’re taking it one step at a time. First, we set up the new Frame and Object Actions Panel. Then we look at the Basic Actions booklet. Later, we see how to call these actions in various ways with three kinds of event handlers: button manipulation, keyframes, and keystrokes.
What is ActionScript?
Setting up the Actions Panel
Unlike previous versions, Flash 5 has a new way of adding interactive commands to Flash movies the Actions Panel. Unlike with previous versions of Flash, you do not have to double-click frames and buttons to access actions. Also, you don’t have to use menus to select Actions you can type them by hand in or out of Flash! To open the Actions Panel, go to Windows➪Actions (Option+Command+A or Ctrl+ Alt+A). If you have a frame selected in the timeline, you will see the Actions Panel with the name Frame Actions (see Figure below). If you have a Button or Movie Clip symbol selected on the stage, you’ll see the name Object Actions. Don’t be confused there is only one Actions Panel. Flash simply lets you know the event handler to which you are assigning actions.
Most actions have user-definable parameters that can be set in the gray area below the left and right panes of the Actions Panel. You can show or hide this area by clicking the arrow in the lower-right corner of the panel. You can also hide the left pane of the Actions Panel by clicking the arrow on the divider line between the left and right panes.
The new Actions Panel enables you to instantly add, delete, or change Flash interactive commands.
Normal versus Expert Mode
Flash has two authoring modes for actions: Normal and Expert. By default, Flash uses the Normal Mode (Command+N or Ctrl+N when the Actions Panel is active). In this mode, Flash arranges actions in the left pane into six booklets, each booklet containing sets of ActionScript. You can choose actions from any of the sets by double-clicking a specific action. We work entirely within the first booklet, Basic Actions. In Expert Mode (Command+E or Ctrl+E when the Actions Panel is active), Flash eliminates the Basic Actions booklet (they’re all included in the Actions booklet), and enables you to type, copy, cut, and paste code at will into the right pane of the Actions Panel. You can change the mode setting by accessing the Actions Panel options, located at the upper-right corner of the panel .
You can add actions by dragging them from the left pane to the right pane, by selecting them from the plus (+) menu button in the upper-left corner of the Actions Panel, or by double-clicking them from an Action booklet. To delete actions, select the action line(s) in the right pane, and press the Delete key on the keyboard. Or you can select the action line(s) and push the minus (–) button in the upper-left corner.
You can control the Actions Panel’s look and feel by switching between Normal and Expert Modes.
The Basic Actions are listed as unsorted groups according to the functions they can perform. The first group, comprised of Go To, Play, and Stop, control the playback of the movie. The second group, which includes Toggle High Quality and Stop All Sounds, provides global tools for handling sounds and visual quality. The third group Get URL, FSCommand, and Load/Unload Movie let movies load external files and communicate with the browser, a Web server, or the standalone player. The fourth group is effectively made up of Tell Target and If Frame Is Loaded.
Flash Related Interview Questions
|Adv Java Interview Questions||J2EE Interview Questions|
|Adobe Flex 3 Interview Questions||Dreamweaver Interview Questions|
|3D Animation Interview Questions||Adobe Flash CS6 Interview Questions|
|Dreamweaver CS3 Interview Questions||Adobe Flex Interview Questions|
|Adobe Flex Actionscript Interview Questions||Gif Animation Interview Questions|
|Adobe Fireworks Interview Questions|
Understanding The Flash Framework
Exploring The Interface: Panels, Settings, And More
Using Tools For Navigation And Viewing
Working With Selections And The Pen Tool
Working With The Drawing And Painting Tools
Working With Text
Exploring The Timeline
Checking Out The Library: Symbols And Instances
Drawing In Flash
Animating In Flash
Using Bitmaps And Other Media With Flash
Designing Interfaces And Interface Elements
Understanding Sound For Flash
Importing And Editing Sounds In Flash
Optimizing Flash Sound For Export
Understanding Actions And Event Handlers
Navigating Flash Timelines
Controlling Movie Clips
Sharing And Loading Assets
Planning Code Structures
Creating Subroutines And Manipulating Data
Understanding Movie Clips As Complex Objects
Sending Data In And Out Of Flash
Understanding Html And Text Field Functions In Flash
What Is Generator?
Revving Up Generator
Working With Third-party, Server-side Applications
Working With Raster Graphics
Working With Vector Graphics
Working With Audio Applications
Working With 3d Graphics
Working With Quicktime
Working With Realplayer
Creating Full-motion Video With Flash
Creating Cartoon Animation With Flash
Planning Flash Production With Flowcharting Software
Working With Authoring Applications
Publishing Flash Movies
Integrating Flash Content With Html
Using Players, Projectors, And Screensaver Utilities
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.