The SWF::Action Module
The SWF::Action object encapsulates a segment of ActionScript
code that can be associated with a particular frame of a movie, a
button event, or a particular DisplayItem (anything with an AddAction( )
method). You write the
ActionScript code and pass it to the ActionScript object as a string.
When the SWF file is created, the JavaScript-like ActionScript is
parsed and translated into ActionScript bytecode, which is embedded in
the file. Ming uses different bytecode interpreters for Version 4- and
Version 5-compatible code (as specified with the SWF::setVersion( )
function).
Get Perl Graphics Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.