94
Chapter 3: Cross-Product Extensions
Example
function onFwDocumentNameChange()
{
// your code goes here
}
Example
_global.onFwDocumentNameChange = function ()
{
// your code goes here
}
Both examples show how to implement a handler for the document name changed event.
However, the second example will only work if the assignment executes before or during the
onFwStartMovie
handler.
Publishing
When testing your script, use the File > Publish menu option in Macromedia Flash MX. The
Shockwave file is in the same place as the FLA file after publishing.
Debugging
Fireworks provides two functions to help debug Flash panel ActionScript (see
“fw.enableFlashDebugging()” on page 247
and
“fw.disableFlashDebugging()” on page 247
). Use
the Flash debugging functions to show or hide everything that the Shockwave file passes to the
Fireworks API during execution. Place these debug functions around the suspect code in your
Macromedia Flash ActionScript to turn the debugging functions on or off as needed. Be careful to
use these functions only around “suspect” code; otherwise, you might encounter a long series of
dialog box statements.
Summary of Contents for DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER
Page 1: ...Extending Fireworks...
Page 4: ...4 Contents...
Page 8: ...8 Chapter 1 Extending Fireworks Overview...
Page 102: ...102 Chapter 4 Auto Shapes...