Hi there! I’m sort of a flash newbie esp when it come to AS. Right now I have images dynamically loading in to a mc that I’m loading in at 60% and then enlarging to 100% on rollover. Here’s my code for that…
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip(“t”+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._xscale = target_mc._yscale = 60;
target_mc._x = hit_left._x+(target_mc._width+5)*k;
target_mc.pictureValue = k;
target_mc.onRelease = function() {
p = this.pictureValue-1;
nextImage();
};
target_mc.onRollOver = function() {
this.onEnterFrame = function() {
this._xscale = this._yscale += 5;
if (this._xscale>101) {
delete this.onEnterFrame;
}
}
thumbNailScroller();
};
target_mc.onRollOut = function() {
this.onEnterFrame = function() {
this._xscale = this._yscale -= 5;
if (this._xscale<61) {
delete this.onEnterFrame;
}
}
};
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], “thumbnail_mc.t”+k);
}
The problem I’m having is the images when enlarged go behind the next image instead of in front. I read and tried the suggestions i found in the forum but it didn’t work. It’s quite possible I just don’t understand well enough. Can any of you help?
I also would love to be able to load the images at the center rather than the top left so when they blow up they would look more like the example http://designarchives.aiga.org/, but I have a feeling I would have to go about this in a completely different way to make that happen??!
(-::wasted: