Adobe Extending Flash Professional CS4 Bedienungsanleitung

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

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

Inhaltsverzeichnis

Seite 1 - 4 PROFESSIONAL

Extending ADOBE® FLASH® CS4 PROFESSIONAL

Seite 2 - ® for Windows® and Mac OS

xChapter 16: Filter objectfilter.angle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 3 - Contents

78EXTENDING FLASH CS4 PROFESSIONALDocument objectThe following example sets the autoLabel property to true, telling Flash to automatically label objec

Seite 4

79EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.canEditSymbol()AvailabilityFlash MX 2004.Usage document.canEditSymbol()ParametersNone. Retur

Seite 5

80EXTENDING FLASH CS4 PROFESSIONALDocument object if(fl.getDocumentDOM().canRevert()){ fl.getDocumentDOM().revert(); }document.canSaveAVersion(

Seite 6

81EXTENDING FLASH CS4 PROFESSIONALDocument objectDescriptionMethod; determines whether you can use the document.testMovie() method successfully. Examp

Seite 7

82EXTENDING FLASH CS4 PROFESSIONALDocument objectUsage document.changeFilterOrder(oldIndex, newIndex)ParametersoldIndex An integer that represents th

Seite 8

83EXTENDING FLASH CS4 PROFESSIONALDocument objectReturnsNothing. DescriptionMethod; copies the current selection from the document to the Clipboard. T

Seite 9

84EXTENDING FLASH CS4 PROFESSIONALDocument objectUsage document.clipPaste([bInPlace])ParametersbInPlace A Boolean value that, when set to true, cause

Seite 10

85EXTENDING FLASH CS4 PROFESSIONALDocument object fl.getDocumentDOM().close();The following example closes the current document without saving changes

Seite 11

86EXTENDING FLASH CS4 PROFESSIONALDocument objectReturnsAn object for the newly created symbol, or null if it cannot create the symbol.DescriptionMeth

Seite 12

87EXTENDING FLASH CS4 PROFESSIONALDocument objectUsage document.currentPublishProfileDescriptionProperty; a string that specifies the name of the acti

Seite 13

xifl.findObjectInDocByName() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 14

88EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.deleteEnvelope()AvailabilityFlash 8.Usage document.deleteEnvelope()ParametersNone.ReturnsA B

Seite 15

89EXTENDING FLASH CS4 PROFESSIONALDocument object alert(fl.getDocumentDOM().deletePublishProfile());See alsodocument.addNewPublishProfile()document.de

Seite 16

90EXTENDING FLASH CS4 PROFESSIONALDocument objectDescriptionMethod; deletes the current selection on the Stage. Displays an error message if there is

Seite 17

91EXTENDING FLASH CS4 PROFESSIONALDocument objectExampleThe following example disables all filters on the selected objects: fl.getDocumentDOM().disabl

Seite 18

92EXTENDING FLASH CS4 PROFESSIONALDocument objectParametersenabledFilterIndex An integer representing the zero-based index of the filter that should

Seite 19

93EXTENDING FLASH CS4 PROFESSIONALDocument object fl.getDocumentDOM().distribute("top edge", false);The following example distributes the se

Seite 20

94EXTENDING FLASH CS4 PROFESSIONALDocument objectExampleThe following example specifies that the ActionScript 3.0 class associated with the document i

Seite 21

95EXTENDING FLASH CS4 PROFESSIONALDocument objectParametersprofileName A string that specifies the unique name of the duplicated profile. If you do n

Seite 22

96EXTENDING FLASH CS4 PROFESSIONALDocument objectUsage document.duplicateSelection()ParametersNone. ReturnsNothing. DescriptionMethod; duplicates the

Seite 23 - Chapter 1: Introduction

97EXTENDING FLASH CS4 PROFESSIONALDocument objectUsage document.enableAllFilters()ParametersNone.ReturnsNothing.DescriptionMethod; enables all the fil

Seite 24 - Saving JSFL files

xiiFLfile.exists() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 25 - Running scripts

98EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.enterEditMode()AvailabilityFlash MX 2004.Usage document.enterEditMode([editMode])Parameterse

Seite 26 - New objects

99EXTENDING FLASH CS4 PROFESSIONALDocument objectDescriptionMethod; exits from symbol-editing mode and returns focus to the next level up from the edi

Seite 27 - New methods and properties

100EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.exportPublishProfile()AvailabilityFlash MX 2004.Usage document.exportPublishProfile(fileURI

Seite 28 - Introduction

101EXTENDING FLASH CS4 PROFESSIONALDocument objectExampleThe following example stores an XML string that represents the current profile in a variable

Seite 29 - JavaScript API objects

102EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.externalLibraryPathAvailabilityFlash CS4 Professional.Usage document.externalLibraryPathDes

Seite 30

103EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.frameRateAvailabilityFlash MX 2004.Usage document.frameRateDescriptionProperty; a float val

Seite 31

104EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.getBlendMode()AvailabilityFlash 8.Usage document.getBlendMode()ParametersNone.ReturnsA stri

Seite 32 - The Document object

105EXTENDING FLASH CS4 PROFESSIONALDocument objectDescriptionMethod; retrieves the fill object of the selected shape or, if specified, of the Tools pa

Seite 33 - Summary of the DOM structure

106EXTENDING FLASH CS4 PROFESSIONALDocument object var stroke = fl.getDocumentDOM().getCustomStroke("selection"); stroke.thickness = 2;

Seite 34

107EXTENDING FLASH CS4 PROFESSIONALDocument objectUsage document.getElementProperty(propertyName)ParameterspropertyName A string that specifies the

Seite 35 - Sample implementations

xiiiframe.tweenEasing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 36 - Sample DLL

108EXTENDING FLASH CS4 PROFESSIONALDocument objectReturnsIf one text field is selected, the property is returned if there is only one value used withi

Seite 37

109EXTENDING FLASH CS4 PROFESSIONALDocument objectSee alsodocument.addFilter(), document.changeFilterOrder(), document.setFilters(), Filter objectdocu

Seite 38

110EXTENDING FLASH CS4 PROFESSIONALDocument objectExampleThe following example displays the XML settings string for the current document: fl.trace(fl.

Seite 39

111EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.getSelectionRect()AvailabilityFlash MX 2004.Usage document.getSelectionRect()ParametersNone

Seite 40

112EXTENDING FLASH CS4 PROFESSIONALDocument objectDescriptionMethod; gets the currently selected text. If the optional parameters are not passed, the

Seite 41

113EXTENDING FLASH CS4 PROFESSIONALDocument object fl.getDocumentDOM().enterEditMode("inPlace"); fl.getDocumentDOM().getTimeline().insertF

Seite 42

114EXTENDING FLASH CS4 PROFESSIONALDocument objectUsage document.group()ParametersNone. ReturnsNothing. DescriptionMethod; converts the current select

Seite 43

115EXTENDING FLASH CS4 PROFESSIONALDocument objectUsage document.idDescriptionRead-only property; a unique integer (assigned automatically) that ident

Seite 44

116EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.importPublishProfile()AvailabilityFlash MX 2004.Usage document.importPublishProfile( fileUR

Seite 45

117EXTENDING FLASH CS4 PROFESSIONALDocument objectvar profileXML=fl.getDocumentDOM().exportPublishProfileString('Default'); fl.trace(profil

Seite 46

xivlibrary.deleteItem() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 47

118EXTENDING FLASH CS4 PROFESSIONALDocument objectReturnsA Boolean value: true if successful; false otherwise.DescriptionMethod; creates an intersecti

Seite 48

119EXTENDING FLASH CS4 PROFESSIONALDocument objectDescriptionProperty; a string that contains a list of items in the document’s ActionScript 3.0 Libra

Seite 49

120EXTENDING FLASH CS4 PROFESSIONALDocument objectbHeight A Boolean value that, when set to true, causes the method to make the heights of the select

Seite 50

121EXTENDING FLASH CS4 PROFESSIONALDocument object fl.getDocumentDOM().mouseClick({x:300, y:200}, false, false);See alsodocument.mouseDblClk()document

Seite 51

122EXTENDING FLASH CS4 PROFESSIONALDocument objectParametersdelta A pair of floating-point values that specify the x and y coordinates in pixels by w

Seite 52

123EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.nameAvailabilityFlash MX 2004.Usage document.nameDescriptionRead-only property; a string th

Seite 53

124EXTENDING FLASH CS4 PROFESSIONALDocument object fl.getDocumentDOM().optimizeCurves(50, true);document.pathAvailabilityFlash MX 2004.Usage document.

Seite 54 - bitmapInstance.getBits()

125EXTENDING FLASH CS4 PROFESSIONALDocument objectSee alsodocument.pathdocument.publish()AvailabilityFlash MX 2004.Usage document.publish()ParametersN

Seite 55 - BitmapInstance object

126EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.punch()AvailabilityFlash 8.Usage document.punch()ParametersNone.ReturnsA Boolean value: tru

Seite 56

127EXTENDING FLASH CS4 PROFESSIONALDocument object fl.getDocumentDOM().removeAllFilters();See alsodocument.addFilter(), document.changeFilterOrder(),

Seite 57

xvparameter.name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 58 - Chapter 5: BitmapItem object

128EXTENDING FLASH CS4 PROFESSIONALDocument objectDescriptionMethod; removes persistent data with the specified name that has been attached to the sel

Seite 59 - BitmapItem object

129EXTENDING FLASH CS4 PROFESSIONALDocument objectParametersprofileNewName An optional parameter that specifies the new name for the profile. The new

Seite 60

130EXTENDING FLASH CS4 PROFESSIONALDocument objectParameterssceneToMove An integer that specifies which scene to move, with 0 (zero) being the first

Seite 61

131EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.resetRectangleObject()AvailabilityFlash CS3 Professional.Usage document.resetRectangleObjec

Seite 62

132EXTENDING FLASH CS4 PROFESSIONALDocument object fl.getDocumentDOM().resetTransformation();document.revert()AvailabilityFlash MX 2004.Usage document

Seite 63

133EXTENDING FLASH CS4 PROFESSIONALDocument objectDescriptionMethod; if the file can be reverted, displays a dialog box to let the user confirm that t

Seite 64

134EXTENDING FLASH CS4 PROFESSIONALDocument objectUsage document.rotateSelection(angle [, rotationPoint])Parametersangle A floating-point value that

Seite 65 - compiledClipInstance.accName

135EXTENDING FLASH CS4 PROFESSIONALDocument objectExampleThe following example saves the current document in its default location: fl.getDocumentDOM()

Seite 66 - CompiledClipInstance object

136EXTENDING FLASH CS4 PROFESSIONALDocument objectParametersNone.ReturnsA Boolean value of true if a version of the document is successfully saved to

Seite 67

137EXTENDING FLASH CS4 PROFESSIONALDocument objectExampleThe following example expands the width of the current selection to double the original width

Seite 68

xviChapter 36: Screen objectscreen.accName . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 69 - fl.compilerErrors.clear();

138EXTENDING FLASH CS4 PROFESSIONALDocument objectParametersNone. ReturnsNothing. DescriptionMethod; selects all items on the Stage. This method is eq

Seite 70

139EXTENDING FLASH CS4 PROFESSIONALDocument object fl.getDocumentDOM().getTimeline().currentFrame = 10; fl.getDocumentDOM().selection = fl.getDocume

Seite 71 - componentInstance.parameters

140EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.selectNone()AvailabilityFlash MX 2004.Usage document.selectNone()ParametersNone. ReturnsNot

Seite 72 - Method Description

141EXTENDING FLASH CS4 PROFESSIONALDocument object fl.getDocumentDOM().setAlignToDocument(true);See alsodocument.getAlignToDocument()document.setBlend

Seite 73

142EXTENDING FLASH CS4 PROFESSIONALDocument objectDescriptionMethod; sets the fill settings for the Tools panel, Property inspector, and any selected

Seite 74 - Chapter 10: Contour object

143EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.setElementProperty()AvailabilityFlash MX 2004.Usage document.setElementProperty(property, v

Seite 75 - Contour object

144EXTENDING FLASH CS4 PROFESSIONALDocument objectReturnsA Boolean value: true if at least one text attribute property is changed; false otherwise.Des

Seite 76

145EXTENDING FLASH CS4 PROFESSIONALDocument object fl.getDocumentDOM().setFillColor("#cc00cc"); fl.getDocumentDOM().setFillColor(0xcc00cc)

Seite 77

146EXTENDING FLASH CS4 PROFESSIONALDocument objectUsage document.setFilters(filterArray)ParametersfilterArray The array of filters currently specifie

Seite 78 - Chapter 11: Document object

147EXTENDING FLASH CS4 PROFESSIONALDocument object fl.getDocumentDOM().setInstanceAlpha(50);document.setInstanceBrightness()AvailabilityFlash MX 2004.

Seite 79

xviiChapter 39: SoundItem objectsoundItem.bitRate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 80

148EXTENDING FLASH CS4 PROFESSIONALDocument objectExampleThe following example sets the tint for the selected instance to red with an opacity value of

Seite 81

149EXTENDING FLASH CS4 PROFESSIONALDocument object <rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'> <rdf:Descrip

Seite 82

150EXTENDING FLASH CS4 PROFESSIONALDocument objectDescriptionMethod; sets the value of an XML settings string in a mobile FLA file. (Most mobile FLA f

Seite 83

151EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.setPlayerVersion()AvailabilityFlash CS3 Professional.Usage document.setPlayerVersion(versio

Seite 84

152EXTENDING FLASH CS4 PROFESSIONALDocument objectDescriptionMethod; specifies a value for a specified property of primitive Rectangle objects.Example

Seite 85

153EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.setSelectionRect()AvailabilityFlash MX 2004; bContactSensitiveSelection parameter added in

Seite 86

154EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.setStageVanishingPoint()AvailabilityFlash CS4 Professional.Usage document.setStageVanishing

Seite 87

155EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.setStroke()AvailabilityFlash MX 2004.Usage document.setStroke(color, size, strokeType)Param

Seite 88

156EXTENDING FLASH CS4 PROFESSIONALDocument objectReturnsNothing. DescriptionMethod; changes the stroke color of the selection to the specified color.

Seite 89

157EXTENDING FLASH CS4 PROFESSIONALDocument objectParametersstrokeType A string that specifies the stroke style for the current selection. Acceptable

Seite 90

xviiiChapter 42: SymbolInstance objectsymbolInstance.accName . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 91

158EXTENDING FLASH CS4 PROFESSIONALDocument object fl.getDocumentDOM().setTextRectangle({left:0, top:0, right:50, bottom:200}) document.setTextSelecti

Seite 92

159EXTENDING FLASH CS4 PROFESSIONALDocument objectDescriptionMethod; inserts a string of text. If the optional parameters are not passed, the existing

Seite 93

160EXTENDING FLASH CS4 PROFESSIONALDocument objectDescriptionMethod; sets the position of the current selection’s transformation point. ExampleThe fol

Seite 94

161EXTENDING FLASH CS4 PROFESSIONALDocument objectwhichEdge A string that specifies the edge where the transformation occurs; if omitted, skew occurs

Seite 95

162EXTENDING FLASH CS4 PROFESSIONALDocument objectUsage document.sourcePathDescriptionProperty; a string that contains a list of items in the document

Seite 96

163EXTENDING FLASH CS4 PROFESSIONALDocument objectThe following example spaces the objects horizontally, relative to each other, with bUseDcoumentBoun

Seite 97

164EXTENDING FLASH CS4 PROFESSIONALDocument objectDescriptionMethod; swaps the current selection with the specified one. The selection must contain a

Seite 98

165EXTENDING FLASH CS4 PROFESSIONALDocument objectDescriptionMethod; synchronizes the specified document with the most current version on the Version

Seite 99

166EXTENDING FLASH CS4 PROFESSIONALDocument objectUsage document.testScene()ParametersNone. ReturnsNothing. DescriptionMethod; executes a Test Scene o

Seite 100 - Document object

167EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.traceBitmap()AvailabilityFlash MX 2004.Usage document.traceBitmap(threshold, minimumArea, c

Seite 101

xixtext.getTextAttr() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 102

168EXTENDING FLASH CS4 PROFESSIONALDocument objectDescriptionMethod: sets the XYZ position around which the selection is translated or rotated. This m

Seite 103

169EXTENDING FLASH CS4 PROFESSIONALDocument objectUsage document.transformSelection(a, b, c, d)Parametersa A floating-point number that specifies the

Seite 104 - Before After

170EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.union()AvailabilityFlash 8.Usage document.union()ParametersNone.ReturnsA Boolean value: tru

Seite 105

171EXTENDING FLASH CS4 PROFESSIONALDocument object fl.getDocumentDOM().unlockAllElements();See alsoelement.lockeddocument.viewMatrixAvailabilityFlash

Seite 106

172EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.xmlPanel()AvailabilityFlash MX 2004.Usage document.xmlPanel(fileURI)ParametersfileURI A st

Seite 107

173Chapter 12: drawingLayer objectAvailabilityFlash MX 2004.DescriptionThe drawingLayer object is accessible from JavaScript as a child of the flash o

Seite 108

174EXTENDING FLASH CS4 PROFESSIONALdrawingLayer objectParameterspersistentDraw A Boolean value (optional). If set to true, it indicates that the dra

Seite 109

175EXTENDING FLASH CS4 PROFESSIONALdrawingLayer objectUsage drawingLayer.cubicCurveTo(x1Ctrl, y1Ctrl, x2Ctl, y2Ctl, xEnd, yEnd)Parametersx1Ctl A floa

Seite 110

176EXTENDING FLASH CS4 PROFESSIONALdrawingLayer objectExampleThe following example draws a quadratic curve using the specified control points: fl.draw

Seite 111

177EXTENDING FLASH CS4 PROFESSIONALdrawingLayer objectExampleThe following example exits drawing mode: fl.drawingLayer.endDraw(); drawingLayer.endFram

Seite 112

Copyright© 2008 Adobe Systems Incorporated. All rights reserved.Extending Flash® for Windows® and Mac OSIf this guide is distributed with software tha

Seite 113

xxChapter 47: Timeline objecttimeline.addMotionGuide() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 114

178EXTENDING FLASH CS4 PROFESSIONALdrawingLayer objectExampleThe following example draws a line from the current drawing position to the point (20,30)

Seite 115

179EXTENDING FLASH CS4 PROFESSIONALdrawingLayer objectExampleThe following example returns a new Path object: fl.drawingLayer.newPath(); drawingLayer.

Seite 116

180EXTENDING FLASH CS4 PROFESSIONALdrawingLayer objectParametersfill A Fill object.DescriptionMethod; applies the specified fill to the drawing layer

Seite 117

181Chapter 13: Edge objectAvailabilityFlash MX 2004.DescriptionThe Edge object represents an edge of a shape on the Stage.Method summaryThe following

Seite 118

182EXTENDING FLASH CS4 PROFESSIONALEdge objectvar theShape = fl.getDocumentDOM().selection[0]; var edgesArray = theShape.edges; for(var i=0;i<edg

Seite 119

183EXTENDING FLASH CS4 PROFESSIONALEdge objectDescriptionMethod; returns a HalfEdge object. ExampleThe following example stores the half edges of the

Seite 120

184EXTENDING FLASH CS4 PROFESSIONALEdge objectedge.setControl()AvailabilityFlash MX 2004.Usage edge.setControl(index, x, y)Parametersindex An intege

Seite 121

185EXTENDING FLASH CS4 PROFESSIONALEdge objectReturnsNothing. DescriptionMethod; splits the edge into two pieces. You must call shape.beginEdit() befo

Seite 122

186Chapter 14: Element objectAvailabilityFlash MX 2004.DescriptionEverything that appears on the Stage is of the type Element. The following code exam

Seite 123

187EXTENDING FLASH CS4 PROFESSIONALElement objectelement.depthAvailabilityFlash MX 2004.Usage element.depthDescriptionRead-only property; an integer t

Seite 124

xxitoolObj.setIcon() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 125

188EXTENDING FLASH CS4 PROFESSIONALElement objectDescriptionRead-only property; a string that represents the type of the specified element. The value

Seite 126

189EXTENDING FLASH CS4 PROFESSIONALElement object // At least one symbol or bitmap is selected in the first layer, first frame. var elt = fl.getDocu

Seite 127

190EXTENDING FLASH CS4 PROFESSIONALElement objectUsage element.hasPersistentData(name)Parametersname A string that specifies the name of the data ite

Seite 128

191EXTENDING FLASH CS4 PROFESSIONALElement objectExampleThe following example stores the Layer object that contains the element in the theLayer variab

Seite 129

192EXTENDING FLASH CS4 PROFESSIONALElement objectelement.matrixAvailabilityFlash MX 2004.Usage element.matrixDescriptionProperty; a Matrix object. A m

Seite 130

193EXTENDING FLASH CS4 PROFESSIONALElement objectParametersname A string that specifies the name of the data to remove. ReturnsNothing. DescriptionMe

Seite 131

194EXTENDING FLASH CS4 PROFESSIONALElement objectExampleThe following example sets the x scale value of the current selection to 2 (doubles its value)

Seite 132

195EXTENDING FLASH CS4 PROFESSIONALElement objectelement.setPersistentData()AvailabilityFlash MX 2004.Usage element.setPersistentData(name, type, valu

Seite 133

196EXTENDING FLASH CS4 PROFESSIONALElement object• Drawing objects, primitive objects, and groups: transformationPoint is set relative to the center o

Seite 134

197EXTENDING FLASH CS4 PROFESSIONALElement objectelement.skewYAvailabilityFlash CS3 Professional.Usage element.skewYDescriptionProperty; a float value

Seite 135

xxiixmlui.setEnabled() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 136

198EXTENDING FLASH CS4 PROFESSIONALElement objectelement.transformXAvailabilityFlash CS3 Professional.Usage element.transformXDescriptionProperty; a f

Seite 137

199EXTENDING FLASH CS4 PROFESSIONALElement objectDo not use this property to resize a text field. Instead, select the text field and use document.setT

Seite 138

200Chapter 15: Fill objectAvailabilityFlash MX 2004.DescriptionThis object contains all the properties of the Fill color setting of the Tools panel or

Seite 139

201EXTENDING FLASH CS4 PROFESSIONALFill objectvar fill = fl.getDocumentDOM().getCustomFill(); if (fill.style == "bitmap") fl.trace("F

Seite 140

202EXTENDING FLASH CS4 PROFESSIONALFill objectExampleThe following example sets the fill color of the current selection: var fill = fl.getDocumentDOM(

Seite 141

203EXTENDING FLASH CS4 PROFESSIONALFill objectExampleThe following example sets the focal point of a radial gradient for the current selection to 100

Seite 142

204EXTENDING FLASH CS4 PROFESSIONALFill objectExampleThe following example uses the fill.matrix property to specify a gradient fill for the current se

Seite 143

205EXTENDING FLASH CS4 PROFESSIONALFill objectDescriptionProperty; an array of integers, each in the range of zero to 255, indicating the position of

Seite 144

206Chapter 16: Filter objectAvailabilityFlash 8.DescriptionThis object contains all the properties for all filters. The filter.name property specifies

Seite 145

207EXTENDING FLASH CS4 PROFESSIONALFilter objectfilter.angleAvailabilityFlash 8.Usage filter.angleDescriptionProperty; a float value that specifies th

Seite 146

1Chapter 1: IntroductionAs a user of Adobe® Flash® CS4 Professional, you may be familiar with Adobe® ActionScript®, which lets you create scripts tha

Seite 147

208EXTENDING FLASH CS4 PROFESSIONALFilter object var myFilters = fl.getDocumentDOM().getFilters(); for(i=0; i < myFilters.length; i++){ if(myF

Seite 148

209EXTENDING FLASH CS4 PROFESSIONALFilter objectExampleThe following example sets the brightness to 30.5 for the Adjust Color filters on the selected

Seite 149

210EXTENDING FLASH CS4 PROFESSIONALFilter objectUsage filter.contrastDescriptionProperty; a float value that specifies the contrast value of the filte

Seite 150

211EXTENDING FLASH CS4 PROFESSIONALFilter objectfilter.enabledAvailabilityFlash CS3 Professional.Usage filter.enabledDescriptionProperty; a Boolean va

Seite 151

212EXTENDING FLASH CS4 PROFESSIONALFilter objectfilter.highlightColorAvailabilityFlash 8.Usage filter.highlightColorDescriptionProperty; the color of

Seite 152

213EXTENDING FLASH CS4 PROFESSIONALFilter object var myFilters = fl.getDocumentDOM().getFilters(); for(i=0; i < myFilters.length; i++){ if(myF

Seite 153

214EXTENDING FLASH CS4 PROFESSIONALFilter objectExampleThe following example sets the knockout property to true for the Glow filters on the selected o

Seite 154

215EXTENDING FLASH CS4 PROFESSIONALFilter objectUsage filter.qualityDescriptionProperty; a string that specifies the blur quality. Acceptable values a

Seite 155

216EXTENDING FLASH CS4 PROFESSIONALFilter objectfilter.shadowColorAvailabilityFlash 8.Usage filter.shadowColorDescriptionProperty; the color of the sh

Seite 156

217EXTENDING FLASH CS4 PROFESSIONALFilter object var myFilters = fl.getDocumentDOM().getFilters(); for(i=0; i < myFilters.length; i++){ if(myF

Seite 157

2EXTENDING FLASH CS4 PROFESSIONALIntroductionYou can also create a JSFL file by selecting commands in the History panel. Then click the Save button in

Seite 158

218Chapter 17: flash object (fl)AvailabilityFlash MX 2004.DescriptionThe flash object represents the Flash application. You can use flash or fl to ref

Seite 159

219EXTENDING FLASH CS4 PROFESSIONALflash object (fl)Property summary The following properties can be used with the flash object.fl.quit() Quits Flash,

Seite 160

220EXTENDING FLASH CS4 PROFESSIONALflash object (fl)fl.actionsPanelAvailabilityFlash CS3 Professional.fl.createNewDocList Read-only; an array of strin

Seite 161

221EXTENDING FLASH CS4 PROFESSIONALflash object (fl)Usage fl.actionsPanelDescriptionRead-only property; an actionsPanel object, which represents the c

Seite 162

222EXTENDING FLASH CS4 PROFESSIONALflash object (fl)fl.as3PackagePathsAvailabilityFlash CS3 Professional.Usage fl.as3PackagePathsDescriptionProperty;

Seite 163

223EXTENDING FLASH CS4 PROFESSIONALflash object (fl)DescriptionMethod; opens a File Open or File Save system dialog box and lets the user specify a fi

Seite 164 - A Stroke object

224EXTENDING FLASH CS4 PROFESSIONALflash object (fl)fl.clipCopyString()AvailabilityFlash CS3 Professional.Usage fl.clipCopyString(string)Parametersstr

Seite 165

225EXTENDING FLASH CS4 PROFESSIONALflash object (fl) fl.closeAll();See alsofl.closeAllPlayerDocuments(), fl.closeDocument()fl.closeAllPlayerDocuments(

Seite 166

226EXTENDING FLASH CS4 PROFESSIONALflash object (fl)ReturnsNothing.DescriptionMethod; closes the specified document.ExampleThe following example illus

Seite 167

227EXTENDING FLASH CS4 PROFESSIONALflash object (fl)fl.configDirectoryAvailabilityFlash MX 2004.Usage fl.configDirectoryDescriptionRead-only property;

Seite 168

3EXTENDING FLASH CS4 PROFESSIONALIntroductionThere are two locations where you can store command and tool files so they can be accessed in the authori

Seite 169

228EXTENDING FLASH CS4 PROFESSIONALflash object (fl)DescriptionA Boolean value that specifies whether Contact Sensitive selection mode is enabled (tru

Seite 170

229EXTENDING FLASH CS4 PROFESSIONALflash object (fl)Usage fl.createNewDocListDescriptionRead-only property; an array of strings that represent the var

Seite 171

230EXTENDING FLASH CS4 PROFESSIONALflash object (fl) fl.trace("Number of template types: " + fl.createNewTemplateList.length); for (i = 0; i

Seite 172

231EXTENDING FLASH CS4 PROFESSIONALflash object (fl)ExampleThe following example downloads the file named myFile.fla from the Version Cue server: fl.d

Seite 173

232EXTENDING FLASH CS4 PROFESSIONALflash object (fl)fl.fileExists()AvailabilityFlash MX 2004.Usage fl.fileExists(fileURI)ParametersfileURI A string,

Seite 174

233EXTENDING FLASH CS4 PROFESSIONALflash object (fl) var originalDocID = fl.getDocumentDOM().id; // other code here, maybe working in different file

Seite 175

234EXTENDING FLASH CS4 PROFESSIONALflash object (fl)ParametersinstanceName A string that specifies the instance name of an item in the specified docu

Seite 176

235EXTENDING FLASH CS4 PROFESSIONALflash object (fl)ReturnsAn array of generic objects. Use the .obj property of each item in the array to get the ele

Seite 177

236EXTENDING FLASH CS4 PROFESSIONALflash object (fl) var doc = fl.getDocumentDOM(); var typeToSearchFor = "text"; var resultsArray = fl.

Seite 178

237EXTENDING FLASH CS4 PROFESSIONALflash object (fl)ParametersmemType An integer that specifies the memory utilization area to be queried. For a list

Seite 179

4EXTENDING FLASH CS4 PROFESSIONALIntroductionTo add a tool implemented in a JSFL file to the Tools panel:1 Copy the JSFL file for the tool and any oth

Seite 180

238EXTENDING FLASH CS4 PROFESSIONALflash object (fl)DescriptionMethod; retrieves the DOM (Document object) of the currently active document (FLA file)

Seite 181

239EXTENDING FLASH CS4 PROFESSIONALflash object (fl)ExampleThe following example adds the /SWC folder to the global ActionScript 3.0 Library path:fl.t

Seite 182

240EXTENDING FLASH CS4 PROFESSIONALflash object (fl)ExampleThe following example shows the transformation matrix of the selected object and its invers

Seite 183

241EXTENDING FLASH CS4 PROFESSIONALflash object (fl) fl.trace("Number of recently opened files: " + fl.mruRecentFileListType.length); for

Seite 184

242EXTENDING FLASH CS4 PROFESSIONALflash object (fl)ExampleThe following example opens a file named Document.fla that is stored in the root directory

Seite 185

243EXTENDING FLASH CS4 PROFESSIONALflash object (fl)fl.packagePathsAvailabilityFlash CS3 Professional.Usage fl.packagePathsDescriptionProperty; a stri

Seite 186

244EXTENDING FLASH CS4 PROFESSIONALflash object (fl)ParametersbPromptIfNeeded A Boolean value that is true (default) if you want the user to be promp

Seite 187

245EXTENDING FLASH CS4 PROFESSIONALflash object (fl)fl.reloadTools()AvailabilityFlash MX 2004.Usage fl.reloadTools()ParametersNone. ReturnsNothing. De

Seite 188

246EXTENDING FLASH CS4 PROFESSIONALflash object (fl)ExampleThe following example removes the event listener associated with the documentClosed event:

Seite 189

247EXTENDING FLASH CS4 PROFESSIONALflash object (fl)ExampleThe following example resets the ActionScript 2.0 Classpath setting to its default value. f

Seite 190

5EXTENDING FLASH CS4 PROFESSIONALIntroductionpresetItem objectswfPanel objectNew methods and propertiesThe following methods and properties for existi

Seite 191

248EXTENDING FLASH CS4 PROFESSIONALflash object (fl)ReturnsA Boolean value of true if the document is successfully reverted; false otherwise.Descripti

Seite 192

249EXTENDING FLASH CS4 PROFESSIONALflash object (fl) function testFunct(num, minNum) { fl.trace("in testFunct: 1st arg: " + num + "

Seite 193

250EXTENDING FLASH CS4 PROFESSIONALflash object (fl) fl.saveAll();See alsodocument.save(), document.saveAndCompact(), fl.saveDocument(), fl.saveDocume

Seite 194

251EXTENDING FLASH CS4 PROFESSIONALflash object (fl)ReturnsA Boolean value: true if the save operation completes successfully; false otherwise.If the

Seite 195

252EXTENDING FLASH CS4 PROFESSIONALflash object (fl)fl.scriptURIAvailabilityFlash CS3 Professional.Usage fl.scriptURIDescriptionRead-only property; a

Seite 196

253EXTENDING FLASH CS4 PROFESSIONALflash object (fl) var nameToSearchFor = "second text field"; var doc = fl.getDocumentDOM(); // Sta

Seite 197

254EXTENDING FLASH CS4 PROFESSIONALflash object (fl)• Mac OS X: Macintosh HD/Users/username/Library/Application Support/Adobe/Flash CS3/language/Conf

Seite 198

255EXTENDING FLASH CS4 PROFESSIONALflash object (fl)Usage fl.showIdleMessage(show)Parametersshow A Boolean value specifying whether to enable or disa

Seite 199

256EXTENDING FLASH CS4 PROFESSIONALflash object (fl)fl.swfPanelsAvailabilityFlash CS4 Professional.Usage fl.swfPanelsDescriptionRead-only property; an

Seite 200

257EXTENDING FLASH CS4 PROFESSIONALflash object (fl)See alsofl.downloadLatestVersion(), fl.revertDocumentToLastVersion(), fl.saveAVersionOfDocument()f

Seite 201

6EXTENDING FLASH CS4 PROFESSIONALIntroduction• fl.flexSDKPath• fl.isFontInstalled()• fl.libraryPath• fl.presetPanel• fl.sourcePath• fl.swfPanels• FLfi

Seite 202 - A Fill object

258EXTENDING FLASH CS4 PROFESSIONALflash object (fl) fl.outputPanel.clear(); fl.trace("Hello World!!!"); var myPet = "cat";

Seite 203 - Chapter 13: Edge object

259Chapter 18: FLfile objectAvailabilityFlash MX 2004 7.2. DescriptionThe FLfile object lets you write Flash extensions that can access, modify, and r

Seite 204 - Edge object

260EXTENDING FLASH CS4 PROFESSIONALFLfile objectFLfile.copy()AvailabilityFlash MX 2004 7.2.Usage FLfile.copy(fileURI, copyURI)ParametersfileURI A str

Seite 205

261EXTENDING FLASH CS4 PROFESSIONALFLfile objectExampleThe following example makes a backup copy of a configuration file named config.ini and places i

Seite 206

262EXTENDING FLASH CS4 PROFESSIONALFLfile objectSee alsoFLfile.remove(), FLfile.write()FLfile.exists()AvailabilityFlash MX 2004 7.2.Usage FLfile.exist

Seite 207

263EXTENDING FLASH CS4 PROFESSIONALFLfile objectFLfile.getAttributes()AvailabilityFlash MX 2004 7.2.Usage FLfile.getAttributes(fileOrFolderURI)Paramet

Seite 208 - Chapter 14: Element object

264EXTENDING FLASH CS4 PROFESSIONALFLfile objectFLfile.getCreationDate()AvailabilityFlash MX 2004 7.2.Usage FLfile.getCreationDate(fileOrFolderURI)Par

Seite 209

265EXTENDING FLASH CS4 PROFESSIONALFLfile objectParametersfileOrFolderURI A string, expressed as a file:/// URI, specifying the file or folder whose

Seite 210 - Element object

266EXTENDING FLASH CS4 PROFESSIONALFLfile object // Make sure the specified files exist. file1 = "file:///C|/MyApplication/MyApp.fla"; f

Seite 211

267EXTENDING FLASH CS4 PROFESSIONALFLfile objectFLfile.getSize()AvailabilityFlash MX 2004 7.2.Usage FLfile.getSize(fileURI)ParametersfileURI A string

Seite 212

7EXTENDING FLASH CS4 PROFESSIONALIntroductionOther changesThe following property has a new supported value in Flash CS4:• fill.styleThe following obje

Seite 213

268EXTENDING FLASH CS4 PROFESSIONALFLfile objectDescriptionMethod; returns an array of strings representing the contents of the folder.ExamplesThe fol

Seite 214

269EXTENDING FLASH CS4 PROFESSIONALFLfile objectExampleThe following example converts a filename from a platform-specific format to a file:/// URI, wh

Seite 215

270EXTENDING FLASH CS4 PROFESSIONALFLfile objectUsage FLfile.remove(fileOrFolderURI)ParametersfileOrFolderURI A string, expressed as a file:/// URI,

Seite 216

271EXTENDING FLASH CS4 PROFESSIONALFLfile objectParametersfileURI A string, expressed as a file:/// URI, specifying the file whose attributes you wan

Seite 217

272EXTENDING FLASH CS4 PROFESSIONALFLfile objectFLfile.uriToPlatformPath()AvailabilityFlash CS4 Professional.Usage FLfile.uriToPlatformPath(fileURI)Pa

Seite 218

273EXTENDING FLASH CS4 PROFESSIONALFLfile objectDescriptionMethod; writes the specified string to the specified file (as UTF-8). If the specified file

Seite 219

274Chapter 19: folderItem objectInheritance Item object > folderItem objectAvailabilityFlash MX 2004.DescriptionThe folderItem object is a subcl

Seite 220

275Chapter 20: fontItem objectInheritance Item object > fontItem objectAvailabilityFlash MX 2004.DescriptionThe fontItem object is a subclass of

Seite 221

276EXTENDING FLASH CS4 PROFESSIONALfontItem objectfontItem.boldAvailabilityFlash CS4 Professional.Usage fontItem.boldDescriptionProperty; a Boolean va

Seite 222 - Chapter 15: Fill object

277EXTENDING FLASH CS4 PROFESSIONALfontItem objectfontItem.italicAvailabilityFlash CS4 Professional.Usage fontItem.italicDescriptionProperty; a Boolea

Seite 223 - Fill object

iiiContentsChapter 1: IntroductionWorking with the JavaScript API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 224

8EXTENDING FLASH CS4 PROFESSIONALIntroductionContour object A Contour object represents a closed path of half edges on the boundary of a shape.Documen

Seite 225

278Chapter 21: Frame objectAvailabilityFlash MX 2004.DescriptionThe Frame object represents frames in the layer. Method summary The following methods

Seite 226

279EXTENDING FLASH CS4 PROFESSIONALFrame objectframe.actionScriptAvailabilityFlash MX 2004.Usage frame.actionScriptDescriptionProperty; a string that

Seite 227

280EXTENDING FLASH CS4 PROFESSIONALFrame objectDescriptionRead-only property; an integer that represents the number of frames in a frame sequence.Exam

Seite 228 - Chapter 16: Filter object

281EXTENDING FLASH CS4 PROFESSIONALFrame objectDescriptionMethod; returns an array of objects that represent the control points for the cubic Bézier c

Seite 229 - Filter object

282EXTENDING FLASH CS4 PROFESSIONALFrame objectExampleThe following example sets the name of the first frame in the top layer to "First Frame&quo

Seite 230

283EXTENDING FLASH CS4 PROFESSIONALFrame objectUsage frame.motionTweenRotateTimesDescriptionProperty; an integer that specifies the number of times th

Seite 231

284EXTENDING FLASH CS4 PROFESSIONALFrame objectframe.motionTweenSyncAvailabilityFlash MX 2004.Usage frame.motionTweenSyncDescriptionProperty; a Boolea

Seite 232

285EXTENDING FLASH CS4 PROFESSIONALFrame objecteaseCurve An array of objects that defines the ease curve. Each array element must be a JavaScript obj

Seite 233

286EXTENDING FLASH CS4 PROFESSIONALFrame objectDescriptionProperty; a string that specifies effects for a sound that is attached directly to a frame (

Seite 234

287EXTENDING FLASH CS4 PROFESSIONALFrame objectframe.soundLoopModeAvailabilityFlash MX 2004.Usage frame.soundLoopModeDescriptionProperty; a string tha

Seite 235

9EXTENDING FLASH CS4 PROFESSIONALIntroductionThe Flash Document Object ModelThe Flash Document Object Model (DOM) for the Flash JavaScript API consist

Seite 236

288EXTENDING FLASH CS4 PROFESSIONALFrame objectDescriptionProperty; a string that specifies the sync behavior of a sound that is attached directly to

Seite 237

289EXTENDING FLASH CS4 PROFESSIONALFrame objectExampleThe following example specifies that the motion of the tweened object should begin fairly rapidl

Seite 238

290EXTENDING FLASH CS4 PROFESSIONALFrame objectExampleThe following example specifies that a single custom ease curve should be used for all propertie

Seite 239

291Chapter 22: HalfEdge objectAvailabilityFlash MX 2004.DescriptionThe HalfEdge object is the directed side of the edge of a Shape object. An edge has

Seite 240 - Chapter 17: flash object (fl)

292EXTENDING FLASH CS4 PROFESSIONALHalfEdge objectReturnsAn Edge object. DescriptionMethod; gets the Edge object for the HalfEdge object. See Edge obj

Seite 241 - Property summary

293EXTENDING FLASH CS4 PROFESSIONALHalfEdge objectParametersNone. ReturnsA HalfEdge object. DescriptionMethod; gets the HalfEdge object on the other s

Seite 242 - Flash CS3 Professional

294EXTENDING FLASH CS4 PROFESSIONALHalfEdge objectUsage halfEdge.getVertex()ParametersNone. ReturnsA Vertex objectDescriptionMethod; gets the Vertex o

Seite 243

295EXTENDING FLASH CS4 PROFESSIONALHalfEdge objectDescriptionRead-only property; an integer with a value of 0 or 1 that specifies the index for this H

Seite 244

296Chapter 23: Instance objectInheritance Element object > Instance objectAvailabilityFlash MX 2004.DescriptionInstance is a subclass of the Ele

Seite 245

297EXTENDING FLASH CS4 PROFESSIONALInstance objectinstance.libraryItemAvailabilityFlash MX 2004.Usage instance.libraryItemDescriptionProperty; a libra

Seite 246

10EXTENDING FLASH CS4 PROFESSIONALIntroduction flash.closeAll(); fl.closeAll();The flash object contains the following child objects: The Document o

Seite 247

298Chapter 24: Item objectAvailabilityFlash MX 2004.DescriptionThe Item object is an abstract base class. Anything in the library derives from Item. S

Seite 248

299EXTENDING FLASH CS4 PROFESSIONALItem objectitem.addData()AvailabilityFlash MX 2004.Usage item.addData(name, type, data)Parametersname A string tha

Seite 249

300EXTENDING FLASH CS4 PROFESSIONALItem objectExampleThe following example gets the value of the data named myData from the first item in the library

Seite 250

301EXTENDING FLASH CS4 PROFESSIONALItem objectitem.linkageBaseClassAvailabilityFlash CS3 Professional.Usage item.linkageBaseClassDescriptionProperty;

Seite 251

302EXTENDING FLASH CS4 PROFESSIONALItem objectFor this property to be defined, the item.linkageExportForAS and/or item.linkageExportForRS properties m

Seite 252

303EXTENDING FLASH CS4 PROFESSIONALItem objectitem.linkageExportInFirstFrameAvailabilityFlash MX 2004.Usage item.linkageExportInFirstFrameDescriptionP

Seite 253

304EXTENDING FLASH CS4 PROFESSIONALItem objectitem.linkageImportForRSAvailabilityFlash MX 2004.Usage item.linkageImportForRSDescriptionProperty; a Boo

Seite 254

305EXTENDING FLASH CS4 PROFESSIONALItem objectUsage item.nameDescriptionMethod; a string that specifies the name of the library item, which includes t

Seite 255

306Chapter 25: Layer objectAvailabilityFlash MX 2004.DescriptionThe Layer object represents a layer in the timeline. The timeline.layers property cont

Seite 256

307EXTENDING FLASH CS4 PROFESSIONALLayer objectExampleThe following example stores the value of the first layer in the colorValue variable: var color

Seite 257

11EXTENDING FLASH CS4 PROFESSIONALIntroductionAll the objects in the DOM that aren’t listed in the previous table (see “The Flash Document Object Mode

Seite 258

308EXTENDING FLASH CS4 PROFESSIONALLayer object var frameArray = fl.getDocumentDOM().getTimeline().layers[0].frames; var n = frameArray.length; fo

Seite 259

309EXTENDING FLASH CS4 PROFESSIONALLayer objectlayer.lockedAvailabilityFlash MX 2004.Usage layer.lockedDescriptionProperty; a Boolean value that speci

Seite 260

310EXTENDING FLASH CS4 PROFESSIONALLayer objectDescriptionProperty; a Boolean value that specifies the status of outlines for all objects in the layer

Seite 261

311EXTENDING FLASH CS4 PROFESSIONALLayer objectExampleThe following example makes all objects in the first layer invisible: fl.getDocumentDOM().getTi

Seite 262

312Chapter 26: library objectAvailabilityFlash MX 2004.DescriptionThe library object represents the Library panel. It is a property of the Document ob

Seite 263

313EXTENDING FLASH CS4 PROFESSIONALlibrary objectProperty summary for the library objectThe following property is available for the library object:lib

Seite 264

314EXTENDING FLASH CS4 PROFESSIONALlibrary objectwith this method). Specifying a folder path is the same as using library.newFolder()library.newFolder

Seite 265

315EXTENDING FLASH CS4 PROFESSIONALlibrary objectlibrary.duplicateItem()AvailabilityFlash MX 2004.Usage library.duplicateItem( [ namePath ] )Parameter

Seite 266

316EXTENDING FLASH CS4 PROFESSIONALlibrary objectExampleThe following example opens the item circle in the test folder of the library for editing: fl

Seite 267

317EXTENDING FLASH CS4 PROFESSIONALlibrary objectReturnsAn integer value representing the item’s zero-based index value. DescriptionMethod; returns th

Seite 268

12EXTENDING FLASH CS4 PROFESSIONALIntroductionIn some cases, an object is available by specifying a property of its parent object. For example, the do

Seite 269 - A Document object

318EXTENDING FLASH CS4 PROFESSIONALlibrary objectParametersnamePath A string that specifies the name of the item. If the item is in a folder, specify

Seite 270

319EXTENDING FLASH CS4 PROFESSIONALlibrary objectParameterslinkageName A string that provides the name of the SWF linkage of the root movie clip. swf

Seite 271

320EXTENDING FLASH CS4 PROFESSIONALlibrary objectlibrary.itemsAvailabilityFlash MX 2004.Usage library.itemsDescriptionProperty; an array of item objec

Seite 272

321EXTENDING FLASH CS4 PROFESSIONALlibrary objectlibrary.newFolder()AvailabilityFlash MX 2004.Usage library.newFolder([folderPath])ParametersfolderPat

Seite 273

322EXTENDING FLASH CS4 PROFESSIONALlibrary objectlibrary.selectAll()AvailabilityFlash MX 2004.Usage library.selectAll([bSelectAll])ParametersbSelectAl

Seite 274

323EXTENDING FLASH CS4 PROFESSIONALlibrary objectReturnsA Boolean value: true if the specified item exists; false otherwise.DescriptionMethod; selects

Seite 275 - • Windows XP:

324EXTENDING FLASH CS4 PROFESSIONALlibrary objectUsage library.setItemProperty(property, value)Parametersproperty A string that is the name of the pr

Seite 276 - • Mac OS X:

325Chapter 27: Math objectAvailabilityFlash MX 2004.DescriptionThe Math object is available as a read-only property of the flash object; see fl.Math.

Seite 277

326EXTENDING FLASH CS4 PROFESSIONALMath objectMath.invertMatrix()AvailabilityFlash MX 2004.Usage Math.invertMatrix(mat)Parametersmat Indicates the Ma

Seite 278

327EXTENDING FLASH CS4 PROFESSIONALMath objectExampleThe following example stores the value for the distance between pt1 and pt2 in the dist variable:

Seite 279

13EXTENDING FLASH CS4 PROFESSIONALIntroduction 09 Vertex object 09 Edge object 07 Vertex object(shape.ver

Seite 280

328Chapter 28: Matrix objectAvailabilityFlash MX 2004.DescriptionThe Matrix object represents a transformation matrix. Property summary The following

Seite 281 - Chapter 18: FLfile object

329EXTENDING FLASH CS4 PROFESSIONALMatrix object var mat = fl.getDocumentDOM().selection[0].matrix; mat.a = 0.5; mat.b = 0.8; mat.c = 0.8*(-1);

Seite 282 - FLfile.copy()

330EXTENDING FLASH CS4 PROFESSIONALMatrix objectExampleSee the matrix.b example.matrix.dAvailabilityFlash MX 2004.Usage matrix.dDescriptionProperty; a

Seite 283 - FLfile.createFolder()

331EXTENDING FLASH CS4 PROFESSIONALMatrix objectUsage matrix.tyDescriptionProperty; a floating-point value that specifies the y-axis location of a sym

Seite 284 - FLfile.exists()

332Chapter 29: outputPanel objectAvailabilityFlash MX 2004.DescriptionThis object represents the Output panel, which displays troubleshooting informat

Seite 285 - FLfile.getAttributes()

333EXTENDING FLASH CS4 PROFESSIONALoutputPanel objectoutputPanel.save()AvailabilityFlash MX 2004; bUseSystemEncoding parameter added in Flash 8. Usage

Seite 286 - FLfile.getCreationDateObj()

334EXTENDING FLASH CS4 PROFESSIONALoutputPanel objectReturns Nothing. DescriptionMethod; sends a text string to the Output panel, terminated by a new

Seite 287 - FLfile.getModificationDate()

335Chapter 30: Oval objectInheritance Element object > Shape object > Oval objectAvailabilityFlash CS3 Professional.DescriptionThe Oval objec

Seite 288 - FLfile object

336EXTENDING FLASH CS4 PROFESSIONALOval objectOvalObject.endAngleAvailabilityFlash CS3 Professional.Usage OvalObject.endAngleDescriptionRead-only prop

Seite 289 - FLfile.listFolder()

337EXTENDING FLASH CS4 PROFESSIONALOval objectOvalObject.startAngleAvailabilityFlash CS3 Professional.Usage OvalObject.startAngleDescriptionRead-only

Seite 290 - FLfile.platformPathToURI()

14EXTENDING FLASH CS4 PROFESSIONALIntroductionSample PolyStar toolA sample JavaScript API script named PolyStar.jsfl is located in the ExtendingFlash/

Seite 291 - FLfile.remove()

338Chapter 31: Parameter objectAvailabilityFlash MX 2004.DescriptionThe Parameter object type is accessed from the screen.parameters array (which corr

Seite 292 - FLfile.setAttributes()

339EXTENDING FLASH CS4 PROFESSIONALParameter objectparameter.insertItem()AvailabilityFlash MX 2004.Usage parameter.insertItem(index, name, value, type

Seite 293

340EXTENDING FLASH CS4 PROFESSIONALParameter objectExampleThe following example sets the first parameter for a Slide, which is the autoKeyNav paramete

Seite 294 - FLfile.write()

341EXTENDING FLASH CS4 PROFESSIONALParameter objectExampleThe following example removes the element at index 1 from the labelPlacement parameter of a

Seite 295

342EXTENDING FLASH CS4 PROFESSIONALParameter objectparameter.valueTypeAvailabilityFlash MX 2004.Usage parameter.valueTypeDescriptionRead-only property

Seite 296 - Chapter 19: folderItem object

343Chapter 32: Path objectAvailabilityFlash MX 2004.DescriptionThe Path object defines a sequence of line segments (straight, curved, or both), which

Seite 297 - Chapter 20: fontItem object

344EXTENDING FLASH CS4 PROFESSIONALPath objectyAnchor A floating-point number that specifies the y position of the first control point. x2 A floatin

Seite 298

345EXTENDING FLASH CS4 PROFESSIONALPath objectExampleThe following example creates a new path, stores it in the myPath variable, and assigns the curve

Seite 299

346EXTENDING FLASH CS4 PROFESSIONALPath objectDescriptionMethod; removes all points from the path. ExampleThe following example removes all points fro

Seite 300 - Chapter 21: Frame object

347EXTENDING FLASH CS4 PROFESSIONALPath objectbSupressStroke A Boolean value that, if set to true, suppresses the stroke that would be applied to the

Seite 301

15Chapter 2: Top-Level Functions and MethodsAbout this sectionThis section describes the top-level functions and methods that are available when you u

Seite 302 - Frame object

348EXTENDING FLASH CS4 PROFESSIONALPath object var myPath = fl.drawingLayer.newPath(); myPath.addPoint(0, 0); myPath.addPoint(0, 30); myPath.add

Seite 303

349Chapter 33: presetItem objectAvailabilityFlash CS4 Professional.DescriptionThe presetItem object represents an item (preset or folder) in the Motio

Seite 304

350EXTENDING FLASH CS4 PROFESSIONALpresetItem objectfl.outputPanel.clear(); var presetItemArray=fl.presetPanel.items; for (i=0;i<presetItemArray.

Seite 305

351EXTENDING FLASH CS4 PROFESSIONALpresetItem objectpresetItem.nameAvailabilityFlash CS4 Professional.Usage presetItem.nameDescriptionRead-only proper

Seite 306

352EXTENDING FLASH CS4 PROFESSIONALpresetItem objectUsage presetItem.pathDescriptionRead-only property: a string that represents the path to the item

Seite 307

353Chapter 34: presetPanel objectAvailabilityFlash CS4 Professional.DescriptionThe presetPanel object represents the Motion Presets panel (Window >

Seite 308

354EXTENDING FLASH CS4 PROFESSIONALpresetPanel objectpresetPanel.addNewItem()AvailabilityFlash CS4 Professional. Usagefl. presetPanel.addNewItem( [na

Seite 309

355EXTENDING FLASH CS4 PROFESSIONALpresetPanel objectDescriptionMethod; applies the specified or currently selected preset to the currently selected i

Seite 310

356EXTENDING FLASH CS4 PROFESSIONALpresetPanel objectpresetPanel.deleteItem()AvailabilityFlash CS4 Professional.Usage presetPanel.deleteItem( [namePat

Seite 311

357EXTENDING FLASH CS4 PROFESSIONALpresetPanel objectDescriptionMethod; expands or collapses the currently selected folder or folders in the Motion Pr

Seite 312 - See also

16EXTENDING FLASH CS4 PROFESSIONALTop-Level Functions and MethodsDescriptionFunction; called when the extensible tool becomes active (that is, when th

Seite 313 - Chapter 22: HalfEdge object

358EXTENDING FLASH CS4 PROFESSIONALpresetPanel object//Exports fly-in-left to C:\My Presets\fly-in-left.xml fl.presetPanel.exportItem("file:///C

Seite 314 - HalfEdge object

359EXTENDING FLASH CS4 PROFESSIONALpresetPanel objectpresetPanel.getSelectedItems()AvailabilityFlash CS4 Professional.UsagepresetPanel.getSelectedItem

Seite 315

360EXTENDING FLASH CS4 PROFESSIONALpresetPanel objectDescriptionMethod; adds a preset to the Motion Presets panel from a specified XML file. The path

Seite 316

361EXTENDING FLASH CS4 PROFESSIONALpresetPanel objectUsagepresetPanel.moveToFolder(folderPath [, namePath] )ParametersfolderPath A string that specif

Seite 317 - Description

362EXTENDING FLASH CS4 PROFESSIONALpresetPanel objectNote: You can’t add folders to the Default Presets folder.ExampleThe following example adds a fol

Seite 318 - Chapter 23: Instance object

363EXTENDING FLASH CS4 PROFESSIONALpresetPanel objectUsagepresetPanel.selectItem(namePath [, bReplaceCurrentSelection [, bSelect] ])ParametersnamePath

Seite 319 - instance.libraryItem

364Chapter 35: Rectangle objectInheritance Element object > Shape object > Rectangle objectAvailabilityFlash CS3 Professional.DescriptionThe

Seite 320 - Chapter 24: Item object

365EXTENDING FLASH CS4 PROFESSIONALRectangle objectRectangleObject.bottomRightRadius AvailabilityFlash CS3 Professional.Usage RectangleObject.bottomRi

Seite 321 - Item object

366EXTENDING FLASH CS4 PROFESSIONALRectangle objectDescriptionRead-only property; a float value that sets the radius of all corners of the rectangle (

Seite 322

367Chapter 36: Screen objectAvailabilityFlash MX 2004.DescriptionThe Screen object represents a single screen in a slide or form document. This object

Seite 323

17EXTENDING FLASH CS4 PROFESSIONALTop-Level Functions and MethodsUsage function configureTool() { // statements }ParametersNone. ReturnsNothing.

Seite 324

368EXTENDING FLASH CS4 PROFESSIONALScreen objectUsage screen.accNameDescriptionProperty; a string that is equivalent to the Name field in the Accessib

Seite 325

369EXTENDING FLASH CS4 PROFESSIONALScreen objectDescriptionProperty; a string that is equivalent to the Description field in the Accessibility panel.

Seite 326

370EXTENDING FLASH CS4 PROFESSIONALScreen objectExampleThe following example checks to see if the first screen in the outline is hidden and changes th

Seite 327

371EXTENDING FLASH CS4 PROFESSIONALScreen objectExampleThe following example checks to see if the current document allows screens (because it is a sli

Seite 328 - Chapter 25: Layer object

372EXTENDING FLASH CS4 PROFESSIONALScreen objectExampleThe following example stores the parameters for the second screen in the outline to the parms v

Seite 329 - Layer object

373EXTENDING FLASH CS4 PROFESSIONALScreen objectExampleThe following example checks to see if the current document is a slide or form, and if it is, r

Seite 330

374EXTENDING FLASH CS4 PROFESSIONALScreen object var theTabIndex = fl.getDocumentDOM().screenOutline.screens[1].tabIndex;The following example sets th

Seite 331

375Chapter 37: ScreenOutline objectAvailabilityFlash MX 2004.DescriptionThe ScreenOutline object represents the group of screens in a slide or form do

Seite 332

376EXTENDING FLASH CS4 PROFESSIONALScreenOutline objectscreenOutline.copyScreenFromFile()AvailabilityFlash MX 2004.Usage screenOutline.copyScreenFromF

Seite 333

377EXTENDING FLASH CS4 PROFESSIONALScreenOutline objectDescriptionProperty; a Screen object, the currently selected screen (see Screen object).Example

Seite 334 - Chapter 26: library object

ivbitmapItem.originalCompressionType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 335 - Property Description

18EXTENDING FLASH CS4 PROFESSIONALTop-Level Functions and MethodsDescriptionMethod; displays a string in a modal Alert dialog box, along with OK and C

Seite 336

378EXTENDING FLASH CS4 PROFESSIONALScreenOutline objectReturnsA Boolean value: true if the screen is successfully duplicated; false otherwise.Descript

Seite 337

379EXTENDING FLASH CS4 PROFESSIONALScreenOutline objectUsage screenOutline.insertNestedScreen([name [, referenceScreen [, screenTypeName]]])Parameters

Seite 338

380EXTENDING FLASH CS4 PROFESSIONALScreenOutline objectDescriptionMethod; inserts a new blank screen of a specified type into the document at a specif

Seite 339

381EXTENDING FLASH CS4 PROFESSIONALScreenOutline objectParametersnewScreenName A string that specifies the new name of the screen.oldScreenName A st

Seite 340

382EXTENDING FLASH CS4 PROFESSIONALScreenOutline objectDescriptionRead-only property; the array of top-level Screen objects contained in the document

Seite 341

383EXTENDING FLASH CS4 PROFESSIONALScreenOutline objectParametersproperty A string that specifies the property to set.value The new value for the pr

Seite 342

384Chapter 38: Shape objectInheritance Element object > Shape objectAvailabilityFlash MX 2004.DescriptionThe Shape object is a subclass of the E

Seite 343

385EXTENDING FLASH CS4 PROFESSIONALShape objectshape.beginEdit()AvailabilityFlash MX 2004.Usage shape.beginEdit()ParametersNone. ReturnsNothing. Descr

Seite 344

386EXTENDING FLASH CS4 PROFESSIONALShape objectshape.deleteEdge()AvailabilityFlash MX 2004.Usage shape.deleteEdge(index)Parametersindex A zero-based

Seite 345

387EXTENDING FLASH CS4 PROFESSIONALShape objectParametersNone. Returns Nothing. DescriptionMethod; defines the end of an edit session for the shape. A

Seite 346

19EXTENDING FLASH CS4 PROFESSIONALTop-Level Functions and MethodsUsage function keyDown() { // statements }ParametersNone. ReturnsNothing. Descri

Seite 347 - Chapter 27: Math object

388EXTENDING FLASH CS4 PROFESSIONALShape objectshape.isDrawingObjectAvailabilityFlash 8.Usage shape.isDrawingObjectDescriptionRead-only property; if t

Seite 348 - Math.pointDistance()

389EXTENDING FLASH CS4 PROFESSIONALShape objectshape.isOvalObjectAvailabilityFlash CS3 Professional.Usage shape.isOvalObjectDescriptionRead-only prope

Seite 349 - Math object

390EXTENDING FLASH CS4 PROFESSIONALShape objectUsage shape.membersDescriptionRead-only property; an array of objects in the currently selected group.

Seite 350 - Chapter 28: Matrix object

391EXTENDING FLASH CS4 PROFESSIONALShape objectDescriptionRead-only property; an array of Vertex objects (see Vertex object).ExampleThe following exam

Seite 351 - Matrix object

392Chapter 39: SoundItem objectInheritance Item object > SoundItem objectAvailabilityFlash MX 2004.DescriptionThe SoundItem object is a subclass

Seite 352

393EXTENDING FLASH CS4 PROFESSIONALSoundItem objectsoundItem.bitRateAvailabilityFlash MX 2004.Usage soundItem.bitRateDescriptionProperty; a string tha

Seite 353 - matrix.ty

394EXTENDING FLASH CS4 PROFESSIONALSoundItem objectIf you want to specify a value for this property, set soundItem.useImportedMP3Quality to false.Exam

Seite 354 - fl.outputPanel.clear();

395EXTENDING FLASH CS4 PROFESSIONALSoundItem objectDescriptionProperty; a Boolean value available only for MP3 and Raw compression types. Setting this

Seite 355

396EXTENDING FLASH CS4 PROFESSIONALSoundItem objectUsage soundItem.fileLastModifiedDateDescriptionRead-only property: a string containing a hexadecima

Seite 356

397EXTENDING FLASH CS4 PROFESSIONALSoundItem objectUsage soundItem.qualityDescriptionProperty; a string that specifies the playback quality of a sound

Seite 357 - Chapter 30: Oval object

20EXTENDING FLASH CS4 PROFESSIONALTop-Level Functions and Methods function keyUp() { fl.trace("Key is released"); }See alsokeyDown()mou

Seite 358 - OvalObject.innerRadius

398EXTENDING FLASH CS4 PROFESSIONALSoundItem objectDescriptionRead-only property: a Boolean value of true if the file that was imported to the Library

Seite 359 - OvalObject.startAngle

399EXTENDING FLASH CS4 PROFESSIONALSoundItem objectDescriptionRead-only property: a string, expressed as a file:/// URI, that represents the path and

Seite 360 - Chapter 31: Parameter object

400Chapter 40: Stroke objectAvailabilityFlash MX 2004.DescriptionThe Stroke object contains all the settings for a stroke, including the custom settin

Seite 361 - Parameter object

401EXTENDING FLASH CS4 PROFESSIONALStroke objectstroke.breakAtCornersAvailabilityFlash MX 2004. Deprecated in Flash CS3 in favor of stroke.joinType.Us

Seite 362

402EXTENDING FLASH CS4 PROFESSIONALStroke objectstroke.colorAvailabilityFlash MX 2004. In Flash 8 and later, this property is deprecated in favor of s

Seite 363

403EXTENDING FLASH CS4 PROFESSIONALStroke object var myStroke = fl.getDocumentDOM().getCustomStroke(); myStroke.style = "hatched"; myS

Seite 364

404EXTENDING FLASH CS4 PROFESSIONALStroke objectstroke.densityAvailabilityFlash MX 2004.Usage stroke.densityDescriptionProperty; a string that specifi

Seite 365 - Chapter 32: Path object

405EXTENDING FLASH CS4 PROFESSIONALStroke objectstroke.dotSpaceAvailabilityFlash MX 2004.Usage stroke.dotSpaceDescriptionProperty; an integer that spe

Seite 366 - Path object

406EXTENDING FLASH CS4 PROFESSIONALStroke objectstroke.jiggleAvailabilityFlash MX 2004.Usage stroke.jiggleDescriptionProperty; a string that specifies

Seite 367

407EXTENDING FLASH CS4 PROFESSIONALStroke objectUsage stroke.lengthDescriptionProperty; a string that specifies the length of a hatch line. This prope

Seite 368

21EXTENDING FLASH CS4 PROFESSIONALTop-Level Functions and MethodsParameterspt A point that specifies the location of the mouse when the button is pre

Seite 369

408EXTENDING FLASH CS4 PROFESSIONALStroke objectUsage stroke.patternDescriptionProperty; a string that specifies the pattern of a ragged line. This pr

Seite 370

409EXTENDING FLASH CS4 PROFESSIONALStroke objectDescriptionProperty; a string that specifies the type of scale to be applied to the stroke. Acceptable

Seite 371 - Chapter 33: presetItem object

410EXTENDING FLASH CS4 PROFESSIONALStroke object var myStroke = fl.getDocumentDOM().getCustomStroke(); myStroke.style = "hatched"; myS

Seite 372

411EXTENDING FLASH CS4 PROFESSIONALStroke object• If value is "hatched", there are six additional properties: hatchThickness, space, jiggle,

Seite 373

412EXTENDING FLASH CS4 PROFESSIONALStroke object var myStroke = fl.getDocumentDOM().getCustomStroke(); myStroke.style = "stipple"; myS

Seite 374

413EXTENDING FLASH CS4 PROFESSIONALStroke object var myStroke = fl.getDocumentDOM().getCustomStroke(); myStroke.style = "ragged"; mySt

Seite 375

414Chapter 41: swfPanel objectAvailabilityFlash CS4 Professional.DescriptionThe swfPanel object represents a Window SWF panel. Window SWF panels are S

Seite 376

415EXTENDING FLASH CS4 PROFESSIONALswfPanel objectDescriptionMethod; works in conjunction with the ActionScript ExternalInterface.addCallback() and MM

Seite 377

416EXTENDING FLASH CS4 PROFESSIONALswfPanel objectfunction callMyPanel(panelName, arg) { if(fl.swfPanels.length > 0){ for(x = 0; x < fl.swfPa

Seite 378

417EXTENDING FLASH CS4 PROFESSIONALswfPanel objectSee alsoswfPanel.path, fl.swfPanelsswfPanel.pathAvailabilityFlash CS4 Professional.Usage swfPanel.pa

Seite 379

22EXTENDING FLASH CS4 PROFESSIONALTop-Level Functions and Methods function mouseMove() { fl.trace("moving"); } function mouseMove

Seite 380

418Chapter 42: SymbolInstance objectInheritance Element object > Instance object > SymbolInstance objectAvailabilityFlash MX 2004.Description

Seite 381

419EXTENDING FLASH CS4 PROFESSIONALSymbolInstance objectsymbolInstance.accNameAvailabilityFlash MX 2004.Usage symbolInstance.accNameDescriptionPropert

Seite 382

420EXTENDING FLASH CS4 PROFESSIONALSymbolInstance objectsymbolInstance.actionScriptAvailabilityFlash MX 2004.Usage symbolInstance.actionScriptDescript

Seite 383

421EXTENDING FLASH CS4 PROFESSIONALSymbolInstance objectUsage symbolInstance.buttonTrackingDescriptionProperty; a string that, for button symbols only

Seite 384 - • No item is selected

422EXTENDING FLASH CS4 PROFESSIONALSymbolInstance objectExampleThe following example subtracts 100 from the alpha setting of the selected symbol insta

Seite 385

423EXTENDING FLASH CS4 PROFESSIONALSymbolInstance objectDescriptionProperty; an integer that is part of the color transformation for the instance. Thi

Seite 386 - Chapter 35: Rectangle object

424EXTENDING FLASH CS4 PROFESSIONALSymbolInstance objectUsage symbolInstance.colorModeDescriptionProperty; a string that specifies the color mode as i

Seite 387 - RectangleObject.lockFlag

425EXTENDING FLASH CS4 PROFESSIONALSymbolInstance object fl.getDocumentDOM().selection[0].colorRedPercent = 10; symbolInstance.descriptionAvailability

Seite 388 - Rectangle object

426EXTENDING FLASH CS4 PROFESSIONALSymbolInstance objectsymbolInstance.firstFrameAvailabilityFlash MX 2004.Usage symbolInstance.firstFrameDescriptionP

Seite 389 - Chapter 36: Screen object

427EXTENDING FLASH CS4 PROFESSIONALSymbolInstance objectsymbolInstance.loopAvailabilityFlash MX 2004.Usage symbolInstance.loopDescriptionProperty; a s

Seite 390 - Screen object

23EXTENDING FLASH CS4 PROFESSIONALTop-Level Functions and MethodsParametersNone. ReturnsNothing. DescriptionFunction; called when the extensible tool

Seite 391

428EXTENDING FLASH CS4 PROFESSIONALSymbolInstance objectUsage symbolInstance.silentDescriptionProperty; a Boolean value that enables or disables the a

Seite 392

429EXTENDING FLASH CS4 PROFESSIONALSymbolInstance objectDescriptionProperty; an integer that is equivalent to the Tab index field in the Accessibility

Seite 393

430Chapter 43: SymbolItem objectInheritance Item object > SymbolItem objectAvailabilityFlash MX 2004.DescriptionThe SymbolItem object is a subcl

Seite 394

431EXTENDING FLASH CS4 PROFESSIONALSymbolItem objectReturns Nothing. DescriptionMethod; converts a symbol item in the library to a compiled movie clip

Seite 395

432EXTENDING FLASH CS4 PROFESSIONALSymbolItem objectParametersoutputURI A string, expressed as a file:/// URI, that specifies the SWF file to which t

Seite 396

433EXTENDING FLASH CS4 PROFESSIONALSymbolItem objectExampleThe following example specifies the locations of the 9-slice guides: fl.getDocumentDOM().li

Seite 397

434EXTENDING FLASH CS4 PROFESSIONALSymbolItem objectsymbolItem.sourceLibraryNameAvailabilityFlash MX 2004.Usage symbolItem.sourceLibraryNameDescriptio

Seite 398

435EXTENDING FLASH CS4 PROFESSIONALSymbolItem objectDescriptionRead-only property; a Timeline object. ExampleThe following example obtains and shows t

Seite 399 - ScreenOutline object

436Chapter 44: Text objectInheritance Element object > Text objectAvailabilityFlash MX 2004.DescriptionThe Text object represents a single text

Seite 400

437EXTENDING FLASH CS4 PROFESSIONALText objecttext.accNameAvailabilityFlash MX 2004.Usage text.accNameDescriptionProperty; a string that is equivalent

Seite 401

24EXTENDING FLASH CS4 PROFESSIONALTop-Level Functions and MethodssetCursor()AvailabilityFlash MX 2004.Usage function setCursor() { // statements

Seite 402

438EXTENDING FLASH CS4 PROFESSIONALText object var doc = fl.getDocumentDOM(); var theName = doc.selection[0].accName; The following example sets the

Seite 403

439EXTENDING FLASH CS4 PROFESSIONALText objecttext.autoExpandAvailabilityFlash MX 2004.Usage text.autoExpandDescriptionProperty; a Boolean value. For

Seite 404

440EXTENDING FLASH CS4 PROFESSIONALText objectExampleThe following example retrieves the description of the object: var doc = fl.getDocumentDOM(); v

Seite 405

441EXTENDING FLASH CS4 PROFESSIONALText objectThe following example resets the property: var doc = fl.getDocumentDOM(); doc.selection[0].embedRanges

Seite 406 - Chapter 38: Shape object

442EXTENDING FLASH CS4 PROFESSIONALText objectParametersattrName A string that specifies the name of the TextAttrs object property to be returned. Fo

Seite 407 - Shape object

443EXTENDING FLASH CS4 PROFESSIONALText objectReturnsA string of the text in the specified range.DescriptionMethod; retrieves the specified range of t

Seite 408

444EXTENDING FLASH CS4 PROFESSIONALText objectThis property works only with dynamic or input text and generates a warning if used with static text. Th

Seite 409

445EXTENDING FLASH CS4 PROFESSIONALText objecttext.renderAsHTMLAvailabilityFlash MX 2004.Usage text.renderAsHTMLDescriptionProperty; a Boolean value.

Seite 410

446EXTENDING FLASH CS4 PROFESSIONALText objectInput text is always selectable. Flash generates a warning when this property is set to false and used w

Seite 411

447EXTENDING FLASH CS4 PROFESSIONALText object fl.getDocumentDOM().selection[0].selectionStart = 11; fl.getDocumentDOM().selection[0].selectionEnd =

Seite 412

25Chapter 3: actionsPanel objectAvailabilityFlash CS3 Professional.DescriptionThe actionsPanel object, which represents the currently displayed Action

Seite 413

448EXTENDING FLASH CS4 PROFESSIONALText objecttext.setTextString()AvailabilityFlash MX 2004.Usage text.setTextString(text [, startIndex [, endIndex]])

Seite 414 - Chapter 39: SoundItem object

449EXTENDING FLASH CS4 PROFESSIONALText objectUsage text.shortcutDescriptionProperty; a string that is equivalent to the Shortcut field in the Accessi

Seite 415

450EXTENDING FLASH CS4 PROFESSIONALText objectDescriptionProperty; an integer that is equivalent to the Tab Index field in the Accessibility panel. Th

Seite 416 - SoundItem object

451EXTENDING FLASH CS4 PROFESSIONALText objecttext.useDeviceFontsAvailabilityFlash MX 2004.Usage text.useDeviceFontsDescriptionProperty; a Boolean val

Seite 417

452Chapter 45: TextAttrs objectAvailabilityFlash MX 2004.DescriptionThe TextAttrs object contains all the properties of text that can be applied to a

Seite 418

453EXTENDING FLASH CS4 PROFESSIONALTextAttrs objecttextAttrs.aliasTextAvailabilityFlash MX 2004.Usage textAttrs.aliasTextDescriptionProperty; a Boolea

Seite 419

454EXTENDING FLASH CS4 PROFESSIONALTextAttrs objectDescriptionProperty; a Boolean value that determines whether Flash uses (true) or ignores (false) p

Seite 420

455EXTENDING FLASH CS4 PROFESSIONALTextAttrs objecttextAttrs.characterSpacingAvailabilityFlash MX 2004. Deprecated in Flash 8 in favor of textAttrs.le

Seite 421

456EXTENDING FLASH CS4 PROFESSIONALTextAttrs objectDescriptionProperty; the color of the fill, in one of the following formats:• A string in the forma

Seite 422 - Chapter 40: Stroke object

457EXTENDING FLASH CS4 PROFESSIONALTextAttrs objecttextAttrs.leftMarginAvailabilityFlash MX 2004.Usage textAttrs.leftMarginDescriptionProperty; an int

Seite 423

26EXTENDING FLASH CS4 PROFESSIONALactionsPanel objectExampleThe following example displays the class assigned to the variable myVar, if the cursor is

Seite 424 - Stroke object

458EXTENDING FLASH CS4 PROFESSIONALTextAttrs objectDescriptionProperty; an integer that specifies the line spacing (leading) of the paragraph. Accepta

Seite 425

459EXTENDING FLASH CS4 PROFESSIONALTextAttrs objecttextAttrs.sizeAvailabilityFlash MX 2004.Usage textAttrs.sizeDescriptionProperty; an integer that sp

Seite 426

460EXTENDING FLASH CS4 PROFESSIONALTextAttrs objectDescriptionProperty; a string that represents the URL property of the text field. This property wor

Seite 427

461Chapter 46: TextRun objectAvailabilityFlash MX 2004.DescriptionThe TextRun object represents a run of characters that have attributes that match al

Seite 428

462EXTENDING FLASH CS4 PROFESSIONALTextRun objectDescriptionProperty; the text contained in the TextRun object.ExampleThe following example displays t

Seite 429

463Chapter 47: Timeline objectAvailabilityFlash MX 2004.DescriptionThe Timeline object represents the Flash timeline, which can be accessed for the cu

Seite 430

464EXTENDING FLASH CS4 PROFESSIONALTimeline objectProperty summary The following properties are available for the Timeline object:timeline.getFramePro

Seite 431

465EXTENDING FLASH CS4 PROFESSIONALTimeline objecttimeline.addMotionGuide()AvailabilityFlash MX 2004.Usage timeline.addMotionGuide()ParametersNone. Re

Seite 432

466EXTENDING FLASH CS4 PROFESSIONALTimeline objectDescriptionMethod; adds a new layer to the document and makes it the current layer. ExampleThe follo

Seite 433

467EXTENDING FLASH CS4 PROFESSIONALTimeline objectUsage timeline.clearKeyframes([startFrameIndex [, endFrameIndex]])ParametersstartFrameIndex A zero-

Seite 434

27EXTENDING FLASH CS4 PROFESSIONALactionsPanel objectParametersNone.ReturnsA string that contains the text that is currently selected in the Actions p

Seite 435

468EXTENDING FLASH CS4 PROFESSIONALTimeline objectExampleThe following example converts Frame 2 up to, but not including, Frame 10 to blank keyframes

Seite 436 - Chapter 41: swfPanel object

469EXTENDING FLASH CS4 PROFESSIONALTimeline objecttimeline.copyFrames()AvailabilityFlash MX 2004.Usage timeline.copyFrames([startFrameIndex [, endFram

Seite 437 - • Center aligned

470EXTENDING FLASH CS4 PROFESSIONALTimeline objectDescriptionMethod; copies motion on selected frames, either from a motion tween or from frame-by-fra

Seite 438

471EXTENDING FLASH CS4 PROFESSIONALTimeline objectUsage timeline.createMotionTween([startFrameIndex [, endFrameIndex]])ParametersstartFrameIndex A ze

Seite 439

472EXTENDING FLASH CS4 PROFESSIONALTimeline objecttimeline.currentLayerAvailabilityFlash MX 2004.Usage timeline.currentLayerDescriptionProperty; the z

Seite 440

473EXTENDING FLASH CS4 PROFESSIONALTimeline objectThe following example cuts Frame 2 up to, but not including, Frame 10 from the timeline and saves th

Seite 441

474EXTENDING FLASH CS4 PROFESSIONALTimeline objectbRecurseNestedParents A Boolean value that, if set to true, causes all the layers within the specif

Seite 442 - SymbolInstance object

475EXTENDING FLASH CS4 PROFESSIONALTimeline objectDescriptionMethod; finds an array of indexes for the layers with the given name. The layer index is

Seite 443

476EXTENDING FLASH CS4 PROFESSIONALTimeline objectendFrameIndex A zero-based index that specifies the end of the range of frames to select. The range

Seite 444

477EXTENDING FLASH CS4 PROFESSIONALTimeline objecttimeline.getLayerProperty()AvailabilityFlash MX 2004.Usage timeline.getLayerProperty(property)Parame

Seite 445

vdocument.align() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 446

28EXTENDING FLASH CS4 PROFESSIONALactionsPanel objectactionsPanel.hasSelection()AvailabilityFlash CS3 Professional.Usage actionsPanel.hasSelection()Pa

Seite 447

478EXTENDING FLASH CS4 PROFESSIONALTimeline object var timeline = fl.getDocumentDOM().getTimeline(); timeline.setSelectedFrames(5,10); timeline.se

Seite 448

479EXTENDING FLASH CS4 PROFESSIONALTimeline objectIf the specified or selected frame is a regular frame, the keyframe is inserted at the frame. For ex

Seite 449

480EXTENDING FLASH CS4 PROFESSIONALTimeline objectIf no parameters are specified, this method works as follows:• If one or more frames are selected, t

Seite 450

481EXTENDING FLASH CS4 PROFESSIONALTimeline objectParametersframeNumIndex A zero-based index that specifies the frame index at which to insert the ke

Seite 451

482EXTENDING FLASH CS4 PROFESSIONALTimeline objectUsage timeline.layersDescriptionRead-only property; an array of layer objects. ExampleThe following

Seite 452 - Chapter 43: SymbolItem object

483EXTENDING FLASH CS4 PROFESSIONALTimeline objectReturns Nothing. DescriptionMethod; pastes the range of frames from the clipboard into the specified

Seite 453 - SymbolItem object

484EXTENDING FLASH CS4 PROFESSIONALTimeline objecttimeline.removeFrames()AvailabilityFlash MX 2004.Usage timeline.removeFrames([startFrameIndex [, end

Seite 454

485EXTENDING FLASH CS4 PROFESSIONALTimeline objectbAddBefore Specifies whether to move the layer before or after layerToPutItBy. If you specify false

Seite 455

486EXTENDING FLASH CS4 PROFESSIONALTimeline objecttimeline.selectAllFrames()AvailabilityFlash MX 2004.Usage timeline.selectAllFrames()ParametersNone.

Seite 456

487EXTENDING FLASH CS4 PROFESSIONALTimeline objectDescriptionMethod; sets the property of the Frame object for the selected frames. ExampleThe followi

Seite 457

29EXTENDING FLASH CS4 PROFESSIONALactionsPanel objectDescriptionMethod; replaces the currently selected text with the text specified in replacementTex

Seite 458 - Chapter 44: Text object

488EXTENDING FLASH CS4 PROFESSIONALTimeline objecttimeline.setLayerProperty()AvailabilityFlash MX 2004.Usage timeline.setLayerProperty(property, value

Seite 459 - text.accName

489EXTENDING FLASH CS4 PROFESSIONALTimeline objectReturns Nothing. DescriptionMethod; selects a range of frames in the current layer or sets the selec

Seite 460 - Text object

490EXTENDING FLASH CS4 PROFESSIONALTimeline objectExampleThe following example selects the top layer: fl.getDocumentDOM().getTimeline().setSelectedLa

Seite 461

491Chapter 48: ToolObj objectAvailabilityFlash MX 2004.DescriptionA ToolObj object represents an individual tool in the Tools panel. To access a ToolO

Seite 462

492EXTENDING FLASH CS4 PROFESSIONALToolObj objectUsage toolObj.depthDescriptionRead-only property; an integer that specifies the depth of the tool in

Seite 463

493EXTENDING FLASH CS4 PROFESSIONALToolObj objectbEnable A Boolean value that determines whether to enable (true) or disable (false) the control. Ret

Seite 464

494EXTENDING FLASH CS4 PROFESSIONALToolObj objectExampleThe following commands in the mouseDown() method of a tool’s JavaScript file will show that to

Seite 465

495EXTENDING FLASH CS4 PROFESSIONALToolObj objectDescriptionMethod; sets the string that appears in the pop-up menu as the name for the tool. This met

Seite 466

496EXTENDING FLASH CS4 PROFESSIONALToolObj object <properties> <property name="Style" variable="style" list=&quo

Seite 467

497EXTENDING FLASH CS4 PROFESSIONALToolObj objectExampleThe following example specifies that the shape Property inspector should be used when the tool

Seite 468

30EXTENDING FLASH CS4 PROFESSIONALactionsPanel objectactionsPanel.setSelection()AvailabilityFlash CS3 Professional.Usage actionsPanel.setSelection(sta

Seite 469

498EXTENDING FLASH CS4 PROFESSIONALToolObj objectDescriptionMethod; sets the tooltip that appears when the mouse is held over the tool icon. This meth

Seite 470

499EXTENDING FLASH CS4 PROFESSIONALToolObj objectbShow A Boolean value that determines whether to show or hide the specified control (true shows the

Seite 471

500Chapter 49: Tools objectAvailabilityFlash MX 2004.DescriptionThe Tools object is accessible from the flash object (fl.tools). The tools.toolObjs pr

Seite 472

501EXTENDING FLASH CS4 PROFESSIONALTools objectUsage tools.activeToolDescriptionRead-only property; returns the ToolObj object for the currently activ

Seite 473

502EXTENDING FLASH CS4 PROFESSIONALTools objectDescriptionMethod; takes two points and returns a new adjusted or constrained point. If the Shift key i

Seite 474 - Chapter 45: TextAttrs object

503EXTENDING FLASH CS4 PROFESSIONALTools objectExampleThe following example displays the integer value of the most recently pressed key: var theKey =

Seite 475 - TextAttrs object

504EXTENDING FLASH CS4 PROFESSIONALTools objecttools.penLocAvailabilityFlash MX 2004.Usage tools.penLocDescriptionRead-only property; a point that rep

Seite 476

505EXTENDING FLASH CS4 PROFESSIONALTools objectDescriptionMethod; sets the pointer to a specified appearance. ExampleThe following example sets the po

Seite 477

506EXTENDING FLASH CS4 PROFESSIONALTools objecttools.toolObjsAvailabilityFlash MX 2004.Usage tools.toolObjsDescriptionRead-only property; an array of

Seite 478

507Chapter 50: Vertex objectAvailabilityFlash MX 2004.DescriptionThe Vertex object is the part of the shape data structure that holds the coordinate d

Seite 479

31EXTENDING FLASH CS4 PROFESSIONALactionsPanel objectDescriptionMethod; clears any text in the Actions panel and then adds the text specified in repla

Seite 480

508EXTENDING FLASH CS4 PROFESSIONALVertex object var shape = fl.getDocumentDOM().selection[0]; var hEdge = shape.edges[0].getHalfEdge(0); var the

Seite 481

509EXTENDING FLASH CS4 PROFESSIONALVertex objectDescriptionRead-only property; the x location of the vertex, in pixels. ExampleThe following example d

Seite 482

510Chapter 51: VideoItem objectInheritance Item object > VideoItem objectAvailabilityFlash MX 2004.DescriptionThe VideoItem object is a subclass

Seite 483 - Chapter 46: TextRun object

511EXTENDING FLASH CS4 PROFESSIONALVideoItem objectReturnsA Boolean value of true if the file is exported successfully; false otherwise.DescriptionMet

Seite 484 - Output panel:

512EXTENDING FLASH CS4 PROFESSIONALVideoItem objectDescriptionRead-only property: a Boolean value of true if the file that was imported to the Library

Seite 485 - Chapter 47: Timeline object

513EXTENDING FLASH CS4 PROFESSIONALVideoItem objectExampleThe following example displays the name and source file path of any items in the library tha

Seite 486

514Chapter 52: XMLUI objectAvailabilityFlash MX 2004.DescriptionFlash 8 supports custom dialog boxes written in a subset of the XML User Interface Lan

Seite 487 - Timeline object

515EXTENDING FLASH CS4 PROFESSIONALXMLUI objectParametersNone. Returns Nothing. DescriptionMethod; closes the current XMLUI dialog box with an accept

Seite 488

516EXTENDING FLASH CS4 PROFESSIONALXMLUI objectReturnsA string that represents the value of the specified property. In cases where you might expect a

Seite 489

517EXTENDING FLASH CS4 PROFESSIONALXMLUI objectxmlui.getEnabled()AvailabilityFlash 8.Usage xmlui.getEnabled(controlID)ParameterscontrolID A string th

Seite 490

32Chapter 4: BitmapInstance objectInheritance Element object > Instance object > BitmapInstance objectAvailabilityFlash MX 2004.DescriptionTh

Seite 491

518EXTENDING FLASH CS4 PROFESSIONALXMLUI object var isVisible = fl.xmlui.getVisible("myListBox"); fl.trace(isVisible);See alsoxmlui.setVis

Seite 492

519EXTENDING FLASH CS4 PROFESSIONALXMLUI objectelementItem A JavaScript object with a string property named label and an optional string property nam

Seite 493

520EXTENDING FLASH CS4 PROFESSIONALXMLUI object var nameArray = new Array("January", "February", "March"); var monthA

Seite 494

521EXTENDING FLASH CS4 PROFESSIONALXMLUI objectParameterscontrolID A string that specifies the ID attribute of the control you want to show or hide.v

Seite 495

522Chapter 53: C-Level ExtensibilityThis chapter describes the C-level extensibility mechanism, which lets you implement Adobe Flash CS4 Professional

Seite 496

523EXTENDING FLASH CS4 PROFESSIONALC-Level ExtensibilityMacintosh HD/Users/username/Library/Application Support/Adobe/Flash CS3/language/Configuration

Seite 497

524EXTENDING FLASH CS4 PROFESSIONALC-Level Extensibility (mmEnv.defineFunction ? (*(mmEnv.defineFunction))(mmEnv.libObj, n, c, a) \ : JS_FALSE)

Seite 498

525EXTENDING FLASH CS4 PROFESSIONALC-Level Extensibility #define JS_GetArrayLength(c, o) \ (mmEnv.getArrayLength ? (*(mmEnv.getArrayLength))(c, o) :

Seite 499

526EXTENDING FLASH CS4 PROFESSIONALC-Level Extensibility // Windows __declspec( dllexport ) void MM_InitWrapper( MM_Environment *env, unsigned int e

Seite 500

527EXTENDING FLASH CS4 PROFESSIONALC-Level Extensibility // Source code in C // Save the DLL or shared library with the name "Sample". #

Seite 501

33EXTENDING FLASH CS4 PROFESSIONALBitmapInstance objectThe byte array is meaningful only when referenced by a DLL or shared library. You typically use

Seite 502

528EXTENDING FLASH CS4 PROFESSIONALC-Level Extensibilitytypedef struct JSObject JSObjectA pointer to this opaque data type passes to the C-level funct

Seite 503

529EXTENDING FLASH CS4 PROFESSIONALC-Level Extensibilitytypedef JSBool (*JSNative)(JSContext *cx, JSObject *obj, unsigned int argc, jsval *argv, jsval

Seite 504

530EXTENDING FLASH CS4 PROFESSIONALC-Level ExtensibilityDescriptionMethod; extracts a function argument from a jsval structure, converts it to a strin

Seite 505

531EXTENDING FLASH CS4 PROFESSIONALC-Level ExtensibilityArgumentsJSContext *cx, jsval v, double *dp • The cx argument is the opaque JSContext pointer

Seite 506

532EXTENDING FLASH CS4 PROFESSIONALC-Level ExtensibilityReturnsA Boolean value: JS_TRUE indicates success; JS_FALSE indicates failure.JSBool JS_String

Seite 507

533EXTENDING FLASH CS4 PROFESSIONALC-Level ExtensibilityJSVal JS_BooleanToValue()Usage jsval JS_BooleanToValue(JSBool bv);DescriptionMethod; stores a

Seite 508

534EXTENDING FLASH CS4 PROFESSIONALC-Level ExtensibilityReturnsA JSVal structure that contains the integer that passed to the function as an argument.

Seite 509

535EXTENDING FLASH CS4 PROFESSIONALC-Level ExtensibilityArgumentsJSContext *cx, unsigned int length, jsval *v• The cx argument is the opaque JSContext

Seite 510

536EXTENDING FLASH CS4 PROFESSIONALC-Level Extensibility• The vp argument is a pointer to a jsval where the contents of the jsval structure in the arr

Seite 511

537EXTENDING FLASH CS4 PROFESSIONALC-Level Extensibility• The sz argument is the size of the string, in bytes. If sz is 0, the length of the null-term

Seite 512

34EXTENDING FLASH CS4 PROFESSIONALBitmapInstance objectbitmapInstance.setBits()AvailabilityFlash MX 2004.Usage bitmapInstance.setBits(bitmap)Parameter

Seite 514

35EXTENDING FLASH CS4 PROFESSIONALBitmapInstance objectExampleThe following code gets the height of the bitmap in pixels: // Get the number of pixels

Seite 515 - ToolObj object

36Chapter 5: BitmapItem objectInheritance Item object > BitmapItem object AvailabilityFlash MX 2004.DescriptionA BitmapItem object refers to a b

Seite 516

37EXTENDING FLASH CS4 PROFESSIONALBitmapItem objectbitmapItem.allowSmoothingAvailabilityFlash MX 2004. Usage bitmapItem.allowSmoothingDescriptionPrope

Seite 517

vidocument.exitEditMode() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 518

38EXTENDING FLASH CS4 PROFESSIONALBitmapItem objectParametersfileURI A string, expressed as a file:/// URI, that specifies the path and name of the e

Seite 519

39EXTENDING FLASH CS4 PROFESSIONALBitmapItem objectDescriptionRead-only property; a string that specifies whether the specified item was imported as a

Seite 520

40EXTENDING FLASH CS4 PROFESSIONALBitmapItem objectExampleAssuming the first item in the Library is a bitmap item, the following code displays "t

Seite 521

41EXTENDING FLASH CS4 PROFESSIONALBitmapItem objectDescriptionRead-only property; a string, expressed as a file:/// URI, that represents the path and

Seite 522 - Chapter 49: Tools object

42EXTENDING FLASH CS4 PROFESSIONALBitmapItem objectDescriptionProperty; a Boolean value that specifies whether to use the default imported JPEG qualit

Seite 523 - Tools object

43Chapter 6: CompiledClipInstance objectInheritance Element object > Instance object > CompiledClipInstance objectAvailabilityFlash MX 2004.D

Seite 524

44EXTENDING FLASH CS4 PROFESSIONALCompiledClipInstance object // Get the name of the object. var theName = fl.getDocumentDOM().selection[0].accName;

Seite 525

45EXTENDING FLASH CS4 PROFESSIONALCompiledClipInstance objectcompiledClipInstance.forceSimpleAvailabilityFlash MX 2004.Usage compiledClipInstance.forc

Seite 526

46EXTENDING FLASH CS4 PROFESSIONALCompiledClipInstance objectUsage compiledClipInstance.silentDescriptionProperty; a Boolean value that enables or dis

Seite 527

47Chapter 7: compilerErrors objectAvailabilityFlash CS3 Professional.DescriptionThe compilerErrors object, which represents the Compiler Errors panel,

Seite 528 - Flash MX 2004

viidocument.removeAllFilters() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 529 - Chapter 50: Vertex object

48EXTENDING FLASH CS4 PROFESSIONALcompilerErrors objectcompilerErrors.save()AvailabilityFlash CS3 Professional.Usage compilerErrors.save(fileURI [, bA

Seite 530 - Vertex object

49Chapter 8: ComponentInstance objectInheritance Element object > Instance object > SymbolInstance object > ComponentInstance objectAvaila

Seite 531

50Chapter 9: componentsPanel objectAvailabilityFlash MX 2004.DescriptionThe componentsPanel object, which represents the Components panel, is a proper

Seite 532 - Chapter 51: VideoItem object

51EXTENDING FLASH CS4 PROFESSIONALcomponentsPanel object fl.componentsPanel.addItemToDocument({x:0, y:0}, "User Interface", "CheckBox&q

Seite 533 - VideoItem object

52Chapter 10: Contour objectAvailabilityFlash MX 2004.DescriptionA Contour object represents a closed path of half edges on the boundary of a shape. M

Seite 534

53EXTENDING FLASH CS4 PROFESSIONALContour objectcontour.getHalfEdge()AvailabilityFlash MX 2004.Usagecontour.getHalfEdge()ParametersNone.ReturnsA HalfE

Seite 535

54EXTENDING FLASH CS4 PROFESSIONALContour objectcontour.interiorAvailabilityFlash MX 2004.Usagecontour.interiorDescriptionRead-only property; the valu

Seite 536 - Chapter 52: XMLUI object

55EXTENDING FLASH CS4 PROFESSIONALContour object var elt = fl.getDocumentDOM().selection[0]; elt.beginEdit(); var contourArray = elt.contours;

Seite 537 - XMLUI object

56Chapter 11: Document objectAvailabilityFlash MX 2004.DescriptionThe Document object represents the Stage. That is, only FLA files are considered doc

Seite 538

57EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.canTestMovie() Determines whether you can use the document.testMovie() method successfully.d

Seite 539

viiidocument.setStrokeStyle() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 540

58EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.enterEditMode() Switches the authoring tool into the editing mode specified by the parameter

Seite 541

59EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.intersect() Creates an intersection drawing object from all selected drawing objects.documen

Seite 542

60EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.saveAndCompact() Saves and compacts the file; equivalent to selecting File > Save and Com

Seite 543

61EXTENDING FLASH CS4 PROFESSIONALDocument objectProperty summary You can use the following properties with the Document object. document.setStageVani

Seite 544 - Integrating C functions

62EXTENDING FLASH CS4 PROFESSIONALDocument objectProperty Descriptiondocument.accName A string that is equivalent to the Name field in the Accessibili

Seite 545 - C-Level Extensibility

63EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.accNameAvailabilityFlash MX 2004.Usage document.accNameDescriptionProperty; a string that is

Seite 546

64EXTENDING FLASH CS4 PROFESSIONALDocument objecttype A string that defines the type of data to add. Acceptable values are "integer", "

Seite 547

65EXTENDING FLASH CS4 PROFESSIONALDocument object fl.getDocumentDOM().addDataToSelection("myData", "integer", 12); See alsodocumen

Seite 548 - Sample DLL implementation

66EXTENDING FLASH CS4 PROFESSIONALDocument objectitem An Item object that specifies the item to add and the library from which to add it (see Item ob

Seite 549 - Data types

67EXTENDING FLASH CS4 PROFESSIONALDocument objectExampleThe following example adds a line between the specified starting point and ending point: fl.ge

Seite 550 - The C-level API

ixedge.getHalfEdge() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Seite 551 - JSBool JS_DefineFunction()

68EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.addNewPrimitiveOval()AvailabilityFlash CS4 Professional.Usagedocument.addNewPrimitiveOval( b

Seite 552 - JSBool JS_ValueToDouble()

69EXTENDING FLASH CS4 PROFESSIONALDocument objectParametersrect A rectangle that specifies the bounds within which the new rectangle primitive is add

Seite 553 - JSBool JS_ValueToObject()

70EXTENDING FLASH CS4 PROFESSIONALDocument objectReturnsAn integer that is the index of the new profile in the profiles list. Returns -1 if a new prof

Seite 554 - JSBool JS_DoubleToValue()

71EXTENDING FLASH CS4 PROFESSIONALDocument objectbSuppressStroke A Boolean value that, if set to true, causes the method to create the rectangle with

Seite 555 - JSVal JS_IntegerToValue()

72EXTENDING FLASH CS4 PROFESSIONALDocument objectExampleThe following example adds a new scene named myScene after the current scene in the current do

Seite 556 - JSObject *JS_NewArrayObject()

73EXTENDING FLASH CS4 PROFESSIONALDocument objectUsage document.align(alignmode [, bUseDocumentBounds])Parametersalignmode A string that specifies ho

Seite 557 - JSBool JS_GetElement()

74EXTENDING FLASH CS4 PROFESSIONALDocument object if(fl.getDocumentDOM().allowScreens()) { fl.trace("screen outline is available."); }

Seite 558 - JSBool JS_ExecuteScript()

75EXTENDING FLASH CS4 PROFESSIONALDocument objectExampleThe following example specifies that instances placed on the Stage in the current document mus

Seite 559

76EXTENDING FLASH CS4 PROFESSIONALDocument objectdocument.as3StrictModeAvailabilityFlash CS3 Professional.Usage document.as3StrictModeDescriptionPrope

Seite 560

77EXTENDING FLASH CS4 PROFESSIONALDocument objectSee alsodocument.as3StrictModedocument.asVersionAvailabilityFlash CS3 Professional.Usage document.asV

Kommentare zu diesen Handbüchern

Keine Kommentare