« Core Display Classes Part2 | Main | Working with RFID »

Core Display Classes Part3

MovieClip
You can set the frame rate for all movie clips in an application using the frameRate property of the Stage object. A loaded SWF file can be a MovieClip object, an AVM1Movie object, or a Sprite object.

BitmapData
A Bitmap object has a bitmapData property that is a BitmapData object. A BitmapData object represents a rectanglar array of pixels.

var bmpData:BitmapData = new BitmapData(10,10,10,10);
var bmp:Bitmap = new Bitmap(bmpData);
addChild(bmp);

SimpleButton
A SimpleButton has three states:upState, downState, and overState. These states are each DisplayObject objects. The hitTestState property of a SimpleButton object is also a DisplayObject instance that responds to the mouse events for the button.

Video

var conn:NetConnection = new NetConnection();
conn.connect(null);
var stream:NetStream = new NetStream(conn);
stream.publish(false);
var vid:Video = new Video(640, 480);
vid.attachNetStream(stream);
stream.play("ext.flv");
addChild(vid);

Post a comment