Hi...
I've run into a bit of a small -ish prolem.
I'm using my trusty tiled background code which tiles an image in my library, with the linkage name of 'tile'.
I know there must be a way to have the original image loaded via xml, so it can be chnaged quickly if necessary without opening up flash.PHP Code:var tile:BitmapData = BitmapData.loadBitmap("tile");
_parent.tileMC.beginBitmapFill(tile);
_parent.tileMC.moveTo(0, 0);
_parent.tileMC.lineTo(Stage.width, 0);
_parent.tileMC.lineTo(Stage.width, 4000);
_parent.tileMC.lineTo(0, 4000);
_parent.tileMC.lineTo(0, 0);
_parent.tileMC.endFill();
};
I've got my xml set up so it loads the tile jpeg into a variable called '_parent.BgdImage', and have tried this as my code to tile that, but I get no joy!
Does anyone have any ideas on where to go from here. Thought this would be a simple thing...PHP Code:var tile:BitmapData = BitmapData.loadBitmap(_parent.BgdImage);
tile.draw(_parent.BgdImage);
_parent.tileMC.beginBitmapFill(tile);
_parent.tileMC.moveTo(0, 0);
_parent.tileMC.lineTo(Stage.width, 0);
_parent.tileMC.lineTo(Stage.width, 4000);
_parent.tileMC.lineTo(0, 4000);
_parent.tileMC.lineTo(0, 0);
_parent.tileMC.endFill();
};
Cheers for any advice offered
Jeff





Reply With Quote


