I have a tile class, which embeds a swf and then every time i need to create a tile i call that class… Does that make the swf load each time? Is there a better way of doing this? or is this already the best way of doing it? I am getting some major lag in my game, but I can’t figure out what is causing it. Seems to be alot of things on the view screen…
But in my opinion 1,000 movie clips shouldn’t be lagging the game up.
The tile class looks like this
Well that part of it does, there is alot more in it…
import mx.core.MovieClipAsset;
[Embed(source="../images/tiles.swf", symbol="tiles")]
public class map_tiles extends MovieClipAsset
{
}