Random Movement in Flash MX question

hello, i wish to use the randommx flash on my website, but i would like to know who to make the randomly moving object face the direction it is moving; it only needs to face left and right when its moving in the corresponding direction (not up+down+left+right ; not 360 degrees)

how can i do this? i will be using the same cone objects as the one in the tutorial, except that i will replace the sprite with my own.


this is the tutorial: