03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

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.

The key code value for the SOFT1 soft key. The SOFT1 key code always corresponds to the<br />

left soft key; the SOFT2 always corresponds to the right soft key.<br />

Example<br />

The following example creates a listener that h<strong>and</strong>les the left <strong>and</strong> right soft keys:<br />

var myListener:Object = new Object();<br />

myListener.onKeyDown = function () {<br />

var keyCode = Key.getCode();<br />

switch (keyCode) {<br />

case ExtendedKey.SOFT1:<br />

// H<strong>and</strong>le left soft key.<br />

break;<br />

case ExtendedKey.SOFT2:<br />

// H<strong>and</strong>le right soft key<br />

break;<br />

}<br />

}<br />

Key.addListener(myListener);<br />

SOFT10 (ExtendedKey.SOFT10 property)<br />

public static SOFT10 : String<br />

The key code value for the SOFT10 soft key.<br />

SOFT11 (ExtendedKey.SOFT11 property)<br />

public static SOFT11 : String<br />

The key code value for the SOFT11 soft key.<br />

SOFT12 (ExtendedKey.SOFT12 property)<br />

public static SOFT12 : String<br />

The key code value for the SOFT12 soft key.<br />

SOFT2 (ExtendedKey.SOFT2 property)<br />

public static SOFT2 : String<br />

The key code value for the SOFT2 soft key. The SOFT2 key code always corresponds to the<br />

right soft key; the SOFT1 key code always corresponds to the left soft key.<br />

ExtendedKey 339

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

Saved successfully!

Ooh no, something went wrong!