ArgumentError: Error #2004: One of the parameters is invalid
Just figured that Flex will start throwing this error if you don't set the width and height your AIR application. It makes sense - an application needs to have a width and height, but for a second, I forgot that I was making an AIR app and not a Flex project.
Just thought I'd post it here in case others get the same problem. This error happens in Flex also, but for other reasons. It's a little annoying that these error messages are so useless when they could have said something like "Required parameter missing in MXML"...
Comments
hi,there.
I got same problem.
In my case, I got same error when I set 'height' parameter in List compornent.
I set 'rowCount' parameter instead of 'height', it works.
Posted by: watalie | March 27, 2009 10:32 AM