topical media & game development
animation-ch04-App.ax
animation-ch04-App.ax
(swf
)
[ flash
]
package
{
import flash.display.Sprite;
import flash.display.Bitmap;
import flash.display.BitmapData;
public class SimpleBitmap extends Sprite
{
public function SimpleBitmap()
{
init();
}
private function init():void
{
var myBitmapData:BitmapData = new BitmapData(100, 100, false, 0xff0000);
var myBitmap:Bitmap = new Bitmap(myBitmapData);
addChild(myBitmap);
}
}
}
(C) A. Eliëns
2/9/2007
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.