User Guide
708 Chapter 2: ActionScript Language Reference
import Login:
var gus:Login = new Login("Gus", "Smith");
trace(gus.username); // output: Gus
trace(gus.password); // output: undefined
trace(gus.loginPassword); // error
Because loginPassword is a private variable, you cannot access it from outside the Login.as class
file. Attempts to access the private variable generate an error message.
See also
public, static