I'm duplicating movieclips with buttons inside them. I want the buttons to be assigned a dynamic getURL based on a value from XML. Does anyone know of or have a solution for this before I reinvent the wheel?
Here's what I've come up with so far:
Code:
// Do duplication of movieclip with button on its timeline
yourMovie.duplicateMovieClip("movie"+cClipCount, aNumber);
for (i=0; i<=anArray.length; i++) {
// Assign an action dynamically to the button inside the movieclip with a handler??
this["movie"+cClipCount].onRelease = function() {
loadMovie("images/" + fileName[i] + ".jpg", _root.JPGtarget);
}
}