When using a movie clip symbol in the as3.0 code, we can drag the movie clip onto the stage, give it an instance name, or double-click the corresponding component column in the corresponding component's as linkage column in the library to generate a clip's inheritance class for the component. Both of these methods can call a movie clip symbol. For the properties of a movie clip symbol, there are several common
X: Horizontal position
Y: Ordinate position
Width: element width
Height: component Height
Rotation: Component Rotation degree
Alpha: Component Opacity (0-1)
var myimage:myimage = new MyImage (); myimage.x = 200;myimage.y = 100;myimage.width = 200;myimage.height = 150;myimage.rot ation = 20;addchild (myimage); var myimage2:myimage = new MyImage (); myimage2.x=0;myimage2.y=100;myimage2.width=200; Myimage2.height=150;myimage2.alpha =. 5;addchild (myimage2);
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6E/A5/wKioL1WBqMyB3znkAADyZS49OtI793.jpg "title=" Img_ 18062015_005737.png "alt=" Wkiol1wbqmyb3znkaadyzs49oti793.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6E/A5/wKioL1WBqDzjCUWpAAHFbsT5Gvs787.jpg "title=" Img_ 18062015_005431.png "alt=" Wkiol1wbqdzjcuwpaahfbst5gvs787.jpg "/>
AS3 Common properties for movie clip symbols