Integrating swift 3d graphics with actionscript

I saw an amazing game at Newgrounsd earlier, and I was amazed. How could swift 3d graphics be used in such ways as this?
I understand how gotoAndPlay could be used, but it appears that the enemies here have some kind of intelligence. I have no idea how this could be done (other than just playing them through some activity that LOOKS like AI and then playing the death when you shoot them). I am shocked. I really am. How was this done? Anyone know or have a good guess?

First post