For a mini AIR project I had some issue with sandbox security violation warnings that kept coming up any time I was using DragManager on images for which the source had been set to some locally held images (within the User Directory).
To bypass these warning, it is required to load the bytes into a bitmap and to get the image component display the bitmap. Code below.
I attended two talks on the semantic web by Professor James Hendler, a few years ago. Lectures slides are available on the UoE distinguished lectures webpage. Here are my notes.
Expand on the tileset example to provide a map editor
(The download functionality requires flash player 10)
Free to re-use tilesets can be found on the Reiners website. As per Reiners Readme Page "All the graphics and meshes are freeware. Even for commercial Games. I just want my name in the Credits in the commercial case: Reiner "Tiles" Prokein. You can modify my graphics in every needed way to fit it to your needs: size, colour, fileformat, etc., you can reuse the textures ... . "
Tile manipulation via a SpriteSheet (grid that defines the location of the tiles) and TileSet (combination of grid and image data) abstraction
* Get the bitmap for a tile at a given [row,column]
* @param rowId row index (starts at 0)
* @param columnId column index (starts at 0)
public function getTileBitmap(rowId:int,colId:int):Bitmap
var bitmapData:BitmapData = new BitmapData(_sheet.tileWidth,_sheet.tileHeight, false, 0xFFFFFF);
bitmapData.copyPixels(_bitmap.bitmapData, _sheet.getTileRectangle(rowId, colId), new Point(0, 0));
return new Bitmap(bitmapData);