Flash 8 AS2 xml loadmovie problem

Hello i just got a very small problem which i know i’ll get the answer here…i’m new in this so i couldn’t figure it out after trying for sooo long…I’m just trying to load a single image based on its id from an xml file…The xml looks something like this:

<?xml version="1.0" encoding="utf-8"?>
	<item image="photos/photo01.jpg" image_id = "100"  />
	<item image="photos/photo02.jpg" image_id = "101"  />
        <item image="photos/photo03.jpg" image_id = "102"  />

The AS code is

var my_xml = new XML()
my_xml.ignoreWhite = true
my_xml.onLoad = function(success){
for(i=0;i < my_xml.firstChild.childNodes.length; i++){
	var img = my_xml.firstChild.childNodes*
	var id = img.attributes.image_id
	var path = img.attributes.image
	trace(id) [COLOR="Red"](this gives the id ie 100,101,102)[/COLOR]
	id = path
	trace(id)[COLOR="red"](this gives photos/photo01, photos/photo02 and so on)[/COLOR]


Now in the html i have specified index.swf?id = 100 but it does not show anything…Any ideas anyone??