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.

Returns<br />

Object - An object.<br />

Example<br />

In the following example, a new empty object is created, <strong>and</strong> then the object is populated with<br />

values:<br />

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

company.name = "Macromedia, Inc.";<br />

company.address = "600 Townsend Street";<br />

company.city = "San Francisco";<br />

company.state = "CA";<br />

company.postal = "94103";<br />

for (var i in company) {<br />

trace("company."+i+" = "+company[i]);<br />

}<br />

See also<br />

Object<br />

on h<strong>and</strong>ler<br />

on(mouseEvent:Object) { // your statements here }<br />

Specifies the mouse event or keypress that triggers an action.<br />

Parameters<br />

mouseEvent:Object - A mouseEvent is a trigger called an event . When the event occurs, the<br />

statements following it within curly braces ({ }) execute. Any of the following values can be<br />

specified for the mouseEvent parameter:<br />

■ press The mouse button is pressed while the pointer is over the button.<br />

■ release The mouse button is released while the pointer is over the button.<br />

■ releaseOutside While the pointer is over the button, the mouse button is pressed, rolled<br />

outside the button area, <strong>and</strong> released. Both the press <strong>and</strong> the dragOut events always<br />

precede a releaseOutside event.<br />

Note: This event is supported in Flash Lite only if System.capabilities.hasMouse is<br />

true or System.capabilities.hasStylus is true.<br />

■ rollOut The pointer rolls outside the button area.<br />

Note: This event is supported in Flash Lite only if System.capabilities.hasMouse is<br />

true or System.capabilities.hasStylus is true.<br />

■ rollOver The mouse pointer rolls over the button.<br />

66 ActionScript language elements

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

Saved successfully!

Ooh no, something went wrong!