iPhone - Mouse to Screen coordinates

function CreateElement(Element){
	 
    
    var ray = Camera.main.ScreenPointToRay (Input.mousePosition);
    var hit : RaycastHit;


		Physics.Raycast (ray, hit, 500);
		
		hit.point.y = 5;
		var objclone : Rigidbody = Instantiate(stringElement, hit.point,transform.rotation);
	
    	objclone.velocity = Vector3(Random.value*100-50,0,Random.value*100-50);  


      }

I’ve been using the above code to get the mouse clicks and instantiate an object at a specific point, all is good, however the are some issues.

At the corners of the screen, it seems that unity is registering the mouse clicks at (0,0) for some reason, and I cannot figure out why. This happens in Unity and when I build and test the app on my iPad.

I’m using Unity 3 b3 and wanted to use the mouse method rather than the touch at this point since it makes things a bit easier, but that might be the problem?

Just to clarify, are you saying it reports (0,0) for all four corners?