Height Property

Height Property

Flash CS4 ActionScript 3.0 Tutorial

 

How to Assign Height Property to Button Symbols, Movie Symbols and Text with Flash ActionScript

 

 

The Height property controls an object's overall height. The values are set in pixels.

Tutorial Elements

Movie Symbol with instance name heightMovie_mc

 

Step One

Add a Movie Symbol to the stage..

Step Two

Select the ojbect and open the Properties panel (Cmd/F3 (PC-Ctrl/F3)). Type in the name heightMovie_mc for the Instance Name.

Step Three

Add a new layer called Actions.

Step Four

Option double-click (PC - Alt double-click) the keyframe in the Actions layer to open the ActionScript panel.

Step Five

Copy/Paste the following code to the ActionScript panel.

heightMovie_mc.height = 100;

Step Six

Test your movie by pressing Cmd/Return (PC - Ctrl/Enter). By setting height equal to 100, the object's height becomes 100 pixels.

Height and Scale

Both the Height and Scale properties can be uses to enlarge an object. Depending on the application, you should consider both possibilities.