Suddenly Flex seems to dislike variable declaration. For example I write (on the script part of a mxml component)
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
var i:int = 1;
while(i< 9) i++;
[Bindable]
public var evolution:ArrayCollection = new ArrayCollection();
]]>
</mx:Script>
And it says the variable i has not been defined. This doesn't make any sense to me. Any guess of what might have gone wrong? It happened all of a sudden, when I put the evolution ArrayCollection calling the simple constructor with no arguments. I wanted to add items using a while cycle instead, but now I've erased nearly all the code and I can't figure out what went wrong it doesn't seem to recognize my variables anymore! I'm going crazy.