Groups | Blog | Home
all groups > macromedia flash sitedesign > april 2007 >

macromedia flash sitedesign : rollOver on XML loaded images...


lostinscript
4/16/2007 7:23:44 PM
hi,
I have started a gallery type thing with images loaded in with XML, i want it
so when the user rolls over the images a larger image is loaded in in main
window. I have loaded the images in but cant get a result with the
rollOver....any ideas...here is the code...It should be easy and i can see each
step (in my mind) that needs to be done...

Thanks for any help....



var driveXML:XML = new XML();
driveXML.ignoreWhite = true;
var urls:Array = new Array();
driveXML.onLoad = function() {
var photos:Array = this.firstChild.childNodes;
for (i=0; i<photos.length; i++) {
urls.push(photos[i].attributes.url);
}
holder1.loadMovie(urls[0]);
holder2.loadMovie(urls[1]);
holder3.loadMovie(urls[2]);
holder4.loadMovie(urls[3]);
}
driveXML.load("xml/meetXML.xml");
The Feldkircher
4/16/2007 8:01:48 PM
Hi

Is this the extent of your code, because I dont see any RollOver event being assigned to any of the holder(s)?

lostinscript
4/16/2007 8:46:47 PM
hi yeah, i took it out because it wasnt working...sorry about that.

It was pretty simple really. Just an onRollover = function on the holder1,
holder2 clips....(im only just getting my head round xml so it might be
something simple...

thanks.
AddThis Social Bookmark Button