Professional Documents
Culture Documents
Harmonic Widgets
2
Harmonic Widgets
3
Harmonic Widgets
4
Harmonic Widgets
5
Harmonic Widgets
Opening widgets/HarmonicTemplateWidgetLibrary.fla
6
Applying a Widget to Your Flash Project
7
Using Clock from Harmonic Widgets
Uses SampleHarmonicClock.as
8
Using Clock from Harmonic Widgets
The internal text field of the text field widget has an instance
name of “timeTextField,”. Do not change this instance name or
the text field type (for example, Classic Text, Dynamic Text). If
you do, the widget will not function correctly.
9
Using Text Fields from Harmonic Widgets
Uses SampleHarmonicTextField.as
Size the text field to match the longest text string you expect
that field to display.
You must embed any fonts you intend to use in your Flash
project. This will ensure that they render correctly on the
ChannelPort.
You can add filters, such as a drop shadow, but be aware that
these filters may cause the template to have a longer render
time as the filters render.
The internal text field of the text field widget has an instance
name of “harmonicTextField,”. Do not change this instance
name or the text field type (for example, Classic Text, Dynamic
Text). If you do, the widget will not function correctly.
10
Resizing Dynamic Text Fields
11
Resizing Dynamic Text Fields
12
Resizing Dynamic Text Fields
13
Naming Multiple Instances of a Dynamic
Text Field
14
Naming Multiple Instances of a Dynamic
Text Field
15
Using Text Fields from Harmonic Widgets
16
Using Text Fields from Harmonic Widgets
17
Using Text Fields from Harmonic Widgets
18
Using Text Fields from Harmonic Widgets
19
Using Text Fields from Harmonic Widgets
All instances from the same TextField widget will have same
width/height, you adjust one, it affects all other instances.
If you need different width/height, you need to use separate
class of Text Field, see next page
20
Setting Up Multiple, Unique Text Fields
21
Setting Up Multiple, Unique Text Fields
22
Setting Up Multiple, Unique Text Fields
23
Setting Up Multiple, Unique Text Fields
In the Name field, type in a new, unique name for this symbol
(for example, “CustomTextField_01”)
In the Class field, type in a new, unique name, for example
“CustomTextField_01,” and click OK.
24
Setting Up Multiple, Unique Text Fields
25
Setting Up Multiple, Unique Text Fields
26
Setting Up Multiple, Unique Text Fields
Save the edited ActionScript file with the same name as the
class (such as “CustomTextField_01.as” in this example) in the
same location as your .fla file.
The widget can now be copied for additional instances.
27
Copying a Reconfigured Text Field Widget
for Additional Instances
Right-click on the reconfigured widget in the library, and select
Duplicate. The Symbol Properties dialog will appear.
28
Copying a Reconfigured Text Field Widget
for Additional Instances
Check the Export for ActionScript check box.
Under Name field, type in a new unique name for this symbol (for
example, “CustomTextField_02”).
Under Class Field, type in a new unique name (for example,
“CustomTextField_02”)
Enter “SampleHarmonicTextField” into the Base Class field, click OK
29
Copying a Reconfigured Text Field Widget
for Additional Instances
An error message will appear indicating that a definition for the
class could not be found in the class path. Click OK.
30
Copying a Reconfigured Text Field Widget
for Additional Instances
Edit the extends portion of the file to read
“SampleHarmonicTextField” and add “super();” to the
constructor code area
31
Copying a Reconfigured Text Field Widget
for Additional Instances
Save the edited ActionScript file with the same name as the
class (such as “CustomTextField_02.as” in this example) in the
same location as your .fla file.
To create additional copies of the text field widget, repeat the
above steps.
Once you have copied the number of text fields you need, the
text fields can be placed on the stage and manipulated.
32
Using separate Dynamic Text Field class
33
Using separate Dynamic Text Field class
34
Using separate Dynamic Text Field class
35
Questions?
36