11.6. Defining Flash panel resize behavior

When creating Fireworks panels, you must be aware that the user can resize the panel, just like any other panel you encounter in Fireworks. When authoring panels in Flash (and not Flex), we have to manually define the resize behavior. Flex provides layout panels that automatically react to stage resizing, so this section can pretty much be ignored if you're planning to exclusively author your panels in Flex.

By default, Flash SWFs scale when resized—not the behavior expected by users. Go ahead and try resizing the Draw Rect panel you just created. All of the elements should scale in size, as if you had zoomed in on the stage in Flash. Scaling can easily be prevented by adding the following ActionScript ...

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.