Hi guys.
I have a little bit of trouble with dynamically creating some elements and applying some event to them. The objects appear as i want to but do not accept the event i try to append! Here is the code:
function loadThumbs(){
for(n=0;n<total;n++){
_root.thumb.duplicateMovieClip ("thumb"+n, _root.getNextHighestDepth());
thisClip=_root["thumb"+n];
thisClip._y = 481;
thisClip._x = xPosition;
xPosition = xPosition + 87
thisClip.loadMovie(th[n], 1);
thisClip._alpha = 60;
thisClip.onRollOver = function(){
thisClip._alpha=100;
}
thisClip.onRollOut = function(){
thisClip._alpha=60;
}
thisClip.onRelease = function(){
var currentBtn:String = thisClip._name;
var currentIndex:String = currentBtn.substring(5,7);
loadImage(currentIndex);
}
}
}
function loadImage(j) {
if (loaded == filesize) {
bi_holder._alpha = 0;
bi_holder.loadMovie(image[j], 1);
picture_num();
}
}
I'd appreciate any ideas because i'm really stuck!




Thanks!

Bookmarks