On screen keys

For my game i want the up and down on the keyboard, but obviously they aren't on an iPhone or iPad, so I was wondering if anyone had any idea how to make up, down, right, and left objects to control my main actor thanks! - Nick
Comments
when left button touched change game.direction to 1
" right button " " " " 2
" up button " " " " 3
" Down button " " " " 4
then the actor you want to move just tell it:
when direction = 1 move left
and do that will the other 3 directions.