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.

Returns<br />

Number - A number.<br />

Example<br />

The following code illustrates using the division assignment (/=) operator with variables <strong>and</strong><br />

numbers:<br />

var x:Number = 10;<br />

var y:Number = 2;<br />

x /= y; trace(x); // output: 5<br />

See also<br />

/ division operator<br />

. dot operator<br />

object.property_or_method<br />

instancename.variable<br />

instancename.childinstance<br />

instancename.childinstance.variable<br />

Used to navigate movie clip hierarchies to access nested (child) movie clips, variables, or<br />

properties. The dot operator is also used to test or set the properties of an object or top-level<br />

class, execute a method of an object or top-level class, or create a data structure.<br />

Oper<strong>and</strong>s<br />

object : Object - An instance of a class. The object can be an instance of any of the builtin<br />

ActionScript classes or a custom class. This parameter is always to the left of the dot (.)<br />

operator.<br />

property_or_method - The name of a property or method associated with an object. All the<br />

valid methods <strong>and</strong> properties for the built-in classes are listed in the method <strong>and</strong> property<br />

summary tables for that class. This parameter is always to the right of the dot (.) operator.<br />

instancename : MovieClip - The instance name of a movie clip.variable — The instance<br />

name to the left of the dot (.) operator can also represent a variable on the Timeline of the<br />

movie clip.<br />

childinstance : MovieClip - A movie clip instance that is a child of, or nested in, another<br />

movie clip.<br />

Returns<br />

Object - The method, property or movie clip named on the right side of the dot.<br />

134 ActionScript language elements

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

Saved successfully!

Ooh no, something went wrong!