ArgumentError: Error #2004: One of the parameters is invalid

03 Dec

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

03 December 2008 at 5:26 am

1 Responses to ArgumentError: Error #2004: One of the parameters is invalid

  1. avatar photo
    watalie 27 March 2009 at 3:32 pm #

    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.

  2.