PDA

View Full Version : Using AS to change what's on top



tome
April 26th, 2003, 06:30 PM
I have three images which I want to switch back and forth when the user presses a button. I want a new image(imageB) to fade in on top of the current image(imageA) when the user pushes a button and then be able to go back the other way if they click another button(image A fading in over image B). Is there code which can bring something to the front or send it to the back.

thanks,
tome

ahmed
April 26th, 2003, 06:31 PM
if you want to simply bring objects to front/back, you can use the swapDepth method.. for a fade-in/out effect, search the forums :)