View Single Post
03-13-2009, 07:27 PM
#1
JahGurl is offline JahGurl
JahGurl's Avatar
Status: I'm new around here
Join date: Mar 2009
Location: Canada
Expertise: front-end design & development
Software: Photoshop,Dreamweaver,msn
 
Posts: 4
iTrader: 0 / 0%
 

JahGurl is on a distinguished road

  Old  Gallery won't clear

Hi everyone,

I'm a student in web design, and I'm having a few issues with my portfolio gallery.

When I click on a button to enter a different frame the gallery of photos from frame "five" will still appear in the other frames.

I'm not sure how to fix this problem, and tried numerous searches and came up with nothing, except a clearInterval(); method which didint work either.

Here is the code I have in frame that functions the gallery:

this.createEmptyMovieClip("images", 100);
this.attachMovie("mask", "mask", 101);
mask._x = images._x = 150;
mask._y = target = 220;
images.setMask(mask);
images._y = -10;
speed = 5;
for (var i = 0; i<8; i++) {
var img = images.attachMovie("image"+i, "image"+i, i);
img._y = img._height*i;
var thumb = this["thumb"+i];
thumb._alpha = 60;
thumb.pos = target+(i*-img._height);
thumb.onPress = function() {
target = this.pos;
};
thumb.onRollOver = function() {
this._alpha = 100;
};
thumb.onRollOut = function() {
this._alpha = 60;
};
}
this.onEnterFrame = function() {
images._y += (target-images._y)/speed;
};



And HERE is the actually page where the problem occurs...
- if you click on samples, than design, that is where the gallery starts....

If someone can give me a hand in getting the photos cleared, that'd be awesome...than I can finally soon get my portfolio up!