unity 2.0 project conversion problem

Hello,
we’re testing the new Unity 2.0 version. We have imported a project we’re currently working on. Appearently there must be something wrong with the new Unity platform. If we create a new project from scratch and write the code below, it works. On the other hand, if we import the old (v1.6.2) project, we get the following error:

“Assets/Working Assets/Scripts/Game Play Controller/PlayerProfile.js(97) error BCE0005: Unknown identifier: ‘FindObjectOfType’.”

Any help will be appreciated.

Thanks,
Antonio

private var scoreSubscriptors: Array = new Array();
....
function subscribeAtScore(objectType : Type){
    scoreSubscriptors.Push(objectType);
}
.....
function addPointsToScore(pointsToAdd : int){
    score += pointsToAdd;
    for(i=0; i<scoreSubscriptors.length; i++){
        object = FindObjectOfType(scoreSubscriptors[i]); <--- row 97 
        object.scoresUpdated(score);
    }
}

weird. in the imported project maybe try resaving the script to force a recompile?