|
Free Open Book
Macromedia Flash 8 Bible |
Being Prepared for Common ProblemsFlash retains existing JPEG compression levels on any imported JPEG image, but, if specified in the Bitmap Properties dialog box, it applies additional JPEG compression (set in the Quality field) when the movie is published or exported. Recompressing an image that has already been compressed usually leads to serious image degradation, due to the introduction of further compression artifacts. When importing JPEGs, you'll note that the Use imported JPEG data check box is selected by default in the Bitmap Properties dialog box. This is the preferred setting because recompressing a JPEG is generally detrimental to image quality.
You can apply compression settings to each individual bitmap in the Library with the Flash Bitmap Properties dialog box to determine the quality that you need before you use the general JPEG settings in the Export Movie or Publish Settings dialog box. Any Quality defined in the Bitmap Properties dialog box will override the JPEG Quality in Publish Settings. To apply the Publish Settings compression to an image, you must select the Use document default check box in the Bitmap Properties dialog box.
Cross-Browser ConsistencyWe've received more than a few queries about image formats and Flash's capability to transcend issues of browser inconsistency, so here's the answer. Many image formats, such as PNG, are not supported across all browsers. When you import such an image format into Flash and publish or export to the SWF format, you have accomplished browser independence — because the Flash movie (.swf) is browser independent and the image has been encapsulated within the SWF format. (The image is not being sent to the browser in the imported format and then magically empowered to display.) Conversely, if you export any Flash document (.fla) to PNG or to any other format that's subject to cross-browser inconsistency, browser independence is lost. JPEG RotationThis is a tricky problem to analyze. When animation that includes a bitmap is rendered and the image is displayed at an angle, it can be distorted. The manner of distortion changes depending on whether it was rotated in Photoshop and imported with the angle, or if it was imported into Flash on the square and subsequently rotated.
Before rotating a bitmap in Flash, you should perform a few tests to see how your specific bitmap will be affected by the combination of compression, zoom, smoothing, and rotation (either in or out of Flash). Your choices and your decision will vary, subject to the content of the bitmap and the manner in which it will be used within Flash.
Applying Alpha, Color Effects, and Filters to BitmapsA bitmap has some of the same advantages as the native Flash symbol types: It is automatically added to the Library when you import it, and instances can be dragged onto the Stage and even used in Motion tweens. However, Filters can't be applied to raw bitmaps and the Color (and Alpha) Effects are not available in the Property inspector when you select a bitmap instance. If you wish to change the alpha settings or color tint of an imported image or apply any of the new Flash 8 Filters, you have two easy options:
Of course, using an external image-editing program is always an option, too. The features we describe in the next section can assist you if you plan to edit images outside of Flash. |
Main Menu |
| 500 Juegos Gratis | 500 Giochi Gratis | 500 Jeux Gratuits | 500 Jogos Gratis | 500 Kostenlose Spiele |