Recipe 6.1. Importing BitmapsProblemYou want to use an existing bitmap graphic in a Flash movie. SolutionImport it into the current document using File Import. DiscussionTo use a bitmap graphic, such as a .jpg or .gif file, in your movie, you import it. To do so, select the frame in which you want the graphic to appear, and choose File Import Import to Stage. In the Import dialog box that appears, navigate to the file and click Open. The file is imported to the library and an instance of it appears on the stage. As with symbols and instances, no matter how many times you use a bitmap in a movie, the user has to download it only once. The imported image usually appears at 100% of its size. Occasionally, it may appear at a different size. To restore it to 100%, delete it, and drag out a new instance from the library.
Bitmaps should be placed in their own layers. Bitmaps always stack above vector art within a layer. Even using Modify Arrange Send to Back cannot move a bitmap graphic behind vector artwork. Worse, if you break apart the bitmap for editing (Modify Break Apart, discussed in Recipe 6.2), the bitmap pixels will delete any vector art that they overlap within a layer. If you want to import the image directly to the library, but don't yet want to put it on the stage, you can take advantage of the Import to Library feature by choosing File Import Import to Library. The Import dialog box displays, and when you've navigated to the file and clicked Open, the bitmap is placed in the library. Flash is able to import the following types of bitmap graphics:
In addition, if you have the free Apple QuickTime player installed, Flash is able to install the following types of bitmap graphics:
When you import a bitmap, Flash maintains a link to the original file. You can use this link to update the bitmap, if you change the graphic outside of Flash. To update a bitmap, follow these steps:
After you click the button, Flash updates the graphic in the library, and all instances of the graphic throughout the movie are also updated. You can use similar steps to replace a bitmap graphic with a different graphic. Instead of choosing Update, choose Import and navigate to the new file. Again, the library and all instances are updated immediately. The graphic name (exp 3pod.com) in the library remains unchanged. |
Tripod >> 3pod Tips & Learning and manuals for educations