When dynamically generating movieclips, how can you add a
myMovieClip.onRelease = function () {
what needs to be done comes here …
};
Here’s my code
for(i=1;i<=_root.artcounter;i++){
content.duplicateMovieClip(“content”+i,i*1000);
this[“content”+i].id = i;
if(i == 1){
this[“content”+i]._y = 22;
this[“content”+i]._x = 0;
}
this[“content”+i].loadMovie(i+".jpg");
this[“content”+i]._height = 10;
this[“content”+i]._y = this[“content”+(i-1)]._y+this[“content”+(i-1)]._height;
}
It generates movieclips by duplicating a clip, loads a jpg into every generated clip and then places them in an _y position. But now I need to press them like they are buttons, and that won’t work…
Anyone ?
thanks