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.
Содержание DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER
Страница 1: ...Extending Fireworks...
Страница 4: ...4 Contents...
Страница 8: ...8 Chapter 1 Extending Fireworks Overview...
Страница 102: ...102 Chapter 4 Auto Shapes...
Страница 284: ...284 Chapter 5 Fireworks JavaScript API...