MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference page 728

Actionscript language reference
Table of Contents

Advertisement

In a FLA or AS file that is in the same directory as Login.as, enter the following ActionScriptin
Frame 1 of the Timeline:
var gus:Login = new Login("Gus", "Smith");
trace(gus.username); // output: Gus
gus.username = "Rupert";
trace(gus.username); // output: Rupert
In the following example, the
function executes when the value is traced. The
function
get
set
triggers only when you pass it a value, as shown in the line:
gus.username = "Rupert";
See also
get,
Object.addProperty()
728
Chapter 2: ActionScript Language Reference

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents