AS3 AI programming

i need help guys, im making a side scrolling game in flash as3.

now i only need is AI for my game. I want it to appear in a certain place.

and if it possible to have a hitpoints. i just dont know any of this.

thanks.

hope someone can really help me about this problem.

i dont know how to addChild my enemy in the stage.

thanks in advance action script masters !!

cheer,

raphaelle