Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
ProjeCT: Building SPriTe'S 123 131 Setting up the timeline You can use the traditional development process used in Flash applications to build your iPhone or Android app. To demon- strate this, we will use the timeline to manage your ActionScript and not Class files. This approach is how many Flash Professional designers have built solutions since ActionScript 1.0. 1. Go to the timeline and add a new layer named Actions (Figure 3.6Proj). You will add all of your ActionScript into this layer. Insert 33 keyframes into the Actions layer. 2. Add a new layer and call it Background. Drag the red border background image into this layer. Lock the layer so it is not moved accidentally. 3. Add three more layers and name them aboutUs, Instructions, and mainTitle. Add a single keyframe to frame 1 of these new layers. 4. Select the mainTitle layer. Find the 123Btn and drag it onto the stage. Convert the image into a movie clip (right-click and select Convert to symbol...). Open the Properties panel and insert the name btn123. 5. Open the Actions panel and insert the following ActionScript: Tracking User Activity with Google Analytics You can use the Google Analytics Flash Component to track how people use your application. Go to http://code.google.com/ apis/analytics/docs/ tracking/flashTrackingIntro. html to get the latest version of the components and instructions on how to add it to your Flash projects.