O'Reilly logo

Foundation Fireworks CS4 by Hugh Griffith, Matthew Keefe, Chuck Mallott, Matt Heerema, Craig Erskine, Grant Hinkson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required