Interface FlashFL

Index

Properties

Methods

Properties

public Math: FlashMath

public actionsPanel: FlashActionsPanel

public as3PackagePaths: string

public compilerErrors: FlashCompilerErrors

public componentsPanel: FlashComponentsPanel

public configDirectory: string

public configURI: string

public contactSensitiveSelection: boolean

public createNewDocList: Array<string>

public createNewDocListType: Array<string>

public createNewTemplateList: Array<string>

public documents: FlashDocument[]

public drawingLayer: FlashDrawingLayer

public externalLibraryPath: string

public flexSDKPath: string

public installedPlayers: Array<any>

public languageCode: string

public libraryPath: string

public mruRecentFileList: Array<string>

public mruRecentFileListType: Array<string>

public objectDrawingMode: number

public outputPanel: FlashOutputPanel

public packagePaths: Array<string>

public presetPanel: FlashPresetPanel

public publishCacheDiskSizeMax: number

public publishCacheEnabled: boolean

public publishCacheMemoryEntrySizeLimit: number

public publishCacheMemorySizeMax: number

public scriptURI: string

public sourcePath: string

public swfPanels: FlashSwfPanel[]

public tools: FlashTools[]

public version: string

public xmlui: FlashXMLUI

Methods

public addEventListener(eventType: any, callbackFunction: any): any

Parameters

  • eventType: any
  • callbackFunction: any

Returns

any

public browseForFileURL(browseType: any, title?: any, previewArea?: any): any

Parameters

  • browseType: any
  • title?: any optional
  • previewArea?: any optional

Returns

any

public browseForFolderURL(description: string): any

Parameters

  • description: string

Returns

any

public clearPublishCache()

public clipCopyString(string: string)

Parameters

  • string: string

public closeAll(bPromptToSave?: boolean)

Parameters

  • bPromptToSave?: boolean optional

public closeAllPlayerDocuments(): boolean

Returns

boolean

public closeDocument(documentObject: FlashDocument, bPromptToSaveChanges?: boolean): any

Parameters

  • documentObject: FlashDocument
  • bPromptToSaveChanges?: boolean optional

Returns

any

public createDocument(document?: string): FlashDocument

A string that specifies the type of document to create. Acceptable values are "timeline", "presentation", and "application". The default value is "timeline", which has the same effect as choosing File > New > Flash File (ActionScript 3.0). This parameter is optional.

Parameters

  • document?: string optional

Returns

FlashDocument

public exportPublishProfileString(ucfURI: string, profileName: string): string

Parameters

  • ucfURI: string
  • profileName: string

Returns

string

public fileExists(fileURI: string): boolean

Parameters

  • fileURI: string

Returns

boolean

public findDocumentDOM(id: number): FlashDocument

Parameters

  • id: number

Returns

FlashDocument

public findDocumentIndex(name: string): Array<number>

Parameters

  • name: string

Returns

Array<number>

public findObjectInDocByName(instanceName: string, document: FlashDocument): Array<{ keyframe: FlashFrame; layer: FlashLayer; timeline: FlashTimeline; parent: any; }>

Parameters

Returns

Array<{ keyframe: FlashFrame; layer: FlashLayer; timeline: FlashTimeline; parent: any; }>

public findObjectInDocByType(elementType: string, document: FlashDocument): Array<any>

elementType = "shape", "text", "instance", or "shapeObj".

Parameters

Returns

Array<any>

public getAppMemoryInfo(memType: number): any

Parameters

  • memType: number

Returns

any

public getDocumentDOM(): FlashDocument

Returns

FlashDocument

public getSwfPanel(): any

Returns

any

public isFontInstalled(): any

Returns

any

public mapPlayerURL(URI: string, returnMBCS?: boolean): string

Parameters

  • URI: string
  • returnMBCS?: boolean optional

Returns

string

public openDocument(fileURI: string): FlashDocument

Method; opens a Flash document (FLA file) for editing in a new Flash Document window and gives it focus. For a user, the effect is the same as selecting File > Open and then selecting a file. If the specified file is already open, the window that contains the document comes to the front. The window that contains the specified file becomes the currently selected document.

Parameters

  • fileURI: string

Returns

FlashDocument

public openScript(fileURI: string, createExtension?: string, className?: string)

Parameters

  • fileURI: string
  • createExtension?: string optional
  • className?: string optional

public quit(bPromptIfNeeded?: boolean)

Parameters

  • bPromptIfNeeded?: boolean optional

public reloadTools()

public removeEventListener(eventType: string): boolean

documentNew", "documentOpened", "documentClosed", "mouseMove", "documentChanged", "layerChanged", and "frameChanged".

Parameters

  • eventType: string

Returns

boolean

public resetAS3PackagePaths()

public resetPackagePaths()

public revertDocument(document: FlashDocument)

Parameters

public runScript(fileURI: string, funcName?: Function, args?: Array<any>): any

Parameters

  • fileURI: string
  • funcName?: Function optional
  • args?: Array<any> optional

Returns

any

public saveAll()

public saveDocument(document: FlashDocument, fileURI?: string): boolean

Parameters

Returns

boolean

public saveDocumentAs(document: FlashDocument): boolean

Parameters

Returns

boolean

public selectActiveWindow(document: FlashDocument, bActivateFrame?: boolean)

Parameters

public selectElement(elementObject: FlashElement, editMode: boolean): boolean

Method; enables selection or editing of an element. Generally, you will use this method on objects returned by fl.findObjectInDocByName() or fl.findObjectInDocByType().

Parameters

Returns

boolean

public selectTool(toolName: string)

"arrow","bezierSelect","freeXform","fillXform","lasso","pen","penplus","penminus","penmodify","text","line","rect","oval","rectPrimitive","ovalPrimitive","polystar","pencil","brush","inkBottle","bucket","eyeDropper","eraser","hand", and "magnifier".

Parameters

  • toolName: string

public showIdleMessage(show: boolean)

Parameters

  • show: boolean

public toggleBreakpoint(): any

Returns

any

public trace(message: any)

Parameters

  • message: any