bbarney261
10-19-2008, 12:58 AM
I'm loading some images into an image gallery. I'm having trouble figuring out how to put each image into a Sprite so I can access the mouse events. When a users clicks on a image I would like to load an external page. Here is the code that I have:
function spaceImages():void{
mcContainer.x = 10;
mcContainer.y = 79;
for(var i:int = 0; i < images.length;i++){
images[i].x = images[i].width * i + padding;
mcContainer.addChild(images[i]);
}
}
Does anyone know a way that I could add the images to a sprite and then add the sprite to mcContainer?
Any help you be greatly appreciated.
Thanks in advance!
function spaceImages():void{
mcContainer.x = 10;
mcContainer.y = 79;
for(var i:int = 0; i < images.length;i++){
images[i].x = images[i].width * i + padding;
mcContainer.addChild(images[i]);
}
}
Does anyone know a way that I could add the images to a sprite and then add the sprite to mcContainer?
Any help you be greatly appreciated.
Thanks in advance!