Nintendo Wii Flash Game Creator's Guide: Chapter 5
Utilizing the Wii Remote: A Hammer Game
Exercise 5-1: Viewing the Flash FileBefore you start writing the code to create the game, take a look at how the .FLA file is set up. I’ll also talk briefly about adding photos to a Flash application.
NOTE: You can import JPEG, GIF, or PNG files into Flash using File | Import | Import To Stage or File | Import | Import To Library. Once you import a bitmap graphic, that graphic is stored in your Library. To place the bitmap on the Stage, click and drag it from the Library, just like any other Library item. You can place a bitmap inside a movie clip or graphic symbol and animate it using motion tweens just as you would animate a movie clip or graphic symbol.
Understanding Invisible ButtonsInvisible buttons are simply regular buttons with no up state. Sometimes, invisible buttons have over or down states, but typically invisible buttons only have a hit state. Invisible buttons are a handy tool in creating Wii games in Flash, because they allow you to add interactivity without adding any graphics. You can create invisible buttons in Flash in a few ways. One way, which is the most common, is to draw the hit area of your button first. Then, you can convert it to a button symbol, and simply drag the Up state keyframe of the button to the Hit state keyframe. On the Stage, an invisible button has a semitransparent cyan color. The following illustration shows an invisible button on the stage.
|
|