Monday, June 16, 2014

9th : Symbols in FL CS3

Dalam Flash symbols terbahagi kepada 3 iaitu :


  1. Movie Clip
  2. Button
  3. Graphics
A symbol is a graphic, button, or movie clip that you create manually in Adobe Flash Professional or by using the Button (ActionScript 2), SimpleButton (ActionScript 3), and MovieClip classes. Once you've converted an object to a symbol, the symbol appears in the Library and you can reuse the symbol by dragging out instances of it throughout your document. You can also copy symbols to use in other documents.
A symbol can include artwork that you import from another application. Any symbol that you create automatically becomes part of the Library for the current document.
An instance is a copy of a symbol located on the Stage or nested inside another symbol. An instance can be different from its parent symbol in color, size, transparency, and function. When you edit the symbol directly, Flash updates all of its instances. Conversely, you can apply effects and transformations to an instance of a symbol and only update that specific instance.
Using symbols in your documents dramatically reduces file size; saving several instances of a symbol requires much less storage space than saving multiple copies of the contents of the symbol. For example, you can reduce the file size of your documents by converting static graphics, such as background images, into symbols and then reusing them. Using symbols can also speeds SWF file playback because each symbol needs to be downloaded to Flash Player only once.
file

To convert a selected element or elements to a symbol, follow these steps:
  1. Invoke the Convert to Symbol command by doing one of the following:
    • Select Modify > Convert to Symbol (or press F8)
    • Drag the selection to the Library panel
    • Right-click (or Control-click) the elements and select Convert to Symbol from the context menu that appears
  2. In the Convert to Symbol dialog box, enter the name of the symbol and select the type of symbol: Button, Graphic, or Movie Clip.
  3. Click in the registration grid if you wish to reposition the registration point for the symbol. (Note: In most cases, it is best to keep the registration set to the top left corner.)
  4. Click OK.
Flash adds the symbol to the Library. The corresponding icon indicates whether the symbol is a button, graphic, or movie clip.




Contoh Penghasilan Symbol 

1. New > Blank page > ActionScript 2.0 > OK
2. Pilih Shape Tool dan buat shape yang anda suka. Contoh seperti di bawah :



3. Kemudian, gunakan Selection Tool untuk memilih semua bentuk yang telah dibuat.
4. Right click > Convert to Symbol


5. Pilih jenis symbol yang dikehendaki 


6. Apabila objek tersebut telah diconvert ke dalam symbol, automatik symbol tersebut akan disimpan di dalam library.



7. Untuk menukar symbol dalam bentuk movie clip atau graphic, lakukan langkah yang sama seperti di atas. 

8. Symbol anda telah siap! :)

No comments:

Post a Comment