简介
Macromedia Flash JavaScript API 概述
创建 JSFL 文件
保存 JSFL 文件
运行 JSFL 文件
JavaScript API 中的新增功能
Flash 文档对象模型
Document 对象
指定动作目标
DOM 结构摘要
实现范例
"形状"命令范例
获取和设置"滤镜"命令的范例
"多角星形"工具范例
"转换位图为矢量图"面板范例
DLL 范例
顶级函数和方法
activate()
alert()
configureEffect()
configureTool()
confirm()
deactivate()
executeEffect()
keyDown()
keyUp()
mouseDoubleClick()
mouseDown()
mouseMove()
mouseUp()
notifySettingsChanged()
prompt()
removeEffect()
setCursor()
对象
BitmapInstance 对象
bitmapInstance.getBits()
bitmapInstance.hPixels
bitmapInstance.setBits()
bitmapInstance.vPixels
BitmapItem 对象
bitmapItem.allowSmoothing
bitmapItem.compressionType
bitmapItem.quality
bitmapItem.useImportedJPEGQuality
CompiledClipInstance 对象
compiledClipInstance.accName
compiledClipInstance.actionScript
compiledClipInstance.description
compiledClipInstance.forceSimple
compiledClipInstance.shortcut
compiledClipInstance.silent
compiledClipInstance.tabIndex
ComponentInstance 对象
componentInstance.parameters
componentsPanel 对象
componentsPanel.addItemToDocument()
componentsPanel.reload()
Contour 对象
contour.getHalfEdge()
contour.interior
contour.orientation
Document 对象
document.accName
document.addDataToDocument()
document.addDataToSelection()
document.addFilter()
document.addItem()
document.addNewLine()
document.addNewOval()
document.addNewPublishProfile()
document.addNewRectangle()
document.addNewScene()
document.addNewText()
document.align()
document.allowScreens()
document.arrange()
document.autoLabel
document.backgroundColor
document.breakApart()
document.canEditSymbol()
document.canRevert()
document.canTestMovie()
document.canTestScene()
document.changeFilterOrder()
document.clipCopy()
document.clipCut()
document.clipPaste()
document.close()
document.convertLinesToFills()
document.convertToSymbol()
document.crop()
document.currentPublishProfile
document.currentTimeline
document.deleteEnvelope()
document.deletePublishProfile()
document.deleteScene()
document.deleteSelection()
document.description
document.disableAllFilters()
document.disableFilter()
document.disableOtherFilters()
document.distribute()
document.distributeToLayers()
document.documentHasData()
document.duplicatePublishProfile()
document.duplicateScene()
document.duplicateSelection()
document.editScene()
document.enableAllFilters()
document.enableFilter()
document.enterEditMode()
document.exitEditMode()
document.exportPNG()
document.exportPublishProfile()
document.exportSWF()
document.forceSimple
document.frameRate
document.getAlignToDocument()
document.getBlendMode()
document.getCustomFill()
document.getCustomStroke()
document.getDataFromDocument()
document.getElementProperty()
document.getElementTextAttr()
document.getFilters()
document.getMetadata()
document.getSelectionRect()
document.getTextString()
document.getTimeline()
document.getTransformationPoint()
document.group()
document.height
document.importFile()
document.importPublishProfile()
document.importSWF()
document.intersect()
document.library
document.livePreview
document.match()
document.mouseClick()
document.mouseDblClk()
document.moveSelectedBezierPointsBy()
document.moveSelectionBy()
document.name
document.optimizeCurves()
document.path
document.publish()
document.publishProfiles
document.punch()
document.removeDataFromDocument()
document.removeDataFromSelection()
document.removeAllFilters()
document.removeFilter()
document.renamePublishProfile()
document.renameScene()
document.reorderScene()
document.resetTransformation()
document.revert()
document.rotateSelection()
document.save()
document.saveAndCompact()
document.scaleSelection()
document.screenOutline
document.selectAll()
document.selection
document.selectNone()
document.setAlignToDocument()
document.setBlendMode()
document.setCustomFill()
document.setCustomStroke()
document.setElementProperty()
document.setElementTextAttr()
document.setFillColor()
document.setFilterProperty()
document.setFilters()
document.setInstanceAlpha()
document.setInstanceBrightness()
document.setInstanceTint()
document.setMetadata()
document.setSelectionBounds()
document.setSelectionRect()
document.setStroke()
document.setStrokeColor()
document.setStrokeSize()
document.setStrokeStyle()
document.setTextRectangle()
document.setTextSelection()
document.setTextString()
document.setTransformationPoint()
document.silent
document.skewSelection()
document.smoothSelection()
document.space()
document.straightenSelection()
document.swapElement()
document.swapStrokeAndFill()
document.testMovie()
document.testScene()
document.timelines
document.traceBitmap()
document.transformSelection()
document.unGroup()
document.union()
document.unlockAllElements()
document.viewMatrix
document.width
document.xmlPanel()
document.zoomFactor
drawingLayer 对象
drawingLayer.beginDraw()
drawingLayer.beginFrame()
drawingLayer.cubicCurveTo()
drawingLayer.curveTo()
drawingLayer.drawPath()
drawingLayer.endDraw()
drawingLayer.endFrame()
drawingLayer.lineTo()
drawingLayer.moveTo()
drawingLayer.newPath()
drawingLayer.setColor()
Edge 对象
edge.getControl()
edge.getHalfEdge()
edge.id
edge.isLine
edge.setControl()
edge.splitEdge()
Effect 对象
effect.effectName
effect.groupName
effect.sourceFile
effect.symbolType
effect.useXMLToUI
Element 对象
element.depth
element.elementType
element.getPersistentData()
element.hasPersistentData()
element.height
element.layer
element.left
element.locked
element.matrix
element.name
element.removePersistentData()
element.selected
element.setPersistentData()
element.top
element.width
Fill 对象
fill.color
fill.colorArray
fill.focalPoint
fill.linearRGB
fill.matrix
fill.overflow
fill.posArray
fill.style
Filter 对象
filter.angle
filter.blurX
filter.blurY
filter.brightness
filter.color
filter.contrast
filter.distance
filter.hideObject
filter.highlightColor
filter.hue
filter.inner
filter.knockout
filter.name
filter.quality
filter.saturation
filter.shadowColor
filter.strength
filter.type
flash 对象 (fl)
fl.activeEffect
fl.browseForFileURL()
fl.browseForFolderURL()
fl.closeAll()
fl.closeDocument()
fl.closeProject()
fl.componentsPanel
fl.configDirectory
fl.configURI
fl.contactSensitiveSelection
fl.createDocument()
fl.createNewDocList
fl.createNewDocListType
fl.createNewTemplateList
fl.createProject()
fl.documents
fl.drawingLayer
fl.effects
fl.enableImmediateUpdates()
fl.fileExists()
fl.findDocumentIndex()
fl.getAppMemoryInfo()
fl.getDocumentDOM()
fl.getProject()
fl.mapPlayerURL()
fl.Math
fl.mruRecentFileList
fl.mruRecentFileListType
fl.objectDrawingMode
fl.openDocument()
fl.openProject()
fl.openScript()
fl.outputPanel
fl.quit()
fl.reloadEffects()
fl.reloadTools()
fl.revertDocument()
fl.runScript()
fl.saveAll()
fl.saveDocument()
fl.saveDocumentAs()
fl.setActiveWindow()
fl.showIdleMessage()
fl.tools
fl.trace()
fl.version
fl.xmlui
FLfile 对象
FLfile.copy()
FLfile.createFolder()
FLfile.exists()
FLfile.getAttributes()
FLfile.getCreationDate()
FLfile.getCreationDateObj()
FLfile.getModificationDate()
FLfile.getModificationDateObj()
FLfile.getSize()
FLfile.listFolder()
FLfile.read()
FLfile.remove()
FLfile.setAttributes()
FLfile.write()
folderItem 对象
fontItem 对象
Frame 对象
frame.actionScript
frame.duration
frame.elements
frame.getCustomEase()
frame.hasCustomEase
frame.labelType
frame.motionTweenOrientToPath
frame.motionTweenRotate
frame.motionTweenRotateTimes
frame.motionTweenScale
frame.motionTweenSnap
frame.motionTweenSync
frame.name
frame.setCustomEase()
frame.shapeTweenBlend
frame.soundEffect
frame.soundLibraryItem
frame.soundLoop
frame.soundLoopMode
frame.soundName
frame.soundSync
frame.startFrame
frame.tweenEasing
frame.tweenType
frame.useSingleEaseCurve
HalfEdge 对象
halfEdge.getEdge()
halfEdge.getNext()
halfEdge.getOppositeHalfEdge()
halfEdge.getPrev()
halfEdge.getVertex()
halfEdge.id
halfEdge.index
Instance 对象
instance.instanceType
instance.libraryItem
Item 对象
item.addData()
item.getData()
item.hasData()
item.itemType
item.linkageClassName
item.linkageExportForAS
item.linkageExportForRS
item.linkageExportInFirstFrame
item.linkageIdentifier
item.linkageImportForRS
item.linkageURL
item.name
item.removeData()
Layer 对象
layer.color
layer.frameCount
layer.frames
layer.height
layer.layerType
layer.locked
layer.name
layer.outline
layer.parentLayer
layer.visible
library 对象
library.addItemToDocument()
library.addNewItem()
library.deleteItem()
library.duplicateItem()
library.editItem()
library.expandFolder()
library.findItemIndex()
library.getItemProperty()
library.getItemType()
library.getSelectedItems()
library.importEmbeddedSWF()
library.itemExists()
library.items
library.moveToFolder()
library.newFolder()
library.renameItem()
library.selectAll()
library.selectItem()
library.selectNone()
library.setItemProperty()
library.updateItem()
Math 对象
Math.concatMatrix()
Math.invertMatrix()
Math.pointDistance()
Matrix 对象
matrix.a
matrix.b
matrix.c
matrix.d
matrix.tx
matrix.ty
outputPanel 对象
outputPanel.clear()
outputPanel.save()
outputPanel.trace()
Parameter 对象
parameter.category
parameter.insertItem()
parameter.listIndex
parameter.name
parameter.removeItem()
parameter.value
parameter.valueType
parameter.verbose
Path 对象
path.addCubicCurve()
path.addCurve()
path.addPoint()
path.clear()
path.close()
path.makeShape()
path.newContour()
path.nPts
Project 对象
project.addFile()
project.canPublishProject()
project.canTestProject()
project.defaultItem
project.findProjectItem()
project.items
project.name
project.projectURI
project.publishProject()
project.testProject()
ProjectItem 对象
projectItem.canPublish()
projectItem.canTest()
projectItem.displayName
projectItem.isMissing
projectItem.itemURI
projectItem.publish()
projectItem.publishProfile
projectItem.test()
Screen 对象
screen.accName
screen.childScreens
screen.description
screen.forceSimple
screen.hidden
screen.instanceName
screen.name
screen.nextScreen
screen.parameters
screen.parentScreen
screen.prevScreen
screen.silent
screen.tabIndex
screen.timeline
ScreenOutline 对象
screenOutline.copyScreenFromFile()
screenOutline.currentScreen
screenOutline.deleteScreen()
screenOutline.duplicateScreen()
screenOutline.getSelectedScreens()
screenOutline.insertNestedScreen()
screenOutline.insertScreen()
screenOutline.moveScreen()
screenOutline.renameScreen()
screenOutline.rootScreen
screenOutline.screens
screenOutline.setCurrentScreen()
screenOutline.setScreenProperty()
screenOutline.setSelectedScreens()
Shape 对象
shape.beginEdit()
shape.contours
shape.deleteEdge()
shape.edges
shape.endEdit()
shape.isDrawingObject
shape.isGroup
shape.vertices
SoundItem 对象
soundItem.bitRate
soundItem.bits
soundItem.compressionType
soundItem.convertStereoToMono
soundItem.quality
soundItem.sampleRate
soundItem.useImportedMP3Quality
Stroke 对象
stroke.breakAtCorners
stroke.capType
stroke.color
stroke.curve
stroke.dash1
stroke.dash2
stroke.density
stroke.dotSize
stroke.dotSpace
stroke.hatchThickness
stroke.jiggle
stroke.joinType
stroke.length
stroke.miterLimit
stroke.pattern
stroke.rotate
stroke.scaleType
stroke.shapeFill
stroke.space
stroke.strokeHinting
stroke.style
stroke.thickness
stroke.variation
stroke.waveHeight
stroke.waveLength
SymbolInstance 对象
symbolInstance.accName
symbolInstance.actionScript
symbolInstance.blendMode
symbolInstance.buttonTracking
symbolInstance.cacheAsBitmap
symbolInstance.colorAlphaAmount
symbolInstance.colorAlphaPercent
symbolInstance.colorBlueAmount
symbolInstance.colorBluePercent
symbolInstance.colorGreenAmount
symbolInstance.colorGreenPercent
symbolInstance.colorMode
symbolInstance.colorRedAmount
symbolInstance.colorRedPercent
symbolInstance.description
symbolInstance.filters
symbolInstance.firstFrame
symbolInstance.forceSimple
symbolInstance.loop
symbolInstance.shortcut
symbolInstance.silent
symbolInstance.symbolType
symbolInstance.tabIndex
SymbolItem 对象
symbolItem.convertToCompiledClip()
symbolItem.exportSWC()
symbolItem.exportSWF()
symbolItem.scalingGrid
symbolItem.scalingGridRect
symbolItem.sourceAutoUpdate
symbolItem.sourceFilePath
symbolItem.sourceLibraryName
symbolItem.symbolType
symbolItem.timeline
Text 对象
text.antiAliasSharpness
text.antiAliasThickness
text.accName
text.autoExpand
text.border
text.description
text.embeddedCharacters
text.embedRanges
text.fontRenderingMode
text.getTextAttr()
text.getTextString()
text.length
text.lineType
text.maxCharacters
text.orientation
text.renderAsHTML
text.scrollable
text.selectable
text.selectionEnd
text.selectionStart
text.setTextAttr()
text.setTextString()
text.shortcut
text.silent
text.tabIndex
text.textRuns
text.textType
text.useDeviceFonts
text.variableName
TextAttrs 对象
textAttrs.aliasText
textAttrs.alignment
textAttrs.autoKern
textAttrs.bold
textAttrs.characterPosition
textAttrs.characterSpacing
textAttrs.face
textAttrs.fillColor
textAttrs.indent
textAttrs.italic
textAttrs.leftMargin
textAttrs.letterSpacing
textAttrs.lineSpacing
textAttrs.rightMargin
textAttrs.rotation
textAttrs.size
textAttrs.target
textAttrs.url
TextRun 对象
textRun.characters
textRun.textAttrs
Timeline 对象
timeline.addMotionGuide()
timeline.addNewLayer()
timeline.clearFrames()
timeline.clearKeyframes()
timeline.convertToBlankKeyframes()
timeline.convertToKeyframes()
timeline.copyFrames()
timeline.createMotionTween()
timeline.currentFrame
timeline.currentLayer
timeline.cutFrames()
timeline.deleteLayer()
timeline.expandFolder()
timeline.findLayerIndex()
timeline.frameCount
timeline.getFrameProperty()
timeline.getLayerProperty()
timeline.getSelectedFrames()
timeline.getSelectedLayers()
timeline.insertBlankKeyframe()
timeline.insertFrames()
timeline.insertKeyframe()
timeline.layerCount
timeline.layers
timeline.name
timeline.pasteFrames()
timeline.removeFrames()
timeline.reorderLayer()
timeline.reverseFrames()
timeline.selectAllFrames()
timeline.setFrameProperty()
timeline.setLayerProperty()
timeline.setSelectedFrames()
timeline.setSelectedLayers()
timeline.showLayerMasking()
ToolObj 对象
toolObj.depth
toolObj.enablePIControl()
toolObj.iconID
toolObj.position
toolObj.setIcon()
toolObj.setMenuString()
toolObj.setOptionsFile()
toolObj.setPI()
toolObj.setToolName()
toolObj.setToolTip()
toolObj.showPIControl()
toolObj.showTransformHandles()
Tools 对象
tools.activeTool
tools.altIsDown
tools.constrainPoint()
tools.ctlIsDown
tools.getKeyDown()
tools.mouseIsDown
tools.penDownLoc
tools.penLoc
tools.setCursor()
tools.shiftIsDown
tools.snapPoint()
tools.toolObjs
Vertex 对象
vertex.getHalfEdge()
vertex.setLocation()
vertex.x
vertex.y
XMLUI 对象
xmlui.accept()
xmlui.cancel()
xmlui.get()
xmlui.getControlItemElement()
xmlui.getEnabled()
xmlui.getVisible()
xmlui.set()
xmlui.setControlItemElement()
xmlui.setControlItemElements()
xmlui.setEnabled()
xmlui.setVisible()
VideoItem 对象
videoItem.sourceFilePath
videoItem.videoType
C 级可扩展性
集成 C 函数
C 级可扩展性和 JavaScript 解释程序
DLL 实现范例
数据类型
C 级 API
JSBool JS_DefineFunction()
unsigned short *JS_ValueToString()
JSBool JS_ValueToInteger()
JSBool JS_ValueToDouble()
JSBool JS_ValueToBoolean()
JSBool JS_ValueToObject()
JSBool JS_StringToValue()
JSBool JS_DoubleToValue()
JSVal JS_BooleanToValue()
JSVal JS_BytesToValue()
JSVal JS_IntegerToValue()
JSVal JS_ObjectToValue()
unsigned short *JS_ObjectType()
JSObject *JS_NewArrayObject()
long JS_GetArrayLength()
JSBool JS_GetElement()
JSBool JS_SetElement()
JSBool JS_ExecuteScript()