Hi,
The TileSet class will split up a bitmap into square tiles for you -
look at the convertBitmapTiles function.
It also has a loadTiles function which does all this for you.
Have a look at the SpaceMap demo - which uses the TileMap, TileSet &
the dragging stuff.
TileMap just holds information about where the tiles go - TileSet
holds the image data.
So both of these are used by DraggableMapRegion or TileMapViewer...
I guess setTile / setTiles is there for consistency - once you
understand what it does in one class, it's easy to understand what it
does in the other - you are setting the value for a single tile with
setTile - this might be an ID or it might be image data, etc.
HTH
Glen
Terry Riney wrote:
Hello,
Can someone send me a link/tutorial on breaking a byteArray up and moving it
along x/y coordinates?
In Colin Moock's book Ess. A 3.0 he shows on pg. 528 how to take a set array
elements (products) and and give a width/height to them.
I would like to do the same with a set of byteArrays? So taken his
TileSet/TileMap can someone give me advise on how to split his bitmapData up
along width/height?
Also, wonder why he has a setTile in TileMap and setTile in TileSet?
Thanks,
Terry
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
--
Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders