I figured the best way to go about doing this was to create a series of small tiles (32x32 pixels) that would arrange themselves to form the image. So, my basic pseudocode idea is to do the following
1) get input number
2) take the input number to generate a 1 dimensional array. each item in the array represents a tile (all tiles are pregenerated)
3) we iterate along the array. in each iteration we:
----a) create an empty movie clip
----b) import the appropriate tile image into the movie clip
----c) place this movie clip on the stage
----d) scoot over 32 pixels so we can create the next movieClip
4) the entire image should be completed at this point
Sadly, i'm having a HUGE amount of trouble with #3
I basically have something like
--------------------------------------------------
var clipOne:MovieClip = new MovieClip();
clipOne.x = 0;
clipOne.y = 0;
stage.addChild(clipOne);
var loader:Loader = new Loader();
clipOne.addChild(loader);
loader.load(new URLRequest("Tile1.swf");
--------------------------------------------------
When i do that, the first tile loads totally fine. However, I have no idea how to get the 2nd tile to load without creating an entirely new loader. can i use the same loader??? that would help a fuckton.
blagh i'm so lost :[. this is due on tuesday, so hopefully someone can help me before then T.t.t.t.T
-Sean




