EDOBE XDOM TAKE 6 IR - PRODUCTSHEET Especificações Página 85

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 304
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 84
CHAPTER 4: User-Interface Tools Communicating with the Flash application 85
the bubbling phase. For example, the following click handler, registered with the parent dialog object,
responds only in the capture phase:
myDialog.addEventListener("click", handleAllItems, true);
This value is false by default, so if it is not supplied, the handler can respond only in the bubbling phase
when the object’s descendent is the target, or when the object is itself the target of the event (the
at-target phase).
To distinguish which of multiple registered handlers is being executed at any given time, the event object
provides the eventPhase
property, and the currentTarget property, which In the capture and bubbling
phases contains the ancestor of the
target object at which the currently executing handler was
registered.
Communicating with the Flash application
ScriptUI supports a Flash Player, which runs the Flash application within a window in an Adobe
application. The Flash application runs ActionScript, a different implementation of JavaScript from the
ExtendScript version of JavaScript that Adobe applications run.
To open a Flash Player, add a control of type flashplayer
to your ScriptUI window. A control object of this
type contains functions that allow your script to load SWF files and control movie playback. It also contains
functions that allow your Adobe application script to communicate with the ActionScript environment of
the Flash application. See
FlashPlayer control functions” on page 145.
A limited set of data types can be passed between the two scripting environments:
Number
String
Boolean
Null
undefined
Object
Array
The ActionScript class and date objects are not supported as parameter values.
In the ActionScript script for your Flash application, you must prepare for two-way communication by
providing access to the External API. Do this by importing the
ExternalInterface class into your Flash
application:
import flash.external.ExternalInterface;
Calling ExtendScript functions from ActionScript
The ActionScript ExternalInterface class allows you to call an ExtendScript function that has been
defined in the
FlashPlayer element in the Adobe application script, and run it in the ActionScript
environment. You must define the method in your FlashPlayer
element with a matching function name.
For example, in order for the SWF code to call an ExtendScript function named
myExtendScriptFunction,
define a function with the name
myExtendScriptFunction as a method of your FlashPlayer control
object. There are no special requirements for function names, but the function must take and return only
data of the supported types.
Vista de página 84
1 2 ... 80 81 82 83 84 85 86 87 88 89 90 ... 303 304

Comentários a estes Manuais

Sem comentários

Philips SPP2305WC manuály

Uživatelské manuály a uživatelské příručky pro Počítačové příslušenství Philips SPP2305WC.
Poskytujeme 1 manuály pdf Philips SPP2305WC ke stažení zdarma podle typů dokumentů: Uživatelský manuál






Další produkty a příručky pro Počítačové příslušenství Philips

Modely Typ Dokumentu
FMXXFD20B Uživatelský manuál   Philips FMXXFD20B User Manual, 10 stránky
SPC215NC Uživatelský manuál   Philips SPC215NC User Manual, 22 stránky
BUK218-50DC Uživatelský manuál   Philips BUK218-50DC User Manual, 9 stránky
PIP3207-DC Uživatelský manuál   Philips PIP3207-DC User Manual, 9 stránky
SWV2054 Uživatelský manuál   Philips SWV2054 User Manual, 2 stránky
Integrated Circuits PDIUSBH12 Uživatelský manuál   Philips Integrated Circuits PDIUSBH12 User Manual, 28 stránky
SWS3412W Uživatelský manuál   Philips SWS3412W User Manual, 2 stránky
SPP7357WC Uživatelský manuál   Philips SPP7357WC User Manual, 2 stránky
XENIUM 9@9K CT9A9KBRN Uživatelský manuál   Philips XENIUM 9@9K CT9A9KBRN User Manual, 88 stránky
SPD2410BD Uživatelský manuál   Philips SPD2410BD User Manual, 2 stránky
PIP3202-DC Uživatelský manuál   Philips PIP3202-DC User Manual, 9 stránky
CBT3384 Uživatelský manuál   Philips CBT3384 User Manual, 14 stránky
CBTD3306 Uživatelský manuál   Philips CBTD3306 User Manual, 17 stránky
LEDINO 31602/**/16 Uživatelský manuál         Philips LEDINO 31602/**/16 User Manual, 40 stránky
SWS3683W Uživatelský manuál   Philips SWS3683W User Manual, 2 stránky
SPS1596WA Uživatelský manuál   Philips SPS1596WA User Manual, 2 stránky
SBC SP 370 Uživatelský manuál        Philips SBC SP 370 User Manual, 46 stránky
SWV3574 Uživatelský manuál   Philips SWV3574 User Manual, 2 stránky
SWV3573/10 Uživatelský manuál   Philips SWV3573/10 User Manual, 2 stránky
TDA8443A Uživatelský manuál   Philips TDA8443A User Manual, 20 stránky