Shape Object Panel
Top  Previous  Next


The 'Shape' Panel shows properties for the current shape.

Panels-Object-Shape  

Name

This is the name of the shape that appears in the Outline Panel.

Target
If set, allows the object to be treated as a script object. The target option is only displayed if the object is named.

Hot Spot
Gives the shape full transparency so that it can be used solely as a button Hit Spot.
Note: This option is greyed out unless the shape has a mouse event attached to it, such as an on(rollOver) event.

Track as menu
Button tracking refers to how a button behaves as it tracks the movement of the mouse. The mouse is not captured when you click on the group with this option selected.
Note: This option is greyed out unless the shape has a mouse event attached to it, such as an on(rollOver) event.

Line style
You can select from a number of line styles for the line around the outside of the shape. The default style is solid. If you do not want a line around the outside of the shape, select None from the Menu.
Panels-Object-Scene-LineStyle  
If you choose the custom option, then you can directly define the line style using the 'Custom Line Style' dialog box. This allows you to define the line style by a combination of minus signs and spaces. The window at the bottom of the dialog box shows you a preview of what the line style looks like. When you have the line style you want, press the 'OK' button.

Panels-Object-Shape-CustomLineStyle  
 
panels-object-shape-linethickness Line thickness
You can change the thickness of the line around the outside of the shape (if any). The default thickness is 1.

Line color
You can change the color of the line around the outside of the shape (if any) using the Color Selector. The default colour is black.
 
Fill style
You can select the fill style of a shape from a number of styles. The default setting is solid, though if you want the interior to be hollow, select 'None' from the Menu.
Panels-Object-Shape-FillStyle  
·Solid: uses a single color, which may have a degree of transparency (alpha value). Click on the 'Fill Control' or colored button to change the color using the Color Selector  
·Linear gradient: uses a smooth change in colors in straight bands across the shape. The Fill Control lets you change the colors in the gradient (see below)  
·Radial gradient: uses a smooth change in colors in circular bands across the shape. The Fill Control lets you change the colors in the gradient (see below)  
·Tiled image: uses a bitmap image to fill the shape. If the image is too small to fill the shape completely, then the image is tiled. Click on the Fill Control to select an image  
·Clipped image: uses a bitmap image to fill the shape. If the image is too small to fill the shape completely, then the outside pixels are stretched. Click on the Fill Control to select an image  

Fill Properties Button
When you select a gradient or image fill style, the 'Properties' button is displayed. If you press the 'Properties' button, you can directly edit the fill Transform in a dialog box. For image fills, you can also change the compression (image quality).
 
The 'Gradient Properties' dialog box is represented below.

Panels-Object-Shape-FillProperties-Gradient  
 
The controls are the same as for the Transform Panel. However, in this case, the Transform applies to the fill pattern within the shape, rather than the shape within the Scene. You can also visually edit the fill Transform using the Fill Transform tool.
 
For image fills the title bar shows you the size in pixels and color depth of the image. The dialog box looks like this:

Panels-Object-Shape-FillProperties  
 
There are several extra controls at the bottom right hand corner of the 'Image Fill' dialog box:
·When the 'Don't Smooth' setting is checked, the bitmap that have been resized will never be smoothed. This can result in a clearer image in some cases, as smoothing can blur images.  
·The 'Preload image' function lets you select where you want the image definition to appear in the .swf file. See the Export Panel for more information.  
·A preview of the image is provided along with it's Width and Height in pixels and its Original and Exported size in bytes.  
·The Contrast controls allow you to adjust the overall contrast of the image.  
· The Brightness controls allow you to adjust the overall brightness of the image.  
·The Saturation controls allow you to adjust the colour saturation of the image.  
·The Hue controls allow you to adjust the hue of the image. Changing the hue can add a tint to the whole image.  
·The Resolution setting allows you to adjust the images pixel resolution to a percentage of the original resolution.  
·There are two types of image compression for SWF files. ZIP compression is 'lossless' compression, which means compression does not change the image quality or alter the image content. It uses the same compression as .zip files. You cannot control the compression ratio. It gives similar results to .gif or .png compression. JPEG compression is 'lossy' compression, which means image quality is reduced during compression. You can control the compression indirectly using the Quality setting. This is the same compression that JPEG files use  
·If you have selected ZIP compression and the image was originally imported at 16-bit colour or higher you can choose to save the image in 8 or 16 bit/pixel format.  
·If you have selected 24 bits/pixel JPEG compression, you can decide whether to use the existing 24 bits/pixel JPEG compression of your imported image, or have SWiSH recompress the image itself to the quality level you select. Some images must be recompressed because they use progressive JPEG encoding, which will crash the Flash Player if not recompressed, or because the original file is not JPEG compressed  
·The 'Transparency' checkbox is only available for opaque images. When the 'Transparency' setting is checked, you can make the specific color from the image transparent. The 'Tolerance' setting controls how similar to the specified color the pixel must be before it is changed to transparent. The valid tolerance setting is between 0 and 255. At low settings, the colors must be close. At higher settings the tolerance is greater, so more pixels are made transparent  
·If you have selected JPEG compression, you can specify the image quality. The higher the value, the better the image quality, the larger the files size and the less compression. The quality is not directly related to the compression ratio. If you imported a JPEG image and specify a quality lower than the original quality, or if you change any of the "Adjust Appearance" options, or if the image is progressive JPEG, then SWiSH will automatically recompress, otherwise it will use the imported JPEG data.  
·If you select the option [X] Ignore export quality, this will ignore the settings from the Export panel (Movie Settings) and will use only the settings specific on the Image Properties options for this image.  
·You can use the Reset button in the 'Appearance' section to reset back to the image's original settings (no altered contrast, hue, etc.)  




Fill control
The fill control changes depending on the fill style you have selected.

For solid fills, the control shows you the fill color. Click on the colored 'Fill control' button to select a different color.

panels-object-shape-fillcontrol-solid  
 
For gradient and image fills a list of predefined images and gradients is available by clicking on the dropdown arrow next to the fill control.

For gradient fills, the control shows you the gradient. Click to place new colors onto the gradient. Click on a triangular colored handle to change the corresponding color using the Color Selector. Drag the handles along the gradient to adjust their positions. Hold the shift key while dragging to snap the handle to the grid marks provided. Drag the triangular colored handles completely off the bar to delete them.

panels-object-shape-fillcontrol-gradient  
 
For image fills, the control shows you the image. Click on the control to select and load a new image file. Double click on the image to reload the current image file.

panels-object-shape-fillcontrol-image  
 
Solid shape with overlap filled
This function forces the shape to have no border and to be filled with a single solid color. Any areas where the shape has overlaps will be filled. This is different to the usual behavior of shapes, where overlapping areas are left hollow. You may find this setting useful when setting up masks for Sprites. The default setting is to have this function turned off.

Note: There is a bug in Flash, such that it will crash when trying to import a .swf file that has the 'Solid shape with overlap filled' option turned on for any shape

Fit to shape
Lets you automatically set up the fill Transform so that the fill will always fit the shape while reshaping.