Adobe 12040118 Using Help - Page 177
TextDocument object, TextDocument text attribute
UPC - 718659361808
View all Adobe 12040118 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 177 highlights
Help Using Help Reference Back 177 Type String; read-only. Example confir m( "You are: " + system.userName + " r unning on " + system.machineName + "."); TextDocument object Description The TextDocument object holds a string an attribute named "text." It is used to store values for a text layer's Source Text property. Attributes Attribute text Reference see "TextDocument text attribute" on page 177 Description text string stored in the TextDocument Methods Method Tex t D o c u m e n t ( ) Reference see "TextDocument TextDocument() method" on page 178 Description constructor to create a TextDocument Examples 1 Set a value of some source text and then display an alert showing the new value: var my TextD o cu men t = n ew TextD o c u m e n t ( " Ha p py C a ke " ) ; myTextLayer. proper t y("Source Text").setValue(myTextDocument); aler t(myTextLayer. proper t y("Source Text").getVa lue()); 2 Set keyframe values for text that will show different words over time: var textProp = my TextLayer. proper t y("Source Text"); textProp.setValueAtTime(0, new TextDocument("Happy")); tex t Prop. setVa l u eAtTi me(. 33, n ew Tex t D oc u m e n t ( " c a ke " ) ) ; tex t Prop. setVa l u eAtTi me(. 66, n ew Tex t D oc u m e n t ( " i s " ) ) ; tex t Prop. setVa l u eAtTi me(1, n ew TextD oc u m e n t ( " yu m my! " ) ) ; TextDocument text attribute Tex t D o c u m e n t . text Description The actual text string stored in this TextDocument. Type String; read/write. Using Help Back 177