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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

19<br />

<strong>Flash</strong> Lite – how does it<br />

affect game developers?<br />

With <strong>Flash</strong> <strong>MX</strong> <strong>2004</strong> Professional it is now possible <strong>to</strong> create <strong>Flash</strong> games that will run on mobile<br />

phones. These devices are greatly limited in their memory, screen and processors when compared<br />

<strong>to</strong> a modern desk<strong>to</strong>p computer. For this reason Macromedia have created a <strong>Flash</strong> player that is<br />

scaled <strong>to</strong> suit the limited capabilities. In this chapter we will walk through the limitations inherent<br />

in the new player and examine how the <strong>ActionScript</strong> you write has <strong>to</strong> be different in style from<br />

the script you use <strong>to</strong> target the latest <strong>Flash</strong> player for desk<strong>to</strong>p machines.<br />

<strong>Flash</strong> Lite features<br />

With <strong>Flash</strong> <strong>MX</strong> Professional <strong>2004</strong> there are two versions of the <strong>Flash</strong> player installed on your<br />

desk<strong>to</strong>p development PC. When developing with <strong>Flash</strong> Lite it is essential that you set the player<br />

version <strong>to</strong> ‘<strong>Flash</strong> Lite 1.0’ in the Publish Settings dialog. One feature of <strong>Flash</strong> Lite is that it is device<br />

dependent. Some features differ on different devices. So the first step in creating any content is <strong>to</strong><br />

get hold of the latest content development kit (CDK) for the device that you are developing for.<br />

Kerning, spacing, bold and italic styles are not supported in <strong>Flash</strong> Lite when using Dynamic or<br />

Input text fields, so be careful when creating content not <strong>to</strong> use these features. Most <strong>Flash</strong> Lite<br />

devices have no mouse-based navigation. Lacking a mouse there is no support for ‘dragOver’,<br />

‘dragOut’ and ‘releaseOutside’, and draggable movie clips (‘startDrag’ and ‘s<strong>to</strong>pDrag’) are not<br />

supported.<br />

Sound support is very limited: only MIDI and MFi (Melody Format for i-mode) are supported.<br />

Consequently special techniques have <strong>to</strong> be used when testing the content on a desk<strong>to</strong>p PC. See<br />

the section on Using Sound for details.<br />

<strong>Flash</strong> Lite string methods<br />

Strings are not handled using the JavaScript methods; instead they use the <strong>Flash</strong> 4 implementation<br />

(Table 19.1).<br />

Starting with <strong>Flash</strong> Lite<br />

The easiest way <strong>to</strong> get started with <strong>Flash</strong> Lite is <strong>to</strong> use a template. Open <strong>Flash</strong> <strong>MX</strong> <strong>2004</strong> Professional<br />

and click on the ‘Create from Template/Mobile Devices’ but<strong>to</strong>n. If other projects are already open<br />

then simply choose ‘File>New...’ and select the ‘Template’ tab. Try any of the NTT DoCoMo<br />

options.<br />

309

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

Saved successfully!

Ooh no, something went wrong!