added setDepth function, enable agal2 support for flash14+