7
Distributed Distributed Multimedia Multimedia Programming Programming Week - 6 Week - 6 ActionScripts Basics and Behaviors Working with Text

Distributed Multimedia Programming Week - 6 ActionScripts Basics and Behaviors Working with Text

Embed Size (px)

Citation preview

Page 1: Distributed Multimedia Programming Week - 6 ActionScripts Basics and Behaviors Working with Text

Distributed Multimedia Distributed Multimedia ProgrammingProgramming

Week - 6Week - 6

• ActionScripts Basics and Behaviors•Working with Text

Page 2: Distributed Multimedia Programming Week - 6 ActionScripts Basics and Behaviors Working with Text

Getting started with ActionScript Getting started with ActionScript overviewoverview

ActionScript is the language you use when you ActionScript is the language you use when you want to develop an application within Flash. want to develop an application within Flash.

You don't have to use ActionScript to use Flash, You don't have to use ActionScript to use Flash, but if you want to provide user interactivity, work but if you want to provide user interactivity, work with objects other than those built into Flash with objects other than those built into Flash (such as buttons and movie clips), or otherwise (such as buttons and movie clips), or otherwise turn a SWF file into a more robust user turn a SWF file into a more robust user experience, you'll probably want to use experience, you'll probably want to use ActionScript. ActionScript.

Page 3: Distributed Multimedia Programming Week - 6 ActionScripts Basics and Behaviors Working with Text

The ActionScript editorThe ActionScript editor

Flash MX 2004 and Flash MX Professional Flash MX 2004 and Flash MX Professional 2004 provide several tools to help you 2004 provide several tools to help you write syntactically correct code and lets write syntactically correct code and lets you set preferences for code formatting you set preferences for code formatting and other options. and other options.

Page 4: Distributed Multimedia Programming Week - 6 ActionScripts Basics and Behaviors Working with Text

To display the Actions panel, do one of To display the Actions panel, do one of the following:the following: Select Window > Development Panels > Select Window > Development Panels >

Actions. Actions. Press F9. Press F9.

Page 5: Distributed Multimedia Programming Week - 6 ActionScripts Basics and Behaviors Working with Text

To pin a script:To pin a script:

Position your pointer on the Timeline so the Position your pointer on the Timeline so the script appears in a tab at the lower left of the script appears in a tab at the lower left of the Script pane in the Actions panel. Script pane in the Actions panel. Do one of the following: Do one of the following: Click the pushpin icon to the right of the tab. (If the Click the pushpin icon to the right of the tab. (If the

pushpin looks like the icon at the far left, the script is pushpin looks like the icon at the far left, the script is already pinned; clicking that icon unpins it.) already pinned; clicking that icon unpins it.)

Right-click (Windows) or Control-click (Macintosh) on Right-click (Windows) or Control-click (Macintosh) on the tab, and select Pin Script. the tab, and select Pin Script.

Select Pin Script from the Options pop-up menu (at Select Pin Script from the Options pop-up menu (at the upper right of the panel). the upper right of the panel).

Page 6: Distributed Multimedia Programming Week - 6 ActionScripts Basics and Behaviors Working with Text

To use keyboard shortcuts with To use keyboard shortcuts with pinned scripts: pinned scripts:

ActionsActions Short-Cut KeyShort-Cut KeyPin ScriptPin Script Control-= (equal sign)Control-= (equal sign)

Unpin ScriptUnpin Script Control-- (minus sign)Control-- (minus sign)

Move focus to tab on the rightMove focus to tab on the right Control-Shift-. (period)Control-Shift-. (period)

Move focus to tab on the leftMove focus to tab on the left Control-Shift-, (comma)Control-Shift-, (comma)

Unpin all scriptsUnpin all scripts Control-Shift-- (minus)Control-Shift-- (minus)

Page 7: Distributed Multimedia Programming Week - 6 ActionScripts Basics and Behaviors Working with Text

Working with TextWorking with Text

Text Field typesText Field typesText Field BoxesText Field BoxesCreating , Modifying and Formatting TextCreating , Modifying and Formatting TextWorking with Static Text and Device FontsWorking with Static Text and Device FontsLoading a Text File into a Dynamic Text Loading a Text File into a Dynamic Text FieldFieldWorking with Dynamic Text and HTMLWorking with Dynamic Text and HTMLDynamic Text and CSSDynamic Text and CSS