_lockroot
In Flash action script, when calling loadMovie, if you don't set its _lockroot property to true in the loader movie, the loader has access only to its own library, but not the library in the loaded movie.
var ball1:Ball = new Basketball()
ball1 will only hace the Ball's properties and methods. The complier checks the datatype of the variable ball1 - not the class of the object actually stored in the variable - to determine what methods and properties are avilable.
var ball1:Ball = new Basketball()
ball1 will only hace the Ball's properties and methods. The complier checks the datatype of the variable ball1 - not the class of the object actually stored in the variable - to determine what methods and properties are avilable.

0 Comments:
Post a Comment
<< Home