About calling built-in object methods

You call an object's method by using the dot (.) operator followed by the method. For example, the following code creates a new Sound object and calls its setVolume() method:

var my_sound:Sound = new Sound(this);
my_sound.setVolume(50);

For examples of working with methods of the built-in MovieClip class, see Working with Movie Clips. For examples of working with methods of the built-in TextField, String, TextRenderer, and TextFormat classes, see Working with Text and Strings.