1. Case
An Actionscript 'Case' Statement like in other scripting language that can be used like 'If'
2. Depth Detection
At the moment you can swap the depth of two movie clips but you cannot get their current depths to find out whether you want to swap them making it hard to do 3D stuff. (correct me if you can actually do this)
