3d rotation in as3

Hi Friends

I am trying to animated two images on axis with rotationX command. it’s working when the picutre comes in 90 degree it gets overlapping. I am attaching the picture for your reference