# Delay problem, almost read all posts already

**URL:** https://forum.kirupa.com/t/delay-problem-almost-read-all-posts-already/188988
**Category:** flash
**Created:** [May 12, 2006, 11:19am UTC](https://forum.kirupa.com/t/delay-problem-almost-read-all-posts-already/188988 "2006-05-12T11:19:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bart\_weijts](https://avatars.discourse-cdn.com/v4/letter/b/34f0e0/32.png) [@bart\_weijts](https://forum.kirupa.com/u/bart_weijts)
#### Post date: [May 12, 2006, 11:19am UTC](https://forum.kirupa.com/t/delay-problem-almost-read-all-posts-already/188988/1 "2006-05-12T11:19:24Z")

</div>

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]
