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

Create successful ePaper yourself

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

Return the value of newVal.<br />

return newVal;<br />

}<br />

// Use watch() to register the event h<strong>and</strong>ler, passing as parameters:<br />

// - the name of the property to watch: "speed"<br />

// - a reference to the callback function speedWatcher<br />

// - the speedLimit of 55 as the userData parameter<br />

myObject.watch("speed", speedWatcher, 55);<br />

// set the speed property to 54, then to 57<br />

myObject.speed = 54; // output: You are not speeding<br />

myObject.speed = 57; // output: You are speeding<br />

// unwatch the object<br />

myObject.unwatch("speed");<br />

myObject.speed = 54; // there should be no output<br />

See also<br />

addProperty (Object.addProperty method), unwatch (Object.unwatch method)<br />

security (System.security)<br />

Object<br />

|<br />

+-System.security<br />

public class security<br />

extends Object<br />

The System.security class contains methods that specify how SWF files in different domains<br />

can communicate with each other.<br />

Property summary<br />

Properties inherited from class Object<br />

constructor (Object.constructor property), __proto__ (Object.__proto__<br />

property), prototype (Object.prototype property), __resolve<br />

(Object.__resolve property)<br />

security (System.security) 537

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

Saved successfully!

Ooh no, something went wrong!