try (no guarantee, just an idea..I'm not a flash person)
set Property ("toto", Alpha = number(i)
I think what is happening is it thinks i is a string and hence doesn't know what to do with it. Also "i" isn't the same as i. i is a varialbe where "i" is a string, important difference.