From the island demo, see the comment for my questions.
var statename = "defaulto"; // Is this a string?
var speed = 0.5;
function Start () // if it is not a update function will it loop every frame?
{
animation[statename].speed = speed; //I don't understand, is animation a class? What is [] for?
}
Thanks