How can I pass an array when the user clicks a button back to the main pane? The displayPictures() is just for debugging but I do need to pass the picArray so the movieclip can load the images. Any ideas?
on the main pane I put these:
var pictures = new Array();
function setPictures(picArray){
this.pictures = picArray;
}
function displayPictures() {
for (i=0; i < this.pictures; i++) {
trace("PICTURES:" + this.pictures*);
}
}
Then on the button I put this in the onPress event:
on(press) {
_root.setPictures(pArray);
_root.displayPictures();
}