I am making an infinite menu that is fed by xml. my xml looks like this
<images>
<image>
<path>images/angel.jpg</path>
<url>circle.swf</url>
<caption>nr 1</caption>
</images>
Right now when you click on the image the circle.swf is loaded in the movie.
actionscripting is like this
this is where the images are loaded:
spacing = 0;
boot = function () {
for (var i = 0; i<images.length; i++) {
mc = container.attachMovie(“thumbMC”, “thumb”+i, i);
mc._y = i*(55+spacing);
mc.path = images*.path;
mc.link = images*.link;
mc.name = images*.caption;
}
this is in the thumb mc movie, used to load the circle.swf:
loader.onRelease = function() {
_root.page.loadMovie(this._parent.link)
}
What I want is when you click an image for two movies to load. I tried to accomplish this by adding another tag to my xml:
<images>
<image>
<path>images/angel.jpg</path>
<url>circle.swf</url>
<caption>nr 1</caption>
<move>text.swf</move>
</image>
spacing = 0;
boot = function () {
for (var i = 0; i<images.length; i++) {
mc = container.attachMovie(“thumbMC”, “thumb”+i, i);
mc._y = i*(55+spacing);
mc.path = images*.path;
mc.link = images*.link;
mc.name = images*.caption;
mc.move = images*.move;
}
loader.onRelease = function() {
_root.page.loadMovie(this._parent.link)
_root.text.loadMovie(this._parent.move)
This however did not work. I think it is my xml. Does anybody know whats going on? Is it possible to add another link to the images?