11.7. Responding to Fireworks events

Up to this point, we've been pretty much oblivious to what's been going on around us in Fireworks. We haven't cared about selection changes or tool changes or documents opening or closing. We've just focused our attention on one thing: creating rectangles. For content creation panels, this is fine, but for panels that need to respond to selection changes (such as the Gradient panel), we need a way to react to such changes. Fireworks provides a number of events that we can listen for and handle directly via ActionScript. We'll show you how to handle these in ActionScript 2 (since we've been using ActionScript 2 exclusively so far) and save the ActionScript 3 demonstration for the section "Building panels with ...

Get Foundation Fireworks CS4 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.