Flash Course

Graphic symbols can be used for static images and for animations that are in sync with the main Timeline.
Unlike "Movie Clip" symbols, an animation contained in a "Graphic Symbol" can be seen in the main line of the Timeline, but sounds and ActionScript will not work in it.

Create a Graphic symbol

  1. Select on Stage the object you want to convert into a Graphic symbol (can be any element: line, shape, image, Group)
  2. Click Modify -> Convert to Symbol (or press F8)
  3. Flash will open a "Convert to Symbol" window. Type in a name for the symbol. Click the Type list arrow, then choose Graphic, and click OK.
- Flash will add that Symbol in the Library panel, and the selected object in the Stage become an Instance of that Symbol.

• Another way to create a Symbol is with the New Symbol option:
  1. Click the Insert -> New Symbol. Flash will open a Create New Symbol window, with the same Symbol Properties that you see when you use "Convert to Symbol".
    Create New Symbol
  2. Type in a name for the symbol. Click the Type list arrow, then choose Graphic, and click OK.
  3. Flash enters a symbol editing mode that contains a blank scene, with a '+' sign in the center. On the "Edit bar" will be displayed the name of the Symbol, next to Scene name.
    Symbol edit mode
    Anything you create in that blank page will represent the symbol.
  4. After you create the objects /drawings in that page, click on the Scene name, in the Edit bar (or double-click on an empty area) to return to the main scene.
  5. The Graphic symbol you have created is stored in the Library panel, from this panel you can drag on the Stage instances of that symbol.

- The instance of a symbol can be converted into a simple editable shape, without any relation with the master symbol or the other instances, by selecting it, then click the Modify -> Break Apart.
- Another major change that you can make to an instance, without affecting the other instances, is to swap the parent symbol for another symbol:
  1. Select the instance on the Stage, then open the "Properties panel".
  2. Click Swap in the "Properties panel" to open the Swap Symbol dialog box.
    Swap Symbol
  3. Click a symbol from the list, and press OK.
The instance retains any effects and/or animation that have been applied to it. All of the effects are preserved but are instead applied to and referencing the new chosen symbol.

The instance of a Graphic symbol has three specific options: Loop, Play Once, and Single Frame.
Options Graphic Symbol

If you want to transfer /copy a symbol from a Flash document to another:
  - open the both Flash documents,
  - open the Library panel with the Symbol you want to copy,
  - right-click on the name of the Symbol, then choose Copy.
  - go to the other Flash documet and click Edit -> Paste in Center (or Ctrl+V).
That Symbol will be automatically added in the Library panel of that document too.

Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
Which tag is used to add lists into <ul> and <ol> elements?
<dt> <dd> <li>
<ul>
 <li>http://coursesweb.net/html/</li>
 <li>http://coursesweb.net/css/</li>
</ul>
Which value of the "display" property creates a block box for the content and ads a bullet marker?
block list-item inline-block
.some_class {
  display: list-item;
}
Which instruction converts a JavaScript object into a JSON string.
JSON.parse() JSON.stringify eval()
var obj = {
 "courses": ["php", "javascript", "ajax"]
};
var jsonstr = JSON.stringify(obj);
alert(jsonstr);    // {"courses":["php","javascript","ajax"]}
Indicate the PHP class used to work with HTML and XML content in PHP.
stdClass PDO DOMDocument
$strhtml = '<body><div id="dv1">CoursesWeb.net</div></body>';
$dochtml = new DOMDocument();
$dochtml->loadHTML($strhtml);
$elm = $dochtml->getElementById("dv1");
echo $elm->nodeValue;    // CoursesWeb.net
Graphic Symbols

Last accessed pages

  1. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (142529)
  2. Display data from PHP Array, or MySQL in HTML table (26988)
  3. PHP Simple HTML DOM Parser (12469)
  4. Paragraphs, Line break, Horizontal rule (4310)
  5. Convert BBCode to HTML and HTML to BBCode with JavaScript (9417)

Popular pages this month

  1. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (532)
  2. The Mastery of Love (65)
  3. CSS cursor property - Custom Cursors (63)
  4. Read Excel file data in PHP - PhpExcelReader (59)
  5. PHP-MySQL free course, online tutorials PHP MySQL code (44)