In this unit we'll learn how to insert multimedia elements. More specifically, we'll see how to insert a Flash animation, a sound and a video. |
Flash movies are animations that have an SWF extention, just like buttons and flash text. They are usually used in web sites as a presentation, although they can be used for any kind of animation. These movies can be created through Flash Macromedia, and the user needs to have a plug-in installed on his/her computer to view the movies. |
Flash movies can be inserted in a Page through the Insert menu, Media, Flash option, or by pressing Ctrl+Alt+F. Also, they can be inserted by clicking the Flash option that is in the Common tab of the Insert panel, Media button. The Flash movies Properties inspector is similar to the button's and flash text's, but there are two new options that makes reference to the movie view. The Loop option sets a restart of the movie at the end of it. The other option Autoplay, indicates that the movie flash will be started when the page loads. If this option is unmarked, it would be shown only the first frame of the movie. You must disable this option when you want the reproduction to be activated by any behavior. |
Sounds are not commonly included in a web Page, because some users may be listening to their own music, and sometimes the page's music may be unwanted. However, including a nice sound appropiate to the contents of the page can make it more attractive. Many pages that have sound offer the possibility of disabling it. The most common sound formats used in the Internet are MP3, WAV and sometimes MIDI, although there are other different formats that can be used too. The ideal is including a light but with a good quality audio file. To insert audio in a document you have to go to Insert menu, Media, Plugin option. |
At the right side you have an example of an audio file, for which the audio controls are shown. If you want, you can play it by clicking the controls (Remember to turn on the speakers) |
The audio controls will not be shown in Dreamweaver. All files inserted as plug-in are represented inside Dreamweaver by an image alike the one on the left. |
If we're interested in inserting a video in a web site, we need to know that video takes much space, and so they can take a long time to download. |
The v ideo formats most commonly used on the internet are AVI, MPEG and MOV. To insert a video file in a document you have to go to the Insert menu, Medía, and Plug-in option. On the right you have an example of a video file. You can play it by pressing the video controls. | |
The Properties inspector treats the inserted video files in the same way as does with audio files: both are inserted as a Plug-in. Videos are also reproduced automatically when the page loads, and they are reproduced only once. These values can be changed through the code, the same way as in the case of audio files, adding autostart="false" and loop="true". All objects inserted through the Plug-in option need the user have a player installed or an appropiated plug-in to reproduce them. In the Src field of properties inspector the linked file (video or audio file) is set. In case the user doesn't have the required plug-in installed, a Page can be established in Plg URL field where it can be found. |
To practice you can perform the Step by step exercise in Inserting an audio file. |
0 komentar:
Posting Komentar