Function problem. easy question!

this just wont work… Why cant i make a variable in a function?
like this:
aiBunny = function (target)
{
var target.hp:Number = 15;
target.interval = setInterval (aiFoe, 24, target);
};