Code Not Working

class People extends MovieClip {
    var speed:Number = 2;
    function onLoad(){
        this._x = -10;
        this._y = 350;
    }
    function onEnterFrame(){
        this._x += speed;
        checkRemove();
        this.swapDepths(_root.getNextHighestDepth());
        checkCollision();
    }
    
    function checkRemove(){
        if(this._x > Stage.width+10){
            this.removeMovieClip();
        }
    }
//here's the problem, import will not work.
    function checkCollision(){
        var xVal:Number = this._x;
        import Robot;
        if(this.hitTest(_root.RobotInstance) && Robot.GRAVITY > 0){
            this.removeMovieClip();
            _root.attachMovie("Bloody", "BloodMC"+_root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:xVal, _y:355});
        }
    }
}