This content has been marked as final. Show 3 replies
You'll need to reduce the button's participation to that of kicking things off by calling a separate function. The function will include the changing of the object to be displayed, then displaying it, and will end with a setInterval call that calls the function again. In this case, you would be better off using setTimeout instead oif setInterval because it does not require a clearInterval call.
i should told you that iam so wery wery new to flash.
can you please show me how it should be scripted with setTimeout function?
You should weally weally learn how to use the helps documents. Aside from the w's, that's a sincere suggestion, not a sarcastic one. They are your friend and can help you to learn as well as not have to ask others for help.
Since you want the door to be involved in this process, you'd be better off having the door closing trigger a call to the function, and use the setTimeout to close the door when you want to change pictures.
But in any case, here's the basic approach using the code you had, without the door in the picture. I am assuming that code works and haven't checked it for any revision needs..