This is a basic Flex question I have regarding dot syntax. I'm using Flash Builder 4 and whenever I use dot syntax for an object or a URLVariable, Flash Builder is giving me the following warning: The variable action is undefined in dynamic type flash.net.URLVariables
For example:
var vars:URLVariables = new URLVariables();
vars.action = "load leagues";
This also happens with Objects (for example):
var obj:Object = new Object();
obj.view = 55;
However, Flash Builder likes it when I change the syntax to:
vars["action"] = "load leagues";
or
obj["view"] = 55;
The program works with both syntax, but I'm unsure why Flash Builder keeps warning about it. Thanks.