The problem is with some attributes like @class. Imagine you want to create an HTML source and want to create a tag tag
So the code should be
var myDiv: XML = test myDiv. @ class = "myClass"; // I want to install it here because it can change
but this is not compiled and it causes an error (at least in Flex Builder)
in this case, you can also use this:
myDiv. @ ['class'] = "myClass";
Franto
source
share