I need to use both arrays, can this be done in the same for loop.
code below:-
/Store all my chartered areas in an array/
countries = new Array(“cr11”, “cr13”, “cr16”, “cr20”)
captions = new Array(“morocco”, “this”, “that”, “here”)
//for (var i = 0; i < countries.length; i++){
for (var i = 0; i < countries.length; i++) {
elements.worldmap[countries*].onRollOver = function() {
elements.caption._visible = true;
elements.caption.captiontext = captions[2]
Mouse.hide()
_root.x = 1;
}
elements.worldmap[countries*].onRollOut = function() {
elements.caption._visible = false;
elements.caption.captiontext = ""
Mouse.show()
}
}