Hi!
I’m trying to use onRelease for some dynamically created movieclips (thumbnails) so that when they are clicked, they can display an image. Here’s my code:
var myLoadvariable:LoadVars = new LoadVars();
myLoadvariable.load(“http://www.flossline.com/vera/imagesload.php”);
myLoadvariable.onLoad = function(success) {
if (success) {
_global.imageArray = new Array;
imageArray = myLoadvariable.files.split("|");
for(i=0;i<imageArray.length;i++){
_root.createEmptyMovieClip("thumbHolder"+i, 200+i);
loadMovie("myURL"+imageArray*, "thumbHolder"+i);
}//end for
}
If I then try:
thumbHolder1.onRelease=function(){
//code
}
the movieclips (thumbnails) do not become clickable.
I think it might be that dynamically created movieclips cannot access their events…but is there another way to do this?