Swap Depth Hell - p me please!

Hey all! Good morning.

I am hoping you can help me. I have a project where I have three polaroids overlapping eachother. When the mouse is run over each of them, that one comes to the front. No problem.

But the problem is, I need a way to send them back to their original state. Currently whatever one was the last to be rolled over…will stay when I go to other pages. It just floats in it’s spot. How can I stop this? It’s driving me mad. Here’s the code I was trying:

on (rollOver){
swapDepths(getNextHighestDepth()); ;
}
on (rollOut){
swapDepths (getNextLowestDepth()); ;
}

Any help would be greatly appreciated!