Study Guides (390,000)
CA (150,000)
SFU (5,000)
IAT (80)
IAT 167 (20)
Final

IAT167-BitmapLoadingExample.docx


Department
Interactive Arts & Tech
Course Code
IAT 167
Professor
Jack Stockholm
Study Guide
Final

This preview shows page 1. to view the full 4 pages of the document.
Main.as
package
{
import flash.display.Sprite;
import flash.events.Event;
public class Main extends Sprite
{
private var levelMap:LevelMap;
private var loadTurret:LoadTurretExample;
public function Main():void
{
// Example 1 Loading a full map
levelMap = new LevelMap();
addChild(levelMap);
// Example 2 Loading a tile from a tile sheet using copypixels
loadTurret = new LoadTurretExample();
addChild(loadTurret);
}
}
}
You're Reading a Preview

Unlock to view full version