Adobe Extending Flash Professional CS5 Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Software Adobe Extending Flash Professional CS5 herunter. Adobe Extending Flash Professional CS5 User Manual Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 565
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
Extending
ADOBE
®
FLASH
®
PROFESSIONAL CS5 & CS5.5
Seitenansicht 0
1 2 3 4 5 6 ... 564 565

Inhaltsverzeichnis

Seite 1 - PROFESSIONAL CS5 & CS5.5

ExtendingADOBE® FLASH® PROFESSIONAL CS5 & CS5.5

Seite 2 - Legal notices

xEXTENDING FLASH PROFESSIONALContentsLast updated 5/2/2011Chapter 16: Filter objectfilter.angle . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 3 - Contents

78EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.canEditSymbol()AvailabilityFlash MX 2004.Usage document.canEditSymbol()Para

Seite 4

79EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011 if(fl.getDocumentDOM().canRevert()){ fl.getDocumentDOM().revert(); }document

Seite 5

80EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011DescriptionMethod; determines whether you can use the document.testScene() method su

Seite 6

81EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011 fl.getDocumentDOM().changeFilterOrder(1,0); See alsodocument.addFilter(), document.

Seite 7

82EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011ReturnsNothing. DescriptionMethod; cuts the current selection from the document and

Seite 8

83EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.close()AvailabilityFlash MX 2004.Usage document.close([bPromptToSaveChanges

Seite 9

84EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011 fl.getDocumentDOM().convertLinesToFills();document.convertToSymbol()AvailabilityFla

Seite 10 - Last updated 5/2/2011

85EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011ReturnsA Boolean value: true if successful; false otherwise. DescriptionMethod; uses

Seite 11

86EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011DescriptionProperty; an integer that specifies the index of the active timeline. You

Seite 12

87EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.deleteEnvelope()AvailabilityFlash 8.Usage document.deleteEnvelope()Paramete

Seite 13

xiEXTENDING FLASH PROFESSIONALContentsLast updated 5/2/2011fl.findDocumentIndex() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 14

88EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011 alert(fl.getDocumentDOM().deletePublishProfile());See alsodocument.addNewPublishPro

Seite 15

89EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011DescriptionMethod; deletes the current selection on the Stage. Displays an error mes

Seite 16

90EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011ExampleThe following example disables all filters on the selected objects: fl.getDoc

Seite 17

91EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011ParametersenabledFilterIndex An integer representing the zero-based index of the fi

Seite 18

92EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011 fl.getDocumentDOM().distribute("top edge", false);The following example d

Seite 19

93EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011ExampleThe following example specifies that the ActionScript 3.0 class associated wi

Seite 20

94EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011ParametersprofileName A string that specifies the unique name of the duplicated pro

Seite 21

95EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011Usage document.duplicateSelection()ParametersNone. ReturnsNothing. DescriptionMethod

Seite 22

96EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011Usage document.enableAllFilters()ParametersNone.ReturnsNothing.DescriptionMethod; en

Seite 23 - Chapter 1: Introduction

97EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.enterEditMode()AvailabilityFlash MX 2004.Usage document.enterEditMode([edit

Seite 24 - Saving JSFL files

xiiEXTENDING FLASH PROFESSIONALContentsLast updated 5/2/2011fl.trace() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 25 - Running scripts

98EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011DescriptionMethod; exits from symbol-editing mode and returns focus to the next leve

Seite 26 - 4 Click OK

99EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.exportPublishProfile()AvailabilityFlash MX 2004.Usage document.exportPublis

Seite 27 - New methods and properties

100EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011ExampleThe following example stores an XML string that represents the current profi

Seite 28 - JavaScript API objects

101EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.externalLibraryPathAvailabilityFlash CS4 Professional.Usage document.exter

Seite 29

102EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.frameRateAvailabilityFlash MX 2004.Usage document.frameRateDescriptionProp

Seite 30

103EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.getBlendMode()AvailabilityFlash 8.Usage document.getBlendMode()ParametersN

Seite 31 - The Document object

104EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011DescriptionMethod; retrieves the fill object of the selected shape or, if specified

Seite 32

105EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011 var stroke = fl.getDocumentDOM().getCustomStroke("selection"); stroke

Seite 33 - Summary of the DOM structure

106EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011Usage document.getElementProperty(propertyName)ParameterspropertyName A string th

Seite 34 - Sample implementations

107EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011ReturnsIf one text field is selected, the property is returned if there is only one

Seite 35 - Sample DLL

xiiiEXTENDING FLASH PROFESSIONALContentsLast updated 5/2/2011frame.motionTweenOrientToPath . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 36

108EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011See alsodocument.addFilter(), document.changeFilterOrder(), document.setFilters(),

Seite 37

109EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011ExampleThe following example displays the XML settings string for the current docum

Seite 38

110EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.getSelectionRect()AvailabilityFlash MX 2004.Usage document.getSelectionRec

Seite 39

111EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011DescriptionMethod; gets the currently selected text. If the optional parameters are

Seite 40

112EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011 fl.getDocumentDOM().enterEditMode("inPlace"); fl.getDocumentDOM().getT

Seite 41

113EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011Usage document.group()ParametersNone. ReturnsNothing. DescriptionMethod; converts t

Seite 42

114EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011Usage document.idDescriptionRead-only property; a unique integer (assigned automati

Seite 43

115EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.importPublishProfile()AvailabilityFlash MX 2004.Usage document.importPubli

Seite 44

116EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011var profileXML=fl.getDocumentDOM().exportPublishProfileString('Default');

Seite 45

117EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011ReturnsA Boolean value: true if successful; false otherwise.DescriptionMethod; crea

Seite 46

xivEXTENDING FLASH PROFESSIONALContentsLast updated 5/2/2011item.linkageIdentifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 47

118EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011DescriptionProperty; a string that contains a list of items in the document’s Actio

Seite 48

119EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011DescriptionMethod; loads a cue point XML file. The format and DTD of the XML file i

Seite 49

120EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.mouseClick()AvailabilityFlash MX 2004.Usage document.mouseClick(position,

Seite 50

121EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011ReturnsNothing. DescriptionMethod; performs a double mouse click from the Selection

Seite 51

122EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011Usage document.moveSelectionBy(distanceToMove)ParametersdistanceToMove A pair of f

Seite 52

123EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.optimizeCurves()AvailabilityFlash MX 2004.Usage document.optimizeCurves(sm

Seite 53

124EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011See alsodocument.pathURIdocument.pathURIAvailabilityFlash CS4 Professional.Usage do

Seite 54

125EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011ExampleThe following example publishes the current document: fl.getDocumentDOM().pu

Seite 55

126EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011See alsodocument.crop(), document.deleteEnvelope(), document.intersect(), document.

Seite 56

127EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011DescriptionMethod; removes persistent data with the specified name that has been at

Seite 57 - Chapter 5: BitmapItem object

xvEXTENDING FLASH PROFESSIONALContentsLast updated 5/2/2011Chapter 28: Matrix objectmatrix.a . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 58

128EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011ParametersfilterIndex An integer specifying the zero-based index of the filter to

Seite 59

129EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011Usage document.renameScene(name)Parametersname A string that specifies the new nam

Seite 60

130EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.resetOvalObject()AvailabilityFlash CS3 Professional.Usage document.resetOv

Seite 61

131EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011 fl.getDocumentDOM().resetRectangleObject();See alsodocument.resetOvalObject()docum

Seite 62

132EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011ExampleThe following example reverts the current document to the previously saved v

Seite 63

133EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011rotationPoint A string that specifies which side of the bounding box to rotate. Ac

Seite 64

134EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011See alsodocument.saveAndCompact(), fl.saveAll(), fl.saveDocument(), fl.saveDocument

Seite 65

135EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011whichCorner A string value that specifies the edge about which the transformation

Seite 66

136EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.selectAll()AvailabilityFlash MX 2004.Usage document.selectAll()ParametersN

Seite 67

137EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011• Specify all the elements in a particular frame (see Element object). See the firs

Seite 68

xviEXTENDING FLASH PROFESSIONALContentsLast updated 5/2/2011Chapter 34: presetPanel objectpresetPanel.addNewItem() . . . . . . . . . . . . . . . . .

Seite 69

138EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011 // Assigns the layers array to the variable "theLayers". var theLayers

Seite 70

139EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011 fl.getDocumentDOM().selectNone();See alsodocument.selectAll(), document.selectiond

Seite 71

140EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011ReturnsNothing.DescriptionMethod; sets the blending mode for the selected objects.

Seite 72

141EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.setCustomStroke()AvailabilityFlash MX 2004.Usage document.setCustomStroke(

Seite 73 - Chapter 10: Contour object

142EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011ReturnsNothing. DescriptionMethod; sets the specified Element property on selected

Seite 74

143EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.setFillColor()AvailabilityFlash MX 2004.Usage document.setFillColor(color)

Seite 75

144EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011value A number or string specifying the value to be set for the specified filter p

Seite 76

145EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011 var myFilters = fl.getDocumentDOM().getFilters(); for (i=0; i < myFilters.le

Seite 77 - Chapter 11: Document object

146EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011ReturnsNothing. DescriptionMethod; sets the brightness for the instance. ExampleThe

Seite 78

147EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011ParametersstrMetadata A string containing the XML metadata to be associated with t

Seite 79

xviiEXTENDING FLASH PROFESSIONALContentsLast updated 5/2/2011soundItem.sampleRate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 80

148EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011 <rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>

Seite 81

149EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011 fl.getDocumentDOM().setMobileSettings("<? xml version="1.0" enco

Seite 82

150EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011Parametersversion A string that represents the version of Flash Player targeted by

Seite 83

151EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.setSelectionBounds()AvailabilityFlash MX 2004; bContactSensitiveSelection

Seite 84

152EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011bContactSensitiveSelection A Boolean value that specifies whether the Contact Sens

Seite 85

153EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011DescriptionSpecifies the vanishing point for viewing 3D objects.ExampleThe followin

Seite 86

154EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011strokeType A string that specifies the new type of stroke for the selection. Accep

Seite 87

155EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.setStrokeSize()AvailabilityFlash MX 2004.Usage document.setStrokeSize(size

Seite 88

156EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.setTextRectangle()AvailabilityFlash MX 2004.Usage document.setTextRectangl

Seite 89

157EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011endIndex An integer that specifies the end position of the selection up to, but no

Seite 90

xviiiEXTENDING FLASH PROFESSIONALContentsLast updated 5/2/2011symbolInstance.colorAlphaAmount . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 91

158EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011The following example inserts “Howdy” starting at position 2 and up to, but not inc

Seite 92

159EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.silentAvailabilityFlash MX 2004.Usage document.silentDescriptionProperty;

Seite 93

160EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011ExampleThe following examples skew the selected object by 2.0 vertically and 1.5 ho

Seite 94

161EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011var myDoc = fl.getDocumentDOM(); fl.trace(myDoc.sourcePath); myDoc.sourcePath =

Seite 95

162EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.straightenSelection()AvailabilityFlash MX 2004.Usage document.straightenSe

Seite 96

163EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.swapStrokeAndFill()AvailabilityFlash 8.Usage document.swapStrokeAndFill()P

Seite 97

164EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011See alsodocument.canTestMovie(), document.testScene()document.testScene()Availabili

Seite 98

165EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011 var i = 0; var curTimelines = fl.getDocumentDOM().timelines; while(i < fl.g

Seite 99

166EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011Usage document.translate3DCenter(xyzCoordinate)ParametersxyzCoordinate An XYZ coor

Seite 100

167EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.transformSelection()AvailabilityFlash MX 2004.Usage document.transformSele

Seite 101

xixEXTENDING FLASH PROFESSIONALContentsLast updated 5/2/2011text.lineType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 102

168EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011 fl.getDocumentDOM().unGroup();See alsodocument.group()document.union()Availability

Seite 103

169EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011DescriptionMethod; unlocks all locked elements on the currently selected frame. Exa

Seite 104

170EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011ExampleThe following example sets the width of the Stage to 400 pixels. fl.getDocum

Seite 105

171EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011DescriptionProperty; specifies the zoom percent of the Stage at authoring time. A v

Seite 106

172Last updated 5/2/2011Chapter 12: drawingLayer objectAvailabilityFlash MX 2004.DescriptionThe drawingLayer object is accessible from JavaScript as a

Seite 107

173EXTENDING FLASH PROFESSIONALdrawingLayer objectLast updated 5/2/2011ParameterspersistentDraw A Boolean value (optional). If set to true, it indic

Seite 108

174EXTENDING FLASH PROFESSIONALdrawingLayer objectLast updated 5/2/2011Usage drawingLayer.cubicCurveTo(x1Ctrl, y1Ctrl, x2Ctl, y2Ctl, xEnd, yEnd)Parame

Seite 109

175EXTENDING FLASH PROFESSIONALdrawingLayer objectLast updated 5/2/2011ExampleThe following example draws a quadratic curve using the specified contro

Seite 110

176EXTENDING FLASH PROFESSIONALdrawingLayer objectLast updated 5/2/2011ExampleThe following example exits drawing mode: fl.drawingLayer.endDraw(); dra

Seite 111

177EXTENDING FLASH PROFESSIONALdrawingLayer objectLast updated 5/2/2011ExampleThe following example draws a line from the current drawing position to

Seite 112

Last updated 5/2/2011Legal noticesLegal noticesFor legal notices, see http://help.adobe.com/en_US/legalnotices/index.html.

Seite 113

xxEXTENDING FLASH PROFESSIONALContentsLast updated 5/2/2011timeline.convertToBlankKeyframes() . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 114

178EXTENDING FLASH PROFESSIONALdrawingLayer objectLast updated 5/2/2011DescriptionMethod; returns a new Path object. You typically use this method onl

Seite 115

179EXTENDING FLASH PROFESSIONALdrawingLayer objectLast updated 5/2/2011drawingLayer.setFill()This method is not available.drawingLayer.setStroke()This

Seite 116

180Last updated 5/2/2011Chapter 13: Edge objectAvailabilityFlash MX 2004.DescriptionThe Edge object represents an edge of a shape on the Stage.Method

Seite 117

181EXTENDING FLASH PROFESSIONALEdge objectLast updated 5/2/2011var theShape = fl.getDocumentDOM().selection[0]; var edgesArray = theShape.edges; for

Seite 118

182EXTENDING FLASH PROFESSIONALEdge objectLast updated 5/2/2011DescriptionMethod; returns a HalfEdge object. ExampleThe following example stores the h

Seite 119

183EXTENDING FLASH PROFESSIONALEdge objectLast updated 5/2/2011edge.setControl()AvailabilityFlash MX 2004.Usage edge.setControl(index, x, y)Parameters

Seite 120

184EXTENDING FLASH PROFESSIONALEdge objectLast updated 5/2/2011ReturnsNothing. DescriptionMethod; splits the edge into two pieces. You must call shape

Seite 121

185Last updated 5/2/2011Chapter 14: Element objectAvailabilityFlash MX 2004.DescriptionEverything that appears on the Stage is of the type Element. Th

Seite 122

186EXTENDING FLASH PROFESSIONALElement objectLast updated 5/2/2011element.depthAvailabilityFlash MX 2004.Usage element.depthDescriptionRead-only prope

Seite 123

187EXTENDING FLASH PROFESSIONALElement objectLast updated 5/2/2011DescriptionRead-only property; a string that represents the type of the specified el

Seite 124

xxiEXTENDING FLASH PROFESSIONALContentsLast updated 5/2/2011Chapter 46: ToolObj objecttoolObj.depth . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 125

188EXTENDING FLASH PROFESSIONALElement objectLast updated 5/2/2011 // At least one symbol or bitmap is selected in the first layer, first frame. var

Seite 126

189EXTENDING FLASH PROFESSIONALElement objectLast updated 5/2/2011Usage element.hasPersistentData(name)Parametersname A string that specifies the nam

Seite 127

190EXTENDING FLASH PROFESSIONALElement objectLast updated 5/2/2011ExampleThe following example stores the Layer object that contains the element in th

Seite 128

191EXTENDING FLASH PROFESSIONALElement objectLast updated 5/2/2011element.matrixAvailabilityFlash MX 2004.Usage element.matrixDescriptionProperty; a M

Seite 129

192EXTENDING FLASH PROFESSIONALElement objectLast updated 5/2/2011Parametersname A string that specifies the name of the data to remove. ReturnsNothi

Seite 130

193EXTENDING FLASH PROFESSIONALElement objectLast updated 5/2/2011ExampleThe following example sets the x scale value of the current selection to 2 (d

Seite 131

194EXTENDING FLASH PROFESSIONALElement objectLast updated 5/2/2011element.setPersistentData()AvailabilityFlash MX 2004.Usage element.setPersistentData

Seite 132

195EXTENDING FLASH PROFESSIONALElement objectLast updated 5/2/2011• Drawing objects, primitive objects, and groups: transformationPoint is set relativ

Seite 133

196EXTENDING FLASH PROFESSIONALElement objectLast updated 5/2/2011element.skewYAvailabilityFlash CS3 Professional.Usage element.skewYDescriptionProper

Seite 134

197EXTENDING FLASH PROFESSIONALElement objectLast updated 5/2/2011element.transformXAvailabilityFlash CS3 Professional.Usage element.transformXDescrip

Seite 135

xxiiEXTENDING FLASH PROFESSIONALContentsLast updated 5/2/2011xmlui.getEnabled() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 136

198EXTENDING FLASH PROFESSIONALElement objectLast updated 5/2/2011Do not use this property to resize a text field. Instead, select the text field and

Seite 137

199Last updated 5/2/2011Chapter 15: Fill objectAvailabilityFlash MX 2004.DescriptionThis object contains all the properties of the Fill color setting

Seite 138

200EXTENDING FLASH PROFESSIONALFill objectLast updated 5/2/2011var fill = fl.getDocumentDOM().getCustomFill(); if (fill.style == "bitmap")

Seite 139

201EXTENDING FLASH PROFESSIONALFill objectLast updated 5/2/2011ExampleThe following example sets the fill color of the current selection: var fill = f

Seite 140

202EXTENDING FLASH PROFESSIONALFill objectLast updated 5/2/2011ExampleThe following example sets the focal point of a radial gradient for the current

Seite 141

203EXTENDING FLASH PROFESSIONALFill objectLast updated 5/2/2011ExampleThe following example uses the fill.matrix property to specify a gradient fill f

Seite 142

204EXTENDING FLASH PROFESSIONALFill objectLast updated 5/2/2011DescriptionProperty; an array of integers, each in the range of zero to 255, indicating

Seite 143

205Last updated 5/2/2011Chapter 16: Filter objectAvailabilityFlash 8.DescriptionThis object contains all the properties for all filters. The filter.na

Seite 144

206EXTENDING FLASH PROFESSIONALFilter objectLast updated 5/2/2011filter.angleAvailabilityFlash 8.Usage filter.angleDescriptionProperty; a float value

Seite 145

207EXTENDING FLASH PROFESSIONALFilter objectLast updated 5/2/2011 var myFilters = fl.getDocumentDOM().getFilters(); for(i=0; i < myFilters.length

Seite 146

1Last updated 5/2/2011Chapter 1: IntroductionAs a user of Adobe® Flash® Professional CS5 or CS5.5, you may be familiar with Adobe® ActionScript®, whi

Seite 147

208EXTENDING FLASH PROFESSIONALFilter objectLast updated 5/2/2011ExampleThe following example sets the brightness to 30.5 for the Adjust Color filters

Seite 148

209EXTENDING FLASH PROFESSIONALFilter objectLast updated 5/2/2011Usage filter.contrastDescriptionProperty; a float value that specifies the contrast v

Seite 149

210EXTENDING FLASH PROFESSIONALFilter objectLast updated 5/2/2011filter.enabledAvailabilityFlash CS3 Professional.Usage filter.enabledDescriptionPrope

Seite 150

211EXTENDING FLASH PROFESSIONALFilter objectLast updated 5/2/2011filter.highlightColorAvailabilityFlash 8.Usage filter.highlightColorDescriptionProper

Seite 151

212EXTENDING FLASH PROFESSIONALFilter objectLast updated 5/2/2011 var myFilters = fl.getDocumentDOM().getFilters(); for(i=0; i < myFilters.length

Seite 152

213EXTENDING FLASH PROFESSIONALFilter objectLast updated 5/2/2011ExampleThe following example sets the knockout property to true for the Glow filters

Seite 153

214EXTENDING FLASH PROFESSIONALFilter objectLast updated 5/2/2011Usage filter.qualityDescriptionProperty; a string that specifies the blur quality. Ac

Seite 154

215EXTENDING FLASH PROFESSIONALFilter objectLast updated 5/2/2011filter.shadowColorAvailabilityFlash 8.Usage filter.shadowColorDescriptionProperty; th

Seite 155

216EXTENDING FLASH PROFESSIONALFilter objectLast updated 5/2/2011 var myFilters = fl.getDocumentDOM().getFilters(); for(i=0; i < myFilters.length

Seite 156

217Last updated 5/2/2011Chapter 17: flash object (fl)AvailabilityFlash MX 2004.DescriptionThe flash object represents the Flash application. You can u

Seite 157

2EXTENDING FLASH PROFESSIONALIntroductionLast updated 5/2/2011You can also create a JSFL file by selecting commands in the History panel. Then click t

Seite 158

218EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011Property summary The following properties can be used with the flash object.fl.op

Seite 159

219EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011fl.createNewDocList Read-only; an array of strings that represent the various typ

Seite 160

220EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011fl.actionsPanelAvailabilityFlash CS3 Professional.Usage fl.actionsPanelDescriptio

Seite 161

221EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011ExampleThe following example displays a message in the Output panel when a docume

Seite 162

222EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011ParametersbrowseType A string that specifies the type of file browse operation.

Seite 163

223EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011ExampleThe following example lets the user select a folder and then displays a li

Seite 164

224EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011ReturnsNothing.DescriptionMethod; copies the specified string to the Clipboard.To

Seite 165

225EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011Usage fl.closeAllPlayerDocuments()ParametersNone.ReturnsA Boolean value: true if

Seite 166

226EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011 // Closes the specified document and prompts to save changes. fl.closeDocument

Seite 167

227EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011DescriptionRead-only property; a string that specifies the full path for the loca

Seite 168

3EXTENDING FLASH PROFESSIONALIntroductionLast updated 5/2/2011There are two locations where you can store command and tool files so they can be access

Seite 169

228EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011 var contact = fl.contactSensitiveSelection; fl.contactSensitiveSelection = fa

Seite 170

229EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011ExampleThe following example displays the types of documents that can be created,

Seite 171

230EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011fl.documentsAvailabilityFlash MX 2004.Usage fl.documentsDescriptionRead-only prop

Seite 172

231EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011ParametersucfURI A string that specifies the file Uniform Resource Identifier (U

Seite 173

232EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011fl.fileExists()AvailabilityFlash MX 2004.Usage fl.fileExists(fileURI)Parametersfi

Seite 174

233EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011 var originalDocID = fl.getDocumentDOM().id; // other code here, maybe working

Seite 175

234EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011ParametersinstanceName A string that specifies the instance name of an item in t

Seite 176

235EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011ReturnsAn array of generic objects. Use the .obj property of each item in the arr

Seite 177

236EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011 var doc = fl.getDocumentDOM(); var typeToSearchFor = "text"; var r

Seite 178

237EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011ParametersmemType An integer that specifies the memory utilization area to be qu

Seite 179

4EXTENDING FLASH PROFESSIONALIntroductionLast updated 5/2/2011• From within a script, use the fl.runScript() command.• From the file system, double-cl

Seite 180 - Document object

238EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011DescriptionMethod; retrieves the DOM (Document object) of the currently active do

Seite 181

239EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011ParametersNone. ReturnsAn array of generic objects corresponding to the list of i

Seite 182

240EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011ExampleThe following code displays “true” in the Output panel if the Times font i

Seite 183

241EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011fl.mapPlayerURL()AvailabilityFlash MX 2004.Usage fl.mapPlayerURL(URI [, returnMBC

Seite 184

242EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011 // Select an element on the Stage and then run this script. var mat =fl.getDoc

Seite 185

243EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011fl.objectDrawingModeAvailabilityFlash 8. Usage fl.objectDrawingModeDescriptionPro

Seite 186

244EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011 var doc = fl.openDocument("file:///c|/Document.fla");fl.openScript()Av

Seite 187

245EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011DescriptionRead-only property; reference to the outputPanel object.ExampleSee out

Seite 188

246EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011fl.publishCacheDiskSizeMaxAvailabilityFlash CS5.5 Professional.Usage fl.publishCa

Seite 189

247EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011Usage fl.publishCacheMemoryEntrySizeLimitDescriptionProperty: an integer that set

Seite 190

5EXTENDING FLASH PROFESSIONALIntroductionLast updated 5/2/2011New methods and propertiesThe following methods and properties for existing objects are

Seite 191

248EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011ParametersflaURI A string, expressed as a file:/// URI, that specifies the path

Seite 192

249EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011 // Quit with prompt to save any modified documents. fl.quit(); fl.quit(true)

Seite 193

250EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011DescriptionMethod; rebuilds the Tools panel from the toolconfig.xml file. This me

Seite 194

251EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011ParametersNone.DescriptionMethod; resets the global Classpath setting in the Acti

Seite 195

252EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011ParametersdocumentObject A Document object. If documentObject refers to the acti

Seite 196

253EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011 function testFunct(num, minNum) { fl.trace("in testFunct: 1st arg: "

Seite 197

254EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011 fl.saveAll();See alsodocument.save(), document.saveAndCompact(), fl.saveDocument

Seite 198

255EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011Usage fl.saveDocumentAs(document)Parametersdocument A Document object that speci

Seite 199

256EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011fl.selectElement()AvailabilityFlash CS3 Professional.Usage fl.selectElement(eleme

Seite 200

257EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011Usage fl.selectTool(toolName)ParameterstoolName A string that specifies the name

Seite 201

6EXTENDING FLASH PROFESSIONALIntroductionLast updated 5/2/2011• flash object (fl)• fl.getSwfPanel()• fl.installedPlayers()• fl.publishCacheEnabled• fl

Seite 202 - Chapter 13: Edge object

258EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011ReturnsNothing. DescriptionMethod; sets the active window to be the specified doc

Seite 203

259EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011fl.sourcePathAvailabilityFlash CS4 Professional.Usage fl.sourcePathDescriptionPro

Seite 204

260EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011fl.toggleBreakpoint()AvailabilityFlash Professional CS5.Usage fl.toggleBreakPoint

Seite 205

261EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011ReturnsNothing. DescriptionMethod; sends a text string to the Output panel, termi

Seite 206

262EXTENDING FLASH PROFESSIONALflash object (fl)Last updated 5/2/2011DescriptionRead-only property; an XMLUI object. This property lets you get and se

Seite 207 - Chapter 14: Element object

263Last updated 5/2/2011Chapter 18: FLfile objectAvailabilityFlash MX 2004 7.2. DescriptionThe FLfile object lets you write Flash extensions that can

Seite 208

264EXTENDING FLASH PROFESSIONALFLfile objectLast updated 5/2/2011FLfile.copy()AvailabilityFlash MX 2004 7.2.Usage FLfile.copy(fileURI, copyURI)Paramet

Seite 209

265EXTENDING FLASH PROFESSIONALFLfile objectLast updated 5/2/2011ExampleThe following example makes a backup copy of a configuration file named config

Seite 210

266EXTENDING FLASH PROFESSIONALFLfile objectLast updated 5/2/2011See alsoFLfile.remove(), FLfile.write()FLfile.exists()AvailabilityFlash MX 2004 7.2.U

Seite 211

267EXTENDING FLASH PROFESSIONALFLfile objectLast updated 5/2/2011FLfile.getAttributes()AvailabilityFlash MX 2004 7.2.Usage FLfile.getAttributes(fileOr

Seite 212

7EXTENDING FLASH PROFESSIONALIntroductionLast updated 5/2/2011Object DescriptionactionsPanel object The actionsPanel object represents the currently d

Seite 213

268EXTENDING FLASH PROFESSIONALFLfile objectLast updated 5/2/2011FLfile.getCreationDate()AvailabilityFlash MX 2004 7.2.Usage FLfile.getCreationDate(fi

Seite 214

269EXTENDING FLASH PROFESSIONALFLfile objectLast updated 5/2/2011ParametersfileOrFolderURI A string, expressed as a file:/// URI, specifying the file

Seite 215

270EXTENDING FLASH PROFESSIONALFLfile objectLast updated 5/2/2011 // Make sure the specified files exist. file1 = "file:///C|/MyApplication/MyA

Seite 216

271EXTENDING FLASH PROFESSIONALFLfile objectLast updated 5/2/2011FLfile.getSize()AvailabilityFlash MX 2004 7.2.Usage FLfile.getSize(fileURI)Parameters

Seite 217

272EXTENDING FLASH PROFESSIONALFLfile objectLast updated 5/2/2011DescriptionMethod; returns an array of strings representing the contents of the folde

Seite 218

273EXTENDING FLASH PROFESSIONALFLfile objectLast updated 5/2/2011ExampleThe following example converts a filename from a platform-specific format to a

Seite 219

274EXTENDING FLASH PROFESSIONALFLfile objectLast updated 5/2/2011Usage FLfile.remove(fileOrFolderURI)ParametersfileOrFolderURI A string, expressed as

Seite 220

275EXTENDING FLASH PROFESSIONALFLfile objectLast updated 5/2/2011ParametersfileURI A string, expressed as a file:/// URI, specifying the file whose a

Seite 221 - Chapter 15: Fill object

276EXTENDING FLASH PROFESSIONALFLfile objectLast updated 5/2/2011FLfile.uriToPlatformPath()AvailabilityFlash CS4 Professional.Usage FLfile.uriToPlatfo

Seite 222

277EXTENDING FLASH PROFESSIONALFLfile objectLast updated 5/2/2011DescriptionMethod; writes the specified string to the specified file (as UTF-8). If t

Seite 223

iiiLast updated 5/2/2011ContentsChapter 1: IntroductionWorking with the JavaScript API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 224

8EXTENDING FLASH PROFESSIONALIntroductionLast updated 5/2/2011Parameter object The Parameter object type is accessed from the screen.parameters array

Seite 225

278Last updated 5/2/2011Chapter 19: folderItem objectInheritance Item object > folderItem objectAvailabilityFlash MX 2004.DescriptionThe folderI

Seite 226

279Last updated 5/2/2011Chapter 20: fontItem objectInheritance Item object > fontItem objectAvailabilityFlash MX 2004.DescriptionThe fontItem ob

Seite 227 - Chapter 16: Filter object

280EXTENDING FLASH PROFESSIONALfontItem objectLast updated 5/2/2011fontItem.boldAvailabilityFlash CS4 Professional.Usage fontItem.boldDescriptionPrope

Seite 228

281EXTENDING FLASH PROFESSIONALfontItem objectLast updated 5/2/2011Usage fontItem.embedRangesDescriptionProperty; a string value that specifies a seri

Seite 229

282EXTENDING FLASH PROFESSIONALfontItem objectLast updated 5/2/2011function embedFontSymbol(symbolName, fontName, includeVariants) { var doc = fl

Seite 230

283EXTENDING FLASH PROFESSIONALfontItem objectLast updated 5/2/2011fontItem.fontAvailabilityFlash CS4 Professional.Usage fontItem.fontDescriptionPrope

Seite 231

284EXTENDING FLASH PROFESSIONALfontItem objectLast updated 5/2/2011fontItem.italicAvailabilityFlash CS4 Professional.Usage fontItem.italicDescriptionP

Seite 232

285Last updated 5/2/2011Chapter 21: Frame objectAvailabilityFlash MX 2004.DescriptionThe Frame object represents frames in the layer. Method summary T

Seite 233

286EXTENDING FLASH PROFESSIONALFrame objectLast updated 5/2/2011frame.convertMotionObjectTo2D()AvailabilityFlash Professional CS5.Usage frame.convertM

Seite 234

287EXTENDING FLASH PROFESSIONALFrame objectLast updated 5/2/2011ExampleThe following example converts the selected motion object to a 2D motion object

Seite 235

9EXTENDING FLASH PROFESSIONALIntroductionLast updated 5/2/2011The Flash Document Object ModelThe Flash Document Object Model (DOM) for the Flash JavaS

Seite 236

288EXTENDING FLASH PROFESSIONALFrame objectLast updated 5/2/2011Usage frame.actionScriptDescriptionProperty; a string that represents ActionScript cod

Seite 237

289EXTENDING FLASH PROFESSIONALFrame objectLast updated 5/2/2011 var myElements = fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements; fram

Seite 238

290EXTENDING FLASH PROFESSIONALFrame objectLast updated 5/2/2011 var doc = fl.getDocumentDOM(); var my_tl = doc.getTimeline(); this.getCurrentFrame

Seite 239 - Chapter 17: flash object (fl)

291EXTENDING FLASH PROFESSIONALFrame objectLast updated 5/2/2011ExampleThe following example returns a trace statement informing you if the current se

Seite 240

292EXTENDING FLASH PROFESSIONALFrame objectLast updated 5/2/2011frame.isMotionObject()AvailabilityFlash Professional CS5.Usage Frame.isMotionObject()D

Seite 241

293EXTENDING FLASH PROFESSIONALFrame objectLast updated 5/2/2011frame.motionTweenOrientToPathAvailabilityFlash MX 2004.Usage frame.motionTweenOrientTo

Seite 242

294EXTENDING FLASH PROFESSIONALFrame objectLast updated 5/2/2011ExampleThe following example rotates the element in this frame counter-clockwise three

Seite 243

295EXTENDING FLASH PROFESSIONALFrame objectLast updated 5/2/2011Usage frame.motionTweenSyncDescriptionProperty; a Boolean value that if set to true, s

Seite 244

296EXTENDING FLASH PROFESSIONALFrame objectLast updated 5/2/2011var doc = fl.getDocumentDOM(); var my_tl = doc.getTimeline(); t his.getCurrentFram

Seite 245

297EXTENDING FLASH PROFESSIONALFrame objectLast updated 5/2/2011See alsoframe.getCustomEase(), frame.hasCustomEase, frame.useSingleEaseCurveframe.setM

Seite 246

10EXTENDING FLASH PROFESSIONALIntroductionLast updated 5/2/2011To access the document that is currently focused, use the statement flash.getDocumentDO

Seite 247

298EXTENDING FLASH PROFESSIONALFrame objectLast updated 5/2/2011endAtCurrentLocation A boolean value that determines whether the tween starts or ends

Seite 248

299EXTENDING FLASH PROFESSIONALFrame objectLast updated 5/2/2011frame.soundLibraryItemAvailabilityFlash MX 2004.Usage frame.soundLibraryItemDescriptio

Seite 249

300EXTENDING FLASH PROFESSIONALFrame objectLast updated 5/2/2011DescriptionProperty; a string that specifies whether a sound that is attached directly

Seite 250

301EXTENDING FLASH PROFESSIONALFrame objectLast updated 5/2/2011frame.startFrameAvailabilityFlash MX 2004.Usage frame.startFrameDescriptionRead-only p

Seite 251

302EXTENDING FLASH PROFESSIONALFrame objectLast updated 5/2/2011Usage Frame.tweenInstanceName()DescriptionProperty; a string that assigns an instance

Seite 252

303EXTENDING FLASH PROFESSIONALFrame objectLast updated 5/2/2011This property is ignored if the frame doesn’t have custom easing applied.ExampleThe fo

Seite 253

304Last updated 5/2/2011Chapter 22: HalfEdge objectAvailabilityFlash MX 2004.DescriptionThe HalfEdge object is the directed side of the edge of a Shap

Seite 254

305EXTENDING FLASH PROFESSIONALHalfEdge objectLast updated 5/2/2011ReturnsAn Edge object. DescriptionMethod; gets the Edge object for the HalfEdge obj

Seite 255

306EXTENDING FLASH PROFESSIONALHalfEdge objectLast updated 5/2/2011ParametersNone. ReturnsA HalfEdge object. DescriptionMethod; gets the HalfEdge obje

Seite 256

307EXTENDING FLASH PROFESSIONALHalfEdge objectLast updated 5/2/2011Usage halfEdge.getVertex()ParametersNone. ReturnsA Vertex objectDescriptionMethod;

Seite 257

11EXTENDING FLASH PROFESSIONALIntroductionLast updated 5/2/2011Summary of the DOM structureThe following list displays the DOM structure in outline fo

Seite 258

308EXTENDING FLASH PROFESSIONALHalfEdge objectLast updated 5/2/2011DescriptionRead-only property; an integer with a value of 0 or 1 that specifies the

Seite 259

309Last updated 5/2/2011Chapter 23: Instance objectInheritance Element object > Instance objectAvailabilityFlash MX 2004.DescriptionInstance is

Seite 260

310EXTENDING FLASH PROFESSIONALInstance objectLast updated 5/2/2011instance.libraryItemAvailabilityFlash MX 2004.Usage instance.libraryItemDescription

Seite 261

311Last updated 5/2/2011Chapter 24: Item objectAvailabilityFlash MX 2004.DescriptionThe Item object is an abstract base class. Anything in the library

Seite 262

312EXTENDING FLASH PROFESSIONALItem objectLast updated 5/2/2011item.addData()AvailabilityFlash MX 2004.Usage item.addData(name, type, data)Parametersn

Seite 263

313EXTENDING FLASH PROFESSIONALItem objectLast updated 5/2/2011ExampleThe following example gets the value of the data named myData from the first ite

Seite 264

314EXTENDING FLASH PROFESSIONALItem objectLast updated 5/2/2011item.linkageBaseClassAvailabilityFlash CS3 Professional.Usage item.linkageBaseClassDesc

Seite 265

315EXTENDING FLASH PROFESSIONALItem objectLast updated 5/2/2011For this property to be defined, the item.linkageExportForAS and/or item.linkageExportF

Seite 266

316EXTENDING FLASH PROFESSIONALItem objectLast updated 5/2/2011item.linkageExportInFirstFrameAvailabilityFlash MX 2004.Usage item.linkageExportInFirst

Seite 267

317EXTENDING FLASH PROFESSIONALItem objectLast updated 5/2/2011item.linkageImportForRSAvailabilityFlash MX 2004.Usage item.linkageImportForRSDescripti

Seite 268

12EXTENDING FLASH PROFESSIONALIntroductionLast updated 5/2/2011 07 Edge object (shape.edges array) 08 HalfEdge object

Seite 269

318EXTENDING FLASH PROFESSIONALItem objectLast updated 5/2/2011Usage item.nameDescriptionMethod; a string that specifies the name of the library item,

Seite 270

319Last updated 5/2/2011Chapter 25: Layer objectAvailabilityFlash MX 2004.DescriptionThe Layer object represents a layer in the timeline. The timeline

Seite 271

320EXTENDING FLASH PROFESSIONALLayer objectLast updated 5/2/2011ExampleThe following example stores the value of the first layer in the colorValue var

Seite 272

321EXTENDING FLASH PROFESSIONALLayer objectLast updated 5/2/2011 var frameArray = fl.getDocumentDOM().getTimeline().layers[0].frames; var n = frameA

Seite 273

322EXTENDING FLASH PROFESSIONALLayer objectLast updated 5/2/2011layer.lockedAvailabilityFlash MX 2004.Usage layer.lockedDescriptionProperty; a Boolean

Seite 274

323EXTENDING FLASH PROFESSIONALLayer objectLast updated 5/2/2011DescriptionProperty; a Boolean value that specifies the status of outlines for all obj

Seite 275

324EXTENDING FLASH PROFESSIONALLayer objectLast updated 5/2/2011ExampleThe following example makes all objects in the first layer invisible: fl.getDo

Seite 276

325Last updated 5/2/2011Chapter 26: library objectAvailabilityFlash MX 2004.DescriptionThe library object represents the Library panel. It is a proper

Seite 277

326EXTENDING FLASH PROFESSIONALlibrary objectLast updated 5/2/2011Property summary for the library objectThe following property is available for the l

Seite 278

327EXTENDING FLASH PROFESSIONALlibrary objectLast updated 5/2/2011namePath A string that specifies the name of the item to be added. If the item is i

Seite 279 - • Mac OS X:

13EXTENDING FLASH PROFESSIONALIntroductionLast updated 5/2/2011Sample PolyStar toolA sample JavaScript API script named PolyStar.jsfl is located in th

Seite 280

328EXTENDING FLASH PROFESSIONALlibrary objectLast updated 5/2/2011library.duplicateItem()AvailabilityFlash MX 2004.Usage library.duplicateItem( [ name

Seite 281

329EXTENDING FLASH PROFESSIONALlibrary objectLast updated 5/2/2011ExampleThe following example opens the item circle in the test folder of the library

Seite 282

330EXTENDING FLASH PROFESSIONALlibrary objectLast updated 5/2/2011ReturnsAn integer value representing the item’s zero-based index value. DescriptionM

Seite 283

331EXTENDING FLASH PROFESSIONALlibrary objectLast updated 5/2/2011ParametersnamePath A string that specifies the name of the item. If the item is in

Seite 284

332EXTENDING FLASH PROFESSIONALlibrary objectLast updated 5/2/2011ParameterslinkageName A string that provides the name of the SWF linkage of the roo

Seite 285 - Chapter 18: FLfile object

333EXTENDING FLASH PROFESSIONALlibrary objectLast updated 5/2/2011library.itemsAvailabilityFlash MX 2004.Usage library.itemsDescriptionProperty; an ar

Seite 286 - FLfile.copy()

334EXTENDING FLASH PROFESSIONALlibrary objectLast updated 5/2/2011library.newFolder()AvailabilityFlash MX 2004.Usage library.newFolder([folderPath])Pa

Seite 287 - FLfile.createFolder()

335EXTENDING FLASH PROFESSIONALlibrary objectLast updated 5/2/2011library.selectAll()AvailabilityFlash MX 2004.Usage library.selectAll([bSelectAll])Pa

Seite 288 - FLfile.exists()

336EXTENDING FLASH PROFESSIONALlibrary objectLast updated 5/2/2011ReturnsA Boolean value: true if the specified item exists; false otherwise.Descripti

Seite 289 - FLfile.getAttributes()

337EXTENDING FLASH PROFESSIONALlibrary objectLast updated 5/2/2011Usage library.setItemProperty(property, value)Parametersproperty A string that is t

Seite 290 - FLfile.getCreationDateObj()

14Last updated 5/2/2011Chapter 2: Top-Level Functions and MethodsAbout this sectionThis section describes the top-level functions and methods that are

Seite 291 - FLfile.getModificationDate()

338Last updated 5/2/2011Chapter 27: Math objectAvailabilityFlash MX 2004.DescriptionThe Math object is available as a read-only property of the flash

Seite 292

339EXTENDING FLASH PROFESSIONALMath objectLast updated 5/2/2011Math.invertMatrix()AvailabilityFlash MX 2004.Usage Math.invertMatrix(mat)Parametersmat

Seite 293 - FLfile.listFolder()

340EXTENDING FLASH PROFESSIONALMath objectLast updated 5/2/2011ExampleThe following example stores the value for the distance between pt1 and pt2 in t

Seite 294 - FLfile.platformPathToURI()

341Last updated 5/2/2011Chapter 28: Matrix objectAvailabilityFlash MX 2004.DescriptionThe Matrix object represents a transformation matrix. Property s

Seite 295 - FLfile.remove()

342EXTENDING FLASH PROFESSIONALMatrix objectLast updated 5/2/2011 var mat = fl.getDocumentDOM().selection[0].matrix; mat.a = 0.5; mat.b = 0.8; m

Seite 296 - FLfile.setAttributes()

343EXTENDING FLASH PROFESSIONALMatrix objectLast updated 5/2/2011ExampleSee the matrix.b example.matrix.dAvailabilityFlash MX 2004.Usage matrix.dDescr

Seite 297 - FLfile object

344EXTENDING FLASH PROFESSIONALMatrix objectLast updated 5/2/2011Usage matrix.tyDescriptionProperty; a floating-point value that specifies the y-axis

Seite 298 - FLfile.write()

345Last updated 5/2/2011Chapter 29: outputPanel objectAvailabilityFlash MX 2004.DescriptionThis object represents the Output panel, which displays tro

Seite 299

346EXTENDING FLASH PROFESSIONALoutputPanel objectLast updated 5/2/2011outputPanel.save()AvailabilityFlash MX 2004; bUseSystemEncoding parameter added

Seite 300 - Chapter 19: folderItem object

347EXTENDING FLASH PROFESSIONALoutputPanel objectLast updated 5/2/2011Returns Nothing. DescriptionMethod; sends a text string to the Output panel, ter

Seite 301 - Chapter 20: fontItem object

15EXTENDING FLASH PROFESSIONALTop-Level Functions and MethodsLast updated 5/2/2011DescriptionFunction; called when the extensible tool becomes active

Seite 302

348Last updated 5/2/2011Chapter 30: Oval objectInheritance Element object > Shape object > Oval objectAvailabilityFlash CS3 Professional.Desc

Seite 303

349EXTENDING FLASH PROFESSIONALOval objectLast updated 5/2/2011OvalObject.endAngleAvailabilityFlash CS3 Professional.Usage OvalObject.endAngleDescript

Seite 304

350EXTENDING FLASH PROFESSIONALOval objectLast updated 5/2/2011OvalObject.startAngleAvailabilityFlash CS3 Professional.Usage OvalObject.startAngleDesc

Seite 305

351Last updated 5/2/2011Chapter 31: Parameter objectAvailabilityFlash MX 2004.DescriptionThe Parameter object type is accessed from the componentInsta

Seite 306

352EXTENDING FLASH PROFESSIONALParameter objectLast updated 5/2/2011parameter.insertItem()AvailabilityFlash MX 2004.Usage parameter.insertItem(index,

Seite 307 - Chapter 21: Frame object

353EXTENDING FLASH PROFESSIONALParameter objectLast updated 5/2/2011ExampleThe following example sets the first parameter for a Slide, which is the au

Seite 308

354EXTENDING FLASH PROFESSIONALParameter objectLast updated 5/2/2011ExampleThe following example removes the element at index 1 from the labelPlacemen

Seite 309

355EXTENDING FLASH PROFESSIONALParameter objectLast updated 5/2/2011parameter.valueTypeAvailabilityFlash MX 2004.Usage parameter.valueTypeDescriptionR

Seite 310

356Last updated 5/2/2011Chapter 32: Path objectAvailabilityFlash MX 2004.DescriptionThe Path object defines a sequence of line segments (straight, cur

Seite 311

357EXTENDING FLASH PROFESSIONALPath objectLast updated 5/2/2011yAnchor A floating-point number that specifies the y position of the first control poi

Seite 312

16EXTENDING FLASH PROFESSIONALTop-Level Functions and MethodsLast updated 5/2/2011Usage function configureTool() { // statements }ParametersNone.

Seite 313

358EXTENDING FLASH PROFESSIONALPath objectLast updated 5/2/2011ExampleThe following example creates a new path, stores it in the myPath variable, and

Seite 314

359EXTENDING FLASH PROFESSIONALPath objectLast updated 5/2/2011DescriptionMethod; removes all points from the path. ExampleThe following example remov

Seite 315

360EXTENDING FLASH PROFESSIONALPath objectLast updated 5/2/2011bSupressStroke A Boolean value that, if set to true, suppresses the stroke that would

Seite 316

361EXTENDING FLASH PROFESSIONALPath objectLast updated 5/2/2011 var myPath = fl.drawingLayer.newPath(); myPath.addPoint(0, 0); myPath.addPoint(0,

Seite 317

362Last updated 5/2/2011Chapter 33: presetItem objectAvailabilityFlash CS4 Professional.DescriptionThe presetItem object represents an item (preset or

Seite 318

363EXTENDING FLASH PROFESSIONALpresetItem objectLast updated 5/2/2011fl.outputPanel.clear(); var presetItemArray=fl.presetPanel.items; for (i=0;i<

Seite 319

364EXTENDING FLASH PROFESSIONALpresetItem objectLast updated 5/2/2011presetItem.nameAvailabilityFlash CS4 Professional.Usage presetItem.nameDescriptio

Seite 320

365EXTENDING FLASH PROFESSIONALpresetItem objectLast updated 5/2/2011Usage presetItem.pathDescriptionRead-only property: a string that represents the

Seite 321

366Last updated 5/2/2011Chapter 34: presetPanel objectAvailabilityFlash CS4 Professional.DescriptionThe presetPanel object represents the Motion Prese

Seite 322

367EXTENDING FLASH PROFESSIONALpresetPanel objectLast updated 5/2/2011presetPanel.addNewItem()AvailabilityFlash CS4 Professional. Usagefl. presetPane

Seite 323

17EXTENDING FLASH PROFESSIONALTop-Level Functions and MethodsLast updated 5/2/2011DescriptionMethod; displays a string in a modal Alert dialog box, al

Seite 324

368EXTENDING FLASH PROFESSIONALpresetPanel objectLast updated 5/2/2011DescriptionMethod; applies the specified or currently selected preset to the cur

Seite 325

369EXTENDING FLASH PROFESSIONALpresetPanel objectLast updated 5/2/2011presetPanel.deleteItem()AvailabilityFlash CS4 Professional.Usage presetPanel.del

Seite 326 - Chapter 22: HalfEdge object

370EXTENDING FLASH PROFESSIONALpresetPanel objectLast updated 5/2/2011DescriptionMethod; expands or collapses the currently selected folder or folders

Seite 327

371EXTENDING FLASH PROFESSIONALpresetPanel objectLast updated 5/2/2011//Exports fly-in-left to C:\My Presets\fly-in-left.xml fl.presetPanel.exportIte

Seite 328

372EXTENDING FLASH PROFESSIONALpresetPanel objectLast updated 5/2/2011presetPanel.getSelectedItems()AvailabilityFlash CS4 Professional.UsagepresetPane

Seite 329

373EXTENDING FLASH PROFESSIONALpresetPanel objectLast updated 5/2/2011DescriptionMethod; adds a preset to the Motion Presets panel from a specified XM

Seite 330

374EXTENDING FLASH PROFESSIONALpresetPanel objectLast updated 5/2/2011UsagepresetPanel.moveToFolder(folderPath [, namePath] )ParametersfolderPath A s

Seite 331 - Chapter 23: Instance object

375EXTENDING FLASH PROFESSIONALpresetPanel objectLast updated 5/2/2011Note: You can’t add folders to the Default Presets folder.ExampleThe following e

Seite 332

376EXTENDING FLASH PROFESSIONALpresetPanel objectLast updated 5/2/2011UsagepresetPanel.selectItem(namePath [, bReplaceCurrentSelection [, bSelect] ])P

Seite 333 - Chapter 24: Item object

377Last updated 5/2/2011Chapter 35: Rectangle objectInheritance Element object > Shape object > Rectangle objectAvailabilityFlash CS3 Profess

Seite 334

ivEXTENDING FLASH PROFESSIONALContentsLast updated 5/2/2011bitmapItem.originalCompressionType . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 335

18EXTENDING FLASH PROFESSIONALTop-Level Functions and MethodsLast updated 5/2/2011Usage function keyDown() { // statements }ParametersNone. Retur

Seite 336

378EXTENDING FLASH PROFESSIONALRectangle objectLast updated 5/2/2011RectangleObject.bottomRightRadius AvailabilityFlash CS3 Professional.Usage Rectang

Seite 337

379EXTENDING FLASH PROFESSIONALRectangle objectLast updated 5/2/2011DescriptionRead-only property; a float value that sets the radius of all corners o

Seite 338

380Last updated 5/2/2011Chapter 36: Shape objectInheritance Element object > Shape objectAvailabilityFlash MX 2004.DescriptionThe Shape object i

Seite 339

381EXTENDING FLASH PROFESSIONALShape objectLast updated 5/2/2011shape.beginEdit()AvailabilityFlash MX 2004.Usage shape.beginEdit()ParametersNone. Retu

Seite 340

382EXTENDING FLASH PROFESSIONALShape objectLast updated 5/2/2011shape.deleteEdge()AvailabilityFlash MX 2004.Usage shape.deleteEdge(index)Parametersind

Seite 341 - Chapter 25: Layer object

383EXTENDING FLASH PROFESSIONALShape objectLast updated 5/2/2011ParametersNone. Returns Nothing. DescriptionMethod; defines the end of an edit session

Seite 342

384EXTENDING FLASH PROFESSIONALShape objectLast updated 5/2/2011shape.isDrawingObjectAvailabilityFlash 8.Usage shape.isDrawingObjectDescriptionRead-on

Seite 343

385EXTENDING FLASH PROFESSIONALShape objectLast updated 5/2/2011shape.isOvalObjectAvailabilityFlash CS3 Professional.Usage shape.isOvalObjectDescripti

Seite 344

386EXTENDING FLASH PROFESSIONALShape objectLast updated 5/2/2011Usage shape.membersDescriptionRead-only property; an array of objects in the currently

Seite 345

387EXTENDING FLASH PROFESSIONALShape objectLast updated 5/2/2011DescriptionRead-only property; an array of Vertex objects (see Vertex object).ExampleT

Seite 346

19EXTENDING FLASH PROFESSIONALTop-Level Functions and MethodsLast updated 5/2/2011 function keyUp() { fl.trace("Key is released"); }See

Seite 347 - Chapter 26: library object

388Last updated 5/2/2011Chapter 37: SoundItem objectInheritance Item object > SoundItem objectAvailabilityFlash MX 2004.DescriptionThe SoundItem

Seite 348

389EXTENDING FLASH PROFESSIONALSoundItem objectLast updated 5/2/2011soundItem.bitRateAvailabilityFlash MX 2004.Usage soundItem.bitRateDescriptionPrope

Seite 349

390EXTENDING FLASH PROFESSIONALSoundItem objectLast updated 5/2/2011If you want to specify a value for this property, set soundItem.useImportedMP3Qual

Seite 350

391EXTENDING FLASH PROFESSIONALSoundItem objectLast updated 5/2/2011DescriptionProperty; a Boolean value available only for MP3 and Raw compression ty

Seite 351

392EXTENDING FLASH PROFESSIONALSoundItem objectLast updated 5/2/2011Usage soundItem.fileLastModifiedDateDescriptionRead-only property: a string contai

Seite 352

393EXTENDING FLASH PROFESSIONALSoundItem objectLast updated 5/2/2011Usage soundItem.qualityDescriptionProperty; a string that specifies the playback q

Seite 353

394EXTENDING FLASH PROFESSIONALSoundItem objectLast updated 5/2/2011DescriptionRead-only property: a Boolean value of true if the file that was import

Seite 354

395EXTENDING FLASH PROFESSIONALSoundItem objectLast updated 5/2/2011DescriptionRead-only property: a string, expressed as a file:/// URI, that represe

Seite 355

396Last updated 5/2/2011Chapter 38: Stroke objectAvailabilityFlash MX 2004.DescriptionThe Stroke object contains all the settings for a stroke, includ

Seite 356

397EXTENDING FLASH PROFESSIONALStroke objectLast updated 5/2/2011stroke.breakAtCornersAvailabilityFlash MX 2004. Deprecated in Flash CS3 in favor of s

Seite 357

20EXTENDING FLASH PROFESSIONALTop-Level Functions and MethodsLast updated 5/2/2011Parameterspt A point that specifies the location of the mouse when

Seite 358

398EXTENDING FLASH PROFESSIONALStroke objectLast updated 5/2/2011stroke.colorAvailabilityFlash MX 2004. In Flash 8 and later, this property is depreca

Seite 359

399EXTENDING FLASH PROFESSIONALStroke objectLast updated 5/2/2011 var myStroke = fl.getDocumentDOM().getCustomStroke(); myStroke.style = "hatc

Seite 360 - Chapter 27: Math object

400EXTENDING FLASH PROFESSIONALStroke objectLast updated 5/2/2011stroke.densityAvailabilityFlash MX 2004.Usage stroke.densityDescriptionProperty; a st

Seite 361 - Math.pointDistance()

401EXTENDING FLASH PROFESSIONALStroke objectLast updated 5/2/2011stroke.dotSpaceAvailabilityFlash MX 2004.Usage stroke.dotSpaceDescriptionProperty; an

Seite 362

402EXTENDING FLASH PROFESSIONALStroke objectLast updated 5/2/2011stroke.jiggleAvailabilityFlash MX 2004.Usage stroke.jiggleDescriptionProperty; a stri

Seite 363 - Chapter 28: Matrix object

403EXTENDING FLASH PROFESSIONALStroke objectLast updated 5/2/2011Usage stroke.lengthDescriptionProperty; a string that specifies the length of a hatch

Seite 364

404EXTENDING FLASH PROFESSIONALStroke objectLast updated 5/2/2011Usage stroke.patternDescriptionProperty; a string that specifies the pattern of a rag

Seite 365

405EXTENDING FLASH PROFESSIONALStroke objectLast updated 5/2/2011DescriptionProperty; a string that specifies the type of scale to be applied to the s

Seite 366

406EXTENDING FLASH PROFESSIONALStroke objectLast updated 5/2/2011 var myStroke = fl.getDocumentDOM().getCustomStroke(); myStroke.style = "hatc

Seite 367

407EXTENDING FLASH PROFESSIONALStroke objectLast updated 5/2/2011• If value is "hatched", there are six additional properties: hatchThicknes

Seite 368

21EXTENDING FLASH PROFESSIONALTop-Level Functions and MethodsLast updated 5/2/2011 function mouseMove() { fl.trace("moving"); } f

Seite 369

408EXTENDING FLASH PROFESSIONALStroke objectLast updated 5/2/2011 var myStroke = fl.getDocumentDOM().getCustomStroke(); myStroke.style = "stip

Seite 370 - Chapter 30: Oval object

409EXTENDING FLASH PROFESSIONALStroke objectLast updated 5/2/2011 var myStroke = fl.getDocumentDOM().getCustomStroke(); myStroke.style = "ragg

Seite 371 - OvalObject.innerRadius

410Last updated 5/2/2011Chapter 39: swfPanel objectAvailabilityFlash CS4 Professional.DescriptionThe swfPanel object represents a Window SWF panel. Wi

Seite 372 - OvalObject.startAngle

411EXTENDING FLASH PROFESSIONALswfPanel objectLast updated 5/2/2011ReturnsEither null or a string that is returned by the function call. The function

Seite 373 - Chapter 31: Parameter object

412EXTENDING FLASH PROFESSIONALswfPanel objectLast updated 5/2/2011function callMyPanel(panelName, arg) { if(fl.swfPanels.length > 0){ for(x = 0

Seite 374

413EXTENDING FLASH PROFESSIONALswfPanel objectLast updated 5/2/2011fl.trace(fl.swfPanels[0].name);See alsoswfPanel.path, fl.swfPanelsswfPanel.pathAvai

Seite 375

414EXTENDING FLASH PROFESSIONALswfPanel objectLast updated 5/2/20114 Run the script below from the Commands menu (put a JSFL file containing the code

Seite 376

415Last updated 5/2/2011Chapter 40: SymbolInstance objectInheritance Element object > Instance object > SymbolInstance objectAvailabilityFlas

Seite 377

416EXTENDING FLASH PROFESSIONALSymbolInstance objectLast updated 5/2/2011symbolInstance.accNameAvailabilityFlash MX 2004.Usage symbolInstance.accNameD

Seite 378 - Chapter 32: Path object

417EXTENDING FLASH PROFESSIONALSymbolInstance objectLast updated 5/2/2011 fl.getDocumentDOM().selection[0].accName = "Home Button";symbolIns

Seite 379

22EXTENDING FLASH PROFESSIONALTop-Level Functions and MethodsLast updated 5/2/2011ParametersNone. ReturnsNothing. DescriptionFunction; called when the

Seite 380

418EXTENDING FLASH PROFESSIONALSymbolInstance objectLast updated 5/2/2011Usage symbolInstance.bitmapRenderModeDescriptionProperty; a string that sets

Seite 381

419EXTENDING FLASH PROFESSIONALSymbolInstance objectLast updated 5/2/2011symbolInstance.buttonTrackingAvailabilityFlash MX 2004.Usage symbolInstance.b

Seite 382

420EXTENDING FLASH PROFESSIONALSymbolInstance objectLast updated 5/2/2011DescriptionProperty; an integer that is part of the color transformation for

Seite 383

421EXTENDING FLASH PROFESSIONALSymbolInstance objectLast updated 5/2/2011symbolInstance.colorBluePercentAvailabilityFlash MX 2004.Usage symbolInstance

Seite 384 - Chapter 33: presetItem object

422EXTENDING FLASH PROFESSIONALSymbolInstance objectLast updated 5/2/2011ExampleThe following example sets the colorGreenPercent of the selected symbo

Seite 385

423EXTENDING FLASH PROFESSIONALSymbolInstance objectLast updated 5/2/2011Usage symbolInstance.colorRedPercentDescriptionProperty; part of the color tr

Seite 386

424EXTENDING FLASH PROFESSIONALSymbolInstance objectLast updated 5/2/2011ExampleThe following example traces the name of the filter at index 0. If it

Seite 387

425EXTENDING FLASH PROFESSIONALSymbolInstance objectLast updated 5/2/2011ExampleThe following example checks to see if the children of the object are

Seite 388

426EXTENDING FLASH PROFESSIONALSymbolInstance objectLast updated 5/2/2011 fl.getDocumentDOM().selection[0].shortcut = "Ctrl+i";symbolInstanc

Seite 389

427EXTENDING FLASH PROFESSIONALSymbolInstance objectLast updated 5/2/2011symbolInstance.tabIndexAvailabilityFlash MX 2004.Usage symbolInstance.tabInde

Seite 390

23EXTENDING FLASH PROFESSIONALTop-Level Functions and MethodsLast updated 5/2/2011setCursor()AvailabilityFlash MX 2004.Usage function setCursor() {

Seite 391

428EXTENDING FLASH PROFESSIONALSymbolInstance objectLast updated 5/2/2011DescriptionProperty; a boolean value that sets the Visible property of an obj

Seite 392

429Last updated 5/2/2011Chapter 41: SymbolItem objectInheritance Item object > SymbolItem objectAvailabilityFlash MX 2004.DescriptionThe SymbolI

Seite 393

430EXTENDING FLASH PROFESSIONALSymbolItem objectLast updated 5/2/2011Returns Nothing. DescriptionMethod; converts a symbol item in the library to a co

Seite 394

431EXTENDING FLASH PROFESSIONALSymbolItem objectLast updated 5/2/2011ParametersoutputURI A string, expressed as a file:/// URI, that specifies the SW

Seite 395

432EXTENDING FLASH PROFESSIONALSymbolItem objectLast updated 5/2/2011ExampleThe following example specifies the locations of the 9-slice guides: fl.ge

Seite 396

433EXTENDING FLASH PROFESSIONALSymbolItem objectLast updated 5/2/2011symbolItem.sourceLibraryNameAvailabilityFlash MX 2004.Usage symbolItem.sourceLibr

Seite 397 - • No item is selected

434EXTENDING FLASH PROFESSIONALSymbolItem objectLast updated 5/2/2011DescriptionRead-only property; a Timeline object. ExampleThe following example ob

Seite 398

435Last updated 5/2/2011Chapter 42: Text objectInheritance Element object > Text objectAvailabilityFlash MX 2004.DescriptionThe Text object repr

Seite 399 - Chapter 35: Rectangle object

436EXTENDING FLASH PROFESSIONALText objectLast updated 5/2/2011text.accNameAvailabilityFlash MX 2004.Usage text.accNameDescriptionProperty; a string t

Seite 400 - RectangleObject.lockFlag

437EXTENDING FLASH PROFESSIONALText objectLast updated 5/2/2011 var doc = fl.getDocumentDOM(); var theName = doc.selection[0].accName; The following

Seite 401

24Last updated 5/2/2011Chapter 3: actionsPanel objectAvailabilityFlash CS3 Professional.DescriptionThe actionsPanel object, which represents the curre

Seite 402 - Chapter 36: Shape object

438EXTENDING FLASH PROFESSIONALText objectLast updated 5/2/2011text.autoExpandAvailabilityFlash MX 2004.Usage text.autoExpandDescriptionProperty; a Bo

Seite 403

439EXTENDING FLASH PROFESSIONALText objectLast updated 5/2/2011ExampleThe following example retrieves the description of the object: var doc = fl.getD

Seite 404

440EXTENDING FLASH PROFESSIONALText objectLast updated 5/2/2011ExampleThe following example assumes that the first or only item in the current selecti

Seite 405

441EXTENDING FLASH PROFESSIONALText objectLast updated 5/2/2011ExampleThe following example shows how you can use the customThicknessSharpness value t

Seite 406

442EXTENDING FLASH PROFESSIONALText objectLast updated 5/2/2011ExampleThe following example gets the font size of the currently selected text field an

Seite 407

443EXTENDING FLASH PROFESSIONALText objectLast updated 5/2/2011text.lengthAvailabilityFlash MX 2004.Usage text.lengthDescriptionRead-only property; an

Seite 408

444EXTENDING FLASH PROFESSIONALText objectLast updated 5/2/2011This property works only with input text; if used with other text types, the property g

Seite 409

445EXTENDING FLASH PROFESSIONALText objectLast updated 5/2/2011text.scrollableAvailabilityFlash MX 2004.Usage text.scrollableDescriptionProperty; a Bo

Seite 410 - Chapter 37: SoundItem object

446EXTENDING FLASH PROFESSIONALText objectLast updated 5/2/2011DescriptionProperty; a zero-based integer that specifies the end of a text subselection

Seite 411

447EXTENDING FLASH PROFESSIONALText objectLast updated 5/2/2011For a list of possible values for attrName and attrValue, see the Property summary for

Seite 412

25EXTENDING FLASH PROFESSIONALactionsPanel objectLast updated 5/2/2011ExampleThe following example displays the class assigned to the variable myVar,

Seite 413

448EXTENDING FLASH PROFESSIONALText objectLast updated 5/2/2011DescriptionProperty; changes the text string within this Text object. If you omit the o

Seite 414

449EXTENDING FLASH PROFESSIONALText objectLast updated 5/2/2011text.silentAvailabilityFlash MX 2004.Usage text.silentDescriptionProperty; a Boolean va

Seite 415

450EXTENDING FLASH PROFESSIONALText objectLast updated 5/2/2011Usage text.textRunsDescriptionRead-only property; an array of TextRun objects (see Text

Seite 416

451EXTENDING FLASH PROFESSIONALText objectLast updated 5/2/2011text.variableNameAvailabilityFlash MX 2004.Usage text.variableNameDescriptionProperty;

Seite 417

452Last updated 5/2/2011Chapter 43: TextAttrs objectAvailabilityFlash MX 2004.DescriptionThe TextAttrs object contains all the properties of text that

Seite 418 - Chapter 38: Stroke object

453EXTENDING FLASH PROFESSIONALTextAttrs objectLast updated 5/2/2011textAttrs.aliasTextAvailabilityFlash MX 2004.Usage textAttrs.aliasTextDescriptionP

Seite 419

454EXTENDING FLASH PROFESSIONALTextAttrs objectLast updated 5/2/2011DescriptionProperty; a Boolean value that determines whether Flash uses (true) or

Seite 420

455EXTENDING FLASH PROFESSIONALTextAttrs objectLast updated 5/2/2011textAttrs.characterSpacingAvailabilityFlash MX 2004. Deprecated in Flash 8 in favo

Seite 421

456EXTENDING FLASH PROFESSIONALTextAttrs objectLast updated 5/2/2011DescriptionProperty; the color of the fill, in one of the following formats:• A st

Seite 422

457EXTENDING FLASH PROFESSIONALTextAttrs objectLast updated 5/2/2011textAttrs.leftMarginAvailabilityFlash MX 2004.Usage textAttrs.leftMarginDescriptio

Seite 423

26EXTENDING FLASH PROFESSIONALactionsPanel objectLast updated 5/2/2011ParametersNone.ReturnsA string that contains the text that is currently selected

Seite 424

458EXTENDING FLASH PROFESSIONALTextAttrs objectLast updated 5/2/2011DescriptionProperty; an integer that specifies the line spacing (leading) of the p

Seite 425

459EXTENDING FLASH PROFESSIONALTextAttrs objectLast updated 5/2/2011textAttrs.sizeAvailabilityFlash MX 2004.Usage textAttrs.sizeDescriptionProperty; a

Seite 426

460EXTENDING FLASH PROFESSIONALTextAttrs objectLast updated 5/2/2011DescriptionProperty; a string that represents the URL property of the text field.

Seite 427

461Last updated 5/2/2011Chapter 44: TextRun objectAvailabilityFlash MX 2004.DescriptionThe TextRun object represents a run of characters that have att

Seite 428 - Stroke object

462EXTENDING FLASH PROFESSIONALTextRun objectLast updated 5/2/2011DescriptionProperty; the text contained in the TextRun object.ExampleThe following e

Seite 429

463Last updated 5/2/2011Chapter 45: Timeline objectAvailabilityFlash MX 2004.DescriptionThe Timeline object represents the Flash timeline, which can b

Seite 430

464EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011timeline.deleteLayer() Deletes a layer.timeline.duplicateLayers() Duplicates the se

Seite 431

465EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011Property summary The following properties are available for the Timeline object:tim

Seite 432 - Chapter 39: swfPanel object

466EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011Usage timeline.addNewLayer([name] [, layerType [, bAddAbove]]) Parametersname A st

Seite 433 - • Center aligned

467EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011ExampleThe following example clears the frames from Frame 6 up to, but not includin

Seite 434

27EXTENDING FLASH PROFESSIONALactionsPanel objectLast updated 5/2/2011actionsPanel.hasSelection()AvailabilityFlash CS3 Professional.Usage actionsPanel

Seite 435

468EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011ParametersstartFrameIndex A zero-based index that specifies the starting frame to

Seite 436

469EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011 fl.getDocumentDOM().getTimeline().convertToKeyframes();The following example conve

Seite 437

470EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011Usage timeline.copyLayers([startLayerIndex [, endLayerIndex]])ParametersstartLayerI

Seite 438

471EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011 fl.getDocumentDOM().getTimeline().copyMotion(); See alsotimeline.copyMotionAsAS3()

Seite 439

472EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011endFrame Specifies the frame at which to stop creating motion objects; the range o

Seite 440 - • “none”

473EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011ExampleThe following example converts the shape in the first frame up to, but not i

Seite 441

474EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011timeline.cutFrames()AvailabilityFlash MX 2004.Usage timeline.cutFrames([startFrameI

Seite 442

475EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011endLayerIndex Optional. A zero-based index that specifies the layer at which to st

Seite 443

476EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011timeline.duplicateLayers()AvailabilityFlash CS5.5 Professional.Usage timeline.dupli

Seite 444

477EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011bRecurseNestedParents A Boolean value that, if set to true, causes all the layers

Seite 445

vEXTENDING FLASH PROFESSIONALContentsLast updated 5/2/2011document.align() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 446

28EXTENDING FLASH PROFESSIONALactionsPanel objectLast updated 5/2/2011DescriptionMethod; replaces the currently selected text with the text specified

Seite 447

478EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011DescriptionMethod; finds an array of indexes for the layers with the given name. Th

Seite 448

479EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011endFrameIndex A zero-based index that specifies the end of the range of frames to

Seite 449

480EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011timeline.getLayerProperty()AvailabilityFlash MX 2004.Usage timeline.getLayerPropert

Seite 450

481EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011 var timeline = fl.getDocumentDOM().getTimeline(); timeline.setSelectedFrames(5,1

Seite 451 - Chapter 41: SymbolItem object

482EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011If the specified or selected frame is a regular frame, the keyframe is inserted at

Seite 452

483EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011If no parameters are specified, this method works as follows:• If one or more frame

Seite 453

484EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011ParametersframeNumIndex A zero-based index that specifies the frame index at which

Seite 454

485EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011Usage timeline.layersDescriptionRead-only property; an array of layer objects. Exam

Seite 455

486EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011ExampleThe following example retrieves the first scene name: var sceneName = fl.get

Seite 456

487EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011Usage timeline.pasteLayers([layerIndex])ParameterslayerIndex Optional. A zero-base

Seite 457 - Chapter 42: Text object

29EXTENDING FLASH PROFESSIONALactionsPanel objectLast updated 5/2/2011actionsPanel.setSelection()AvailabilityFlash CS3 Professional.Usage actionsPanel

Seite 458

488EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011 fl.getDocumentDOM().getTimeline().pasteMotion();See alsotimeline.copyMotion()timel

Seite 459

489EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011ParametersstartFrame Specifies the first frame at which to start removing motion o

Seite 460

490EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011Returns Nothing. DescriptionMethod; moves the first specified layer before or after

Seite 461

491EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011timeline.selectAllFrames()AvailabilityFlash MX 2004.Usage timeline.selectAllFrames(

Seite 462

492EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011DescriptionMethod; sets the property of the Frame object for the selected frames. E

Seite 463

493EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011timeline.setLayerProperty()AvailabilityFlash MX 2004.Usage timeline.setLayerPropert

Seite 464

494EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011Returns Nothing. DescriptionMethod; selects a range of frames in the current layer

Seite 465

495EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011ExampleThe following example selects the top layer: fl.getDocumentDOM().getTimelin

Seite 466

496EXTENDING FLASH PROFESSIONALTimeline objectLast updated 5/2/2011DescriptionMethod; starts automatic playback of the timeline if it is currently pla

Seite 467

497Last updated 5/2/2011Chapter 46: ToolObj objectAvailabilityFlash MX 2004.DescriptionA ToolObj object represents an individual tool in the Tools pan

Seite 468

30EXTENDING FLASH PROFESSIONALactionsPanel objectLast updated 5/2/2011DescriptionMethod; clears any text in the Actions panel and then adds the text s

Seite 469

498EXTENDING FLASH PROFESSIONALToolObj objectLast updated 5/2/2011Usage toolObj.depthDescriptionRead-only property; an integer that specifies the dept

Seite 470

499EXTENDING FLASH PROFESSIONALToolObj objectLast updated 5/2/2011bEnable A Boolean value that determines whether to enable (true) or disable (false)

Seite 471

500EXTENDING FLASH PROFESSIONALToolObj objectLast updated 5/2/2011ExampleThe following commands in the mouseDown() method of a tool’s JavaScript file

Seite 472

501EXTENDING FLASH PROFESSIONALToolObj objectLast updated 5/2/2011DescriptionMethod; sets the string that appears in the pop-up menu as the name for t

Seite 473

502EXTENDING FLASH PROFESSIONALToolObj objectLast updated 5/2/2011 <properties> <property name="Style" variable="style&q

Seite 474 - Chapter 43: TextAttrs object

503EXTENDING FLASH PROFESSIONALToolObj objectLast updated 5/2/2011ExampleThe following example specifies that the shape Property inspector should be u

Seite 475

504EXTENDING FLASH PROFESSIONALToolObj objectLast updated 5/2/2011DescriptionMethod; sets the tooltip that appears when the mouse is held over the too

Seite 476

505EXTENDING FLASH PROFESSIONALToolObj objectLast updated 5/2/2011bShow A Boolean value that determines whether to show or hide the specified control

Seite 477

506Last updated 5/2/2011Chapter 47: Tools objectAvailabilityFlash MX 2004.DescriptionThe Tools object is accessible from the flash object (fl.tools).

Seite 478

507EXTENDING FLASH PROFESSIONALTools objectLast updated 5/2/2011Usage tools.activeToolDescriptionRead-only property; returns the ToolObj object for th

Seite 479

31Last updated 5/2/2011Chapter 4: BitmapInstance objectInheritance Element object > Instance object > BitmapInstance objectAvailabilityFlash

Seite 480

508EXTENDING FLASH PROFESSIONALTools objectLast updated 5/2/2011DescriptionMethod; takes two points and returns a new adjusted or constrained point. I

Seite 481

509EXTENDING FLASH PROFESSIONALTools objectLast updated 5/2/2011ExampleThe following example displays the integer value of the most recently pressed k

Seite 482

510EXTENDING FLASH PROFESSIONALTools objectLast updated 5/2/2011tools.penLocAvailabilityFlash MX 2004.Usage tools.penLocDescriptionRead-only property;

Seite 483 - Chapter 44: TextRun object

511EXTENDING FLASH PROFESSIONALTools objectLast updated 5/2/2011tools.setCursor()AvailabilityFlash MX 2004.Usage tools.setCursor(cursor)Parameterscurs

Seite 484

512EXTENDING FLASH PROFESSIONALTools objectLast updated 5/2/2011 var isShiftDown = fl.tools.shiftIsDown;tools.snapPoint()AvailabilityFlash MX 2004.Usa

Seite 485 - Chapter 45: Timeline object

513Last updated 5/2/2011Chapter 48: Vertex objectAvailabilityFlash MX 2004.DescriptionThe Vertex object is the part of the shape data structure that h

Seite 486

514EXTENDING FLASH PROFESSIONALVertex objectLast updated 5/2/2011 var shape = fl.getDocumentDOM().selection[0]; var hEdge = shape.edges[0].getHalfEd

Seite 487

515EXTENDING FLASH PROFESSIONALVertex objectLast updated 5/2/2011DescriptionRead-only property; the x location of the vertex, in pixels. ExampleThe fo

Seite 488

516Last updated 5/2/2011Chapter 49: VideoItem objectInheritance Item object > VideoItem objectAvailabilityFlash MX 2004.DescriptionThe VideoItem

Seite 489

517EXTENDING FLASH PROFESSIONALVideoItem objectLast updated 5/2/2011ReturnsA Boolean value of true if the file is exported successfully; false otherwi

Seite 490

32EXTENDING FLASH PROFESSIONALBitmapInstance objectLast updated 5/2/2011The byte array is meaningful only when referenced by a DLL or shared library.

Seite 491

518EXTENDING FLASH PROFESSIONALVideoItem objectLast updated 5/2/2011DescriptionRead-only property: a Boolean value of true if the file that was import

Seite 492

519EXTENDING FLASH PROFESSIONALVideoItem objectLast updated 5/2/2011ExampleThe following example displays the name and source file path of any items i

Seite 493

520Last updated 5/2/2011Chapter 50: XMLUI objectAvailabilityFlash MX 2004.DescriptionFlash 8 supports custom dialog boxes written in a subset of the X

Seite 494

521EXTENDING FLASH PROFESSIONALXMLUI objectLast updated 5/2/2011ParametersNone. Returns Nothing. DescriptionMethod; closes the current XMLUI dialog bo

Seite 495

522EXTENDING FLASH PROFESSIONALXMLUI objectLast updated 5/2/2011ReturnsA string that represents the value of the specified property. In cases where yo

Seite 496

523EXTENDING FLASH PROFESSIONALXMLUI objectLast updated 5/2/2011xmlui.getEnabled()AvailabilityFlash 8.Usage xmlui.getEnabled(controlID)Parameterscontr

Seite 497

524EXTENDING FLASH PROFESSIONALXMLUI objectLast updated 5/2/2011 var isVisible = fl.xmlui.getVisible("myListBox"); fl.trace(isVisible);See

Seite 498

525EXTENDING FLASH PROFESSIONALXMLUI objectLast updated 5/2/2011elementItem A JavaScript object with a string property named label and an optional st

Seite 499

526EXTENDING FLASH PROFESSIONALXMLUI objectLast updated 5/2/2011 var nameArray = new Array("January", "February", "March"

Seite 500

527EXTENDING FLASH PROFESSIONALXMLUI objectLast updated 5/2/2011ParameterscontrolID A string that specifies the ID attribute of the control you want

Seite 501

33EXTENDING FLASH PROFESSIONALBitmapInstance objectLast updated 5/2/2011bitmapInstance.setBits()AvailabilityFlash MX 2004.Usage bitmapInstance.setBits

Seite 502

528Last updated 5/2/2011Chapter 51: C-Level ExtensibilityThis chapter describes the C-level extensibility mechanism, which lets you implement Adobe Fl

Seite 503

529EXTENDING FLASH PROFESSIONALC-Level ExtensibilityLast updated 5/2/2011• Mac OS X:Macintosh HD/Users/username/Library/Application Support/Adobe/Fla

Seite 504

530EXTENDING FLASH PROFESSIONALC-Level ExtensibilityLast updated 5/2/2011 /* JSBool JS_DefineFunction(unsigned short *name, JSNative call, unsigned in

Seite 505 - Timeline object

531EXTENDING FLASH PROFESSIONALC-Level ExtensibilityLast updated 5/2/2011 /* long JS_GetArrayLength(JSContext *cx, JSObject *obj) */ #define JS_G

Seite 506

532EXTENDING FLASH PROFESSIONALC-Level ExtensibilityLast updated 5/2/2011 #ifdef _WIN32 # ifndef _MAC // Windows __declspec( dllexport ) void MM

Seite 507

533EXTENDING FLASH PROFESSIONALC-Level ExtensibilityLast updated 5/2/2011 // Source code in C // Save the DLL or shared library with the name "

Seite 508

534EXTENDING FLASH PROFESSIONALC-Level ExtensibilityLast updated 5/2/2011typedef struct JSObject JSObjectA pointer to this opaque data type passes to

Seite 509

535EXTENDING FLASH PROFESSIONALC-Level ExtensibilityLast updated 5/2/2011typedef JSBool (*JSNative)(JSContext *cx, JSObject *obj, unsigned int argc, j

Seite 510

536EXTENDING FLASH PROFESSIONALC-Level ExtensibilityLast updated 5/2/2011DescriptionMethod; extracts a function argument from a jsval structure, conve

Seite 511

537EXTENDING FLASH PROFESSIONALC-Level ExtensibilityLast updated 5/2/2011ArgumentsJSContext *cx, jsval v, double *dp • The cx argument is the opaque J

Seite 512

34EXTENDING FLASH PROFESSIONALBitmapInstance objectLast updated 5/2/2011ExampleThe following code gets the height of the bitmap in pixels: // Get the

Seite 513

538EXTENDING FLASH PROFESSIONALC-Level ExtensibilityLast updated 5/2/2011ReturnsA Boolean value: JS_TRUE indicates success; JS_FALSE indicates failure

Seite 514

539EXTENDING FLASH PROFESSIONALC-Level ExtensibilityLast updated 5/2/2011JSVal JS_BooleanToValue()Usage jsval JS_BooleanToValue(JSBool bv);Description

Seite 515

540EXTENDING FLASH PROFESSIONALC-Level ExtensibilityLast updated 5/2/2011ReturnsA JSVal structure that contains the integer that passed to the functio

Seite 516

541EXTENDING FLASH PROFESSIONALC-Level ExtensibilityLast updated 5/2/2011ArgumentsJSContext *cx, unsigned int length, jsval *v• The cx argument is the

Seite 517

542EXTENDING FLASH PROFESSIONALC-Level ExtensibilityLast updated 5/2/2011• The vp argument is a pointer to a jsval where the contents of the jsval str

Seite 518

543EXTENDING FLASH PROFESSIONALC-Level ExtensibilityLast updated 5/2/2011• The sz argument is the size of the string, in bytes. If sz is 0, the length

Seite 519 - Chapter 46: ToolObj object

35Last updated 5/2/2011Chapter 5: BitmapItem objectInheritance Item object > BitmapItem object AvailabilityFlash MX 2004.DescriptionA BitmapItem

Seite 520

36EXTENDING FLASH PROFESSIONALBitmapItem objectLast updated 5/2/2011bitmapItem.allowSmoothingAvailabilityFlash MX 2004. Usage bitmapItem.allowSmoothin

Seite 521

37EXTENDING FLASH PROFESSIONALBitmapItem objectLast updated 5/2/2011ParametersfileURI A string, expressed as a file:/// URI, that specifies the path

Seite 522

viEXTENDING FLASH PROFESSIONALContentsLast updated 5/2/2011document.exitEditMode() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 523

38EXTENDING FLASH PROFESSIONALBitmapItem objectLast updated 5/2/2011DescriptionRead-only property; a string that specifies whether the specified item

Seite 524

39EXTENDING FLASH PROFESSIONALBitmapItem objectLast updated 5/2/2011ExampleAssuming the first item in the Library is a bitmap item, the following code

Seite 525

40EXTENDING FLASH PROFESSIONALBitmapItem objectLast updated 5/2/2011DescriptionRead-only property; a string, expressed as a file:/// URI, that represe

Seite 526

41EXTENDING FLASH PROFESSIONALBitmapItem objectLast updated 5/2/2011DescriptionProperty; a Boolean value that specifies whether to use the default imp

Seite 527

42Last updated 5/2/2011Chapter 6: CompiledClipInstance objectInheritance Element object > Instance object > CompiledClipInstance objectAvaila

Seite 528 - Chapter 47: Tools object

43EXTENDING FLASH PROFESSIONALCompiledClipInstance objectLast updated 5/2/2011 // Get the name of the object. var theName = fl.getDocumentDOM().sele

Seite 529

44EXTENDING FLASH PROFESSIONALCompiledClipInstance objectLast updated 5/2/2011compiledClipInstance.forceSimpleAvailabilityFlash MX 2004.Usage compiled

Seite 530

45EXTENDING FLASH PROFESSIONALCompiledClipInstance objectLast updated 5/2/2011Usage compiledClipInstance.silentDescriptionProperty; a Boolean value th

Seite 531

46Last updated 5/2/2011Chapter 7: compilerErrors objectAvailabilityFlash CS3 Professional.DescriptionThe compilerErrors object, which represents the C

Seite 532

47EXTENDING FLASH PROFESSIONALcompilerErrors objectLast updated 5/2/2011compilerErrors.save()AvailabilityFlash CS3 Professional.Usage compilerErrors.s

Seite 533 - Tools object

viiEXTENDING FLASH PROFESSIONALContentsLast updated 5/2/2011document.punch() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 534

48Last updated 5/2/2011Chapter 8: ComponentInstance objectInheritance Element object > Instance object > SymbolInstance object > Component

Seite 535 - Chapter 48: Vertex object

49Last updated 5/2/2011Chapter 9: componentsPanel objectAvailabilityFlash MX 2004.DescriptionThe componentsPanel object, which represents the Componen

Seite 536

50EXTENDING FLASH PROFESSIONALcomponentsPanel objectLast updated 5/2/2011 fl.componentsPanel.addItemToDocument({x:0, y:0}, "User Interface",

Seite 537

51Last updated 5/2/2011Chapter 10: Contour objectAvailabilityFlash MX 2004.DescriptionA Contour object represents a closed path of half edges on the b

Seite 538 - Chapter 49: VideoItem object

52EXTENDING FLASH PROFESSIONALContour objectLast updated 5/2/2011contour.getHalfEdge()AvailabilityFlash MX 2004.Usagecontour.getHalfEdge()ParametersNo

Seite 539

53EXTENDING FLASH PROFESSIONALContour objectLast updated 5/2/2011contour.interiorAvailabilityFlash MX 2004.Usagecontour.interiorDescriptionRead-only p

Seite 540

54EXTENDING FLASH PROFESSIONALContour objectLast updated 5/2/2011 var elt = fl.getDocumentDOM().selection[0]; elt.beginEdit(); var contourArray

Seite 541

55Last updated 5/2/2011Chapter 11: Document objectAvailabilityFlash MX 2004.DescriptionThe Document object represents the Stage. That is, only FLA fil

Seite 542 - Chapter 50: XMLUI object

56EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.canTestScene() Determines whether you can use the document.testScene() meth

Seite 543

57EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.exitEditMode() Exits from symbol-editing mode and returns focus to the next

Seite 544

viiiEXTENDING FLASH PROFESSIONALContentsLast updated 5/2/2011document.setTextRectangle() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 545

58EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.match() Makes the size of the selected objects the same. document.mouseClic

Seite 546

59EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.selectAll() Selects all items on the Stage; equivalent to pressing Control+

Seite 547

60EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011Property summary You can use the following properties with the Document object. docu

Seite 548

61EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.as3StrictMode A Boolean value that specifies whether the ActionScript 3.0 c

Seite 549

62EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.accNameAvailabilityFlash MX 2004.Usage document.accNameDescriptionProperty;

Seite 550 - Integrating C functions

63EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011ReturnsNothing.DescriptionMethod; stores specified data with a document. Data is wri

Seite 551

64EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.addFilter()AvailabilityFlash 8.Usage document.addFilter(filterName)Paramete

Seite 552

65EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011DescriptionMethod; adds an item from any open document or library to the specified D

Seite 553

66EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.addNewOval()AvailabilityFlash MX 2004.Usage document.addNewOval(boundingRec

Seite 554 - Sample DLL implementation

67EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011ParametersboundingRectangle A rectangle that specifies the bounds within which the

Seite 555 - Data types

ixEXTENDING FLASH PROFESSIONALContentsLast updated 5/2/2011edge.isLine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 556 - The C-level API

68EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011bSuppressStroke A Boolean value that, if set to true, causes the method to create t

Seite 557 - JSBool JS_DefineFunction()

69EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011ExampleThe following example adds a new publish profile with a default name and then

Seite 558 - JSBool JS_ValueToDouble()

70EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011DescriptionMethod; adds a new rectangle or rounded rectangle, fitting it into the sp

Seite 559 - JSBool JS_ValueToObject()

71EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011The following example adds a new scene using the default naming convention. If only

Seite 560 - JSBool JS_DoubleToValue()

72EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011Parametersalignmode A string that specifies how to align the selection. Acceptable

Seite 561 - JSVal JS_IntegerToValue()

73EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011 if(fl.getDocumentDOM().allowScreens()) { fl.trace("screen outline is availa

Seite 562 - JSVal JS_ObjectToValue()

74EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011ExampleThe following example specifies that instances placed on the Stage in the cur

Seite 563 - JSBool JS_GetElement()

75EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011document.as3StrictModeAvailabilityFlash CS3 Professional.Usage document.as3StrictMod

Seite 564 - JSBool JS_ExecuteScript()

76EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011See alsodocument.as3StrictModedocument.asVersionAvailabilityFlash CS3 Professional.U

Seite 565

77EXTENDING FLASH PROFESSIONALDocument objectLast updated 5/2/2011The following example sets the autoLabel property to true, telling Flash to automati

Kommentare zu diesen Handbüchern

Keine Kommentare