Class SnpCreateFlashControl
Object
|
+--SnpCreateFlashControl
- class
SnpCreateFlashControl
Shows how to load and run a Flash movie in Bridge using the ScriptUI FlashPlayer.
Usage
- Run the snippet in the ExtendScript Toolkit (see Readme.txt), with Bridge CS5 as the target.
- You should see a new tabbed palette in the Bridge browser window, showing a Flash movie.
Description
Adds a script-defined tabbed palette to the Bridge browser window that plays a Flash movie.
The tabbed palette is of the "script" type, and contains ScriptUI components, including
control buttons and a FlashPlayer element. The new palette appears in the default upper-left corner of Bridge.
Loads the Flash movie, an SWF file, into the FlashPlayer component using control's loadMovie() function.
The 'file' parameter must be a valid ExtendScript File object that references any type of Flash file.
See the JavaScript Tools Guide for details of Flash Player controls.
See:
Defined in SnpCreateFlashControl.jsx
Method Summary |
Boolean
|
canRun()
Determines whether snippet can be run given current context.
|
Boolean
|
run()
Functional part of this snippet.
|
flashFile
File flashFile
The Flash movie to load into Bridge
paletteRef
Object paletteRef
requiredContext
String requiredContext
The context in which this snippet can run.
SnpCreateFlashControl
SnpCreateFlashControl()
canRun
Boolean canRun()
Determines whether snippet can be run given current context. The snippet
fails if these preconditions are not met:
- Must run in Bridge
- The SWF file must exist in the file system.
Returns:
True is this snippet can run, false otherwise
run
Boolean run()
Functional part of this snippet.
Creates a TabbedPalette and adds the ScriptUI components to it.
Creates event handlers for the buttons that control the playback,
and handles resizing of the palette and the FlashPlayer component.
Returns:
True if the snippet ran as expected, false otherwise
http://www.adobe.com/devnet/bridge
Documentation generated by
JSDoc on Tue Apr 27 10:21:34 2010