Image Gallery via XML help

Hi,
I have a swf with an embedded image of a map. Over the map I’ve placed several movieClip buttons to represent different locations on the map. I’ve managed to put together a simple reusable button class that allows for the hover and out effects on each location. I’d like to include in my button class a CLICK event which would trigger the population of a TileList, therefore each button/location when clicked would populate the TileList with unique set of images and then when an image is clicked in TileList a larger image is displayed on top of everything and then click the larger image to remove and browse some more. I feel like I’m close, but not really?! I’m attaching a copy of my button class.
I imagine I need to create an XML loading class, separate my XML file into sets of images, and voila

I would suggest you rather build your ButtonEvent class and despatch the click event .In the stage you add the eventListener functions. while creating the myButtonClass add the path of the xml from which you want to extract the image path.When you click the button stage will know and load the xml .After the xml is loaded call the function to create a dynamic Tile list and load the image in the TileList.The rest is what you want…

Cheers
Sudhansu


var my_but= new My_button_mc("txt",my_func_stop);
addChild(my_but);
with (my_but) {x=10;y=10; scaleX=0.5; scaleY=0.5;}
function my_func_stop()
{
url_func(my_array[0]);
}

my_array[0] has load from file
http://dnadillo.dn.ua/fla/external_url/ext_url.txt
line 0

test from
http://dnadillo.dn.ua/fla/external_url/ext-url.swf

http://dnadillo.dn.ua/fla/external_url/ext_url.zip

xml model
http://dnadillo.dn.ua/fla/XML/img-xml.swf

load image url from external xml file in sprite
http://dnadillo.dn.ua/fla/XML/img-xml-img.swf
http://dnadillo.dn.ua/fla/XML/img-xml-img.zip
http://dnadillo.dn.ua/fla/XML/img_xml.xml

Hi
I have worked on the problem you told.
I mm attaching the zip file .You can use it as your additional source.

Cheers:devious:
Sudhansu

i couldnot add .pngs uou add of your own and the .png size should be 80x80 pixels