btn_shoe.addEventListener(MouseEvent.CLICK, loadImage);
function loadImage(event)
{
var imageLoader:Loader = new Loader();
var theImage:String = "images/graphic/test.jpg";
var imageRequest = new URLRequest(theImage);
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
imageLoader.load(imageRequest);
function onComplete(event:Event)
{
addChild(imageLoader.content);
imageLoader.content.x = 267;
imageLoader.content.y = 213;
No comments:
Post a Comment