02.02.2013 Views

Flash MX 2004 Games : Art to ActionScript

Flash MX 2004 Games : Art to ActionScript

Flash MX 2004 Games : Art to ActionScript

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

20<br />

Using <strong>Flash</strong> on a PocketPC<br />

PocketPCs are selling like the proverbial hot cakes now that the prices are more in line with<br />

people’s ability <strong>to</strong> pay. The little beasts are quite capable of running games. Macromedia has<br />

created a highly optimized <strong>Flash</strong> player engine for the PocketPC. In this chapter we look at tips<br />

and advice when creating content for a PocketPC.<br />

Starting with <strong>Flash</strong> on PocketPC<br />

The first step is <strong>to</strong> install <strong>Flash</strong> Player on your PocketPC. <strong>Flash</strong> Player is freely available from<br />

Macromedia at http://www.macromedia.com/software/devices/products/pocketpc/. At the time<br />

of writing the version number was 6 and this was available for PocketPC 2002 and 2003. You<br />

should also download the development kit that is available on the same page. This gives example<br />

project files and lots of tips and advice. <strong>Flash</strong> Player for PocketPC runs inside Pocket Internet<br />

Explorer although it is possible <strong>to</strong> create stand-alone movies either using the software available<br />

from Macromedia for a charge or following the instructions in Chapter 24, which you should be<br />

able <strong>to</strong> do for free. That alone should make buying this book worth the money!<br />

A quick introduction <strong>to</strong> PocketPC 2003<br />

A PocketPC comes with Pocket Internet Explorer (PIE) already installed in the ROM. Figure 20.1<br />

shows the default out of the box screen for a Dell Axim X3. To use the device a stylus is supplied.<br />

The screen is <strong>to</strong>uch-sensitive and allows you <strong>to</strong> click on the screen at any location. A rollover event<br />

does not occur. The default setup for PIE has a navigation and address bar at the <strong>to</strong>p, taking up<br />

48 pixels and a command bar at the base of the screen occupying 26 pixels. The main display area<br />

starts at (0, 49) and extends <strong>to</strong> (240, 293) giving a maximum size for a <strong>Flash</strong> movie of 240 × 245<br />

pixels. When textual input is required the Soft Input Panel (SIP) screen is shown which allows the<br />

user <strong>to</strong> enter text from an on-screen keyboard or via handwriting recognition. This panel takes<br />

up a further 80 pixels. So if you want <strong>to</strong> accommodate for this then the available area for a <strong>Flash</strong><br />

movie is just 240 × 165 pixels. In many games you will not require the SIP so for most purposes<br />

you should make your movies 240 × 245 pixels.<br />

Figure 20.3 shows a simple animation embedded in<strong>to</strong> PIE; the HTML required is very similar<br />

<strong>to</strong> that for a desk<strong>to</strong>p machine. Some of the details required on a desk<strong>to</strong>p can be eliminated – no<br />

EMBED is required – but it is recommended <strong>to</strong> set the quality <strong>to</strong> ‘medium’. On the small screen<br />

of a PocketPC a quality setting of ‘high’ is virtually indistinguishable from that of ‘medium’, yet<br />

the processor has <strong>to</strong> do a lot more work. One thing you must get used <strong>to</strong> when developing for a<br />

PocketPC is <strong>to</strong> optimize wherever possible. One of the simplest ways <strong>to</strong> achieve this is by setting<br />

quality <strong>to</strong> medium.<br />

318

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!