« More Away3D tutorials posted on Flashmag | Main | Away3D doughnut? »

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"...

A word from our sponsors :)

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.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)