Globale linker
Book 1
- Chapter 1
- Chapter 2
- Chapter 3
- Chapter 4
- Chapter 5
- Chapter 6
- Chapter 7
- Chapter 8
- Chapter 9
- Chapter 10
- Chapter 11
- Chapter 12
- Chapter 13
- Chapter 14
- Chapter 15
- Chapter 16/17
- Chapter 18/19
- Chapter 20
- Chapter 21
- Chapter 22/23
Book 2
Ch.22/23 Multimedia with Macromedia Flash 4.0
Flash combines four elements that define its functionality:
- vector graphics
Because vectors are mathematically based, they are scalable without affecting file size. - Streaming capability
Streaming allows multimedia content to begin playing as soon as it reaches its destination. - a timeline
The Timeline can be thought of as a sequenced ruler that controls frame by frame animation. Enables you to specify the speed at which the movie is played. The Timeline consists of three basic types of frames:- Normal Frame
To insert Normal frames choose Insert > Frame or press F5. A Normal Frame inherits content from the preceding frame. - Key Frame
Can be compared to milestones in the animation. Something significant happens at a keyframe. Inherits the content from the previous Keyframe, and the contents are available for editing. - Blank Keyframe
Yet another milestone, but the frame does not contain any content. All preceding content is stopped, and new content can begin
- Normal Frame
- layers
Each movie can have multiple layers. Each layer have its own timeline. Layers are used to run multiple timelines independently.
Flash-files are not natively supported by browsers, and therefor needs a plug-in to be viewed. According to a study at the beginning of 2000, 68 percent had the plug-in installed. Both Netscape navigator and Internet Explorer 4.0 and later installs the plug-in by default.
- .fla is the Flash creating and editing file format
- .swf is the exported, compressed finished product
The .swf file is inserted into the page by using the <object> tag for Internet Explorer and the deprecated <embed> tag in Netscape Navigator.
Flash supports importing image file formats such as gif, jpg and png.
In Flash, shapes include lines, circles, squares and rectangles, and can be inserted by choosing one of the shape icons from the Drawing Toolbar.
Fills include color, gradients, patterns and images.
Flash has the ability to define and reuse objects called symbols. A symbol can be inserted repeatedly throughout the animation, without adding significantly to the file size of the entire animation. When you make changes to the symbol file (in Symbol Editing Mode), all instances of the symbol used throughout the animation will reflect those changes. The symbols used in the movie are placed in the Library, ready to be used throughout the animation. A symbol comes in three flavors:
- Graphic Symbol
Can be compared to grouping a number of elements. When Motion tweening elements that move must be converted to a Graphic Symbol first. - Button Symbol
Reacts to user interaction. The button has 4 states:- Up
- Over
- Down
- Hit
- Movie Clip Symbol
A symbol with it's own Timeline that runs independent of the animation's main Timeline. Must be created in Symbol editing mode.
Flash refers to animation or motion as «tweening». Tweening comes in two flavors:
- Motion Tween
Motion in which objects move from one location to another. The object must be a Graphic Symbol.
Motion Tweening can follow a shaped path. - Shape Tween
Motion in which objects change their shape or form on the stage. Objected that are shape tweened cannot be a symbol. - Only one tween can exist in a layer at a time
To tween text you must first convert the text to a symbol and then apply motion tweening.
If you want to shape tween text, you first have to break the text apart, by choosing Modify > Break Apart.
Adding sound to a Flash animation is as easy as adding graphics. For sound to play, it must be placed in the timeline.
To incorporate a sound in Flash, you must first import it, as you do with graphics. After the sound is imported, it resides in the Movie Library.
The easiest way to add a Flash movie to an HTML file is to let Flash create the required HTML code, then copy and paste that code into your document that you want to display the Flash animation.
When exporting, Flash creates to files:
- The HTML file with the code needed to display the Flash animation. This is the file you have to double-click if you want to preview the animation in your browser.
- The .swf-file, that contains the compressed Flash animation.
To test the user's browser for a Flash plug-in is best done with JavaScript.
When using Tell Target, you assign a scripting action to an object, and Flash instructs the object (tells the target) how to perform. You use the Action tab of the Instance properties dialog to define tell targets. You then specify en event and an action to perform based on that event.
Masks add depth to an animation. A mask covers an area of the stage, allowing only a part you specify to show through. The effect is similar to looking through a stencil.
Remember to read through Appendix C through G in Book 1
