you have to seek fo line of sight algorithm , they are many in flash community..just google it