Finnaly after reading several posts my delay function works half…
I’m missing something but cannot figure out what… please help…
I want to delay the vis function on photo1, photo2, photo3 when every I press the button video and pres, when I test the movie it works, but when I press the photo button and my photo should be visible, the function vis also works, or still works.
[INDENT][INDENT][LEFT][COLOR=DimGray]gal_length = 0;
var speed = 8;
delay = function(){
setInterval(vis, 1400);
};
vis = function (){
foto.foto1._visible=false;
foto.foto2._visible=false;
foto.foto3._visible=false;
};
MovieClip.prototype.slideIt = function(whereY) {
this.onEnterFrame = function() {
this._y += (whereY-this._y)/speed;
if (Math.abs(this._Y-whereY)<1) {
this._y = whereY;
delete this.onEnterFrame;
}
};
};
function startUp() {
foto.slideIt(-14);
video.slideIt(6);
pers.slideIt(26);
leeg.slideIt(46);
};
photo.btn.onRelease = function() {
photo.slideIt(-14);
video.slideIt(250);
pres.slideIt(270);
empty.slideIt(290);
photo.photo1._visible=true;
photo.photo2._visible=true;
photo.photo3._visible=true;
};
video.btn.onRelease = function() {
video.slideIt(6);
pres.slideIt(86);
empty.slideIt(106);
delay();
};
pres.btn.onRelease = function() {
video.slideIt(6);
pres.slideIt(26);
empty.slideIt(106);
delay();
};
startUp();
[/COLOR][/LEFT]
[/INDENT]Pleaze help:hangover:
[LEFT]
thanx…
[/LEFT]
[/INDENT]