Rotate on drag for IOS?

Hello all,
I am new to Unity and JS so bear with me… I’m trying to change a rotate script so that it will run on an IOS device, but having a little trouble.
The script I have been using to rotate an object on my computer,

var verticalSpeed : float = 2.0;
var horozontalSpeed : float = 2.0;
var depth : float = 2.0;

function OnMouseDrag () {
    var v : float = verticalSpeed * Input.GetAxis ("Mouse Y");
    transform.Rotate ( -v, 0, 0);
    var h : float = horozontalSpeed * Input.GetAxis ("Mouse X");
    transform.Rotate (0, 0, h);
}

My attempt at the IOS script,

var verticalSpeed : float = 2.0;
var horozontalSpeed : float = 2.0;
var mouseDown : boolean;

function update (){
    if(Input.GetMouseButton(0)){
        mouseDown = true;
    }
    else{
        mouseDown = false;
    }
    if(mouseDown){
        drag();
    }
}

function drag () {
    var v : float = verticalSpeed * Input.GetAxis ("Mouse Y");
    transform.Rotate ( -v, 0, 0);
    var h : float = horozontalSpeed * Input.GetAxis ("Mouse X");
    transform.Rotate (0, 0, h);
}

Am I even close haha?
Any ideas how I might be able to get this too work would be greatly appreciated.
Thanks, Garrett.

You need to look into the Input states for iOS, using touch is a bit different to mouse.

(btw your Update is with a lower u)

To modify the Update for touch, something like :

#pragma strict

private var h : float;
private var v : float;
private var horozontalSpeed : float = 2.0;
private var verticalSpeed : float = 2.0;

function Update()
{
    if (Input.touchCount == 1)
    {
        var touch : Touch = Input.GetTouch(0);
        
        if (touch.phase == TouchPhase.Moved)
        {
            h = horozontalSpeed * touch.deltaPosition.x ;
            transform.Rotate( 0, -h, 0, Space.World );
            
            v = verticalSpeed * touch.deltaPosition.y ;
            transform.Rotate( v, 0, 0, Space.World );
        }
    }
}

here’s some sample script I posted in the forums : http://forum.unity3d.com/threads/142758-Moving-objects-with-your-finger