Error using a hyphen as an object property name in Flex
Posted
by John Leonard
on Stack Overflow
See other posts from Stack Overflow
or by John Leonard
Published on 2010-03-22T11:43:00Z
Indexed on
2010/03/22
11:51 UTC
Read the original article
Hit count: 317
I'm trying to assemble a header object for an api request. One of the headers is 'Content-Type'. The hyphen is causing a compile error. Flex is giving me:
1050 - Cannot assign to a non-reference value.
I find it spiteful that they enjoy the use of a hyphen in the error message while I hang my head and come here for answers.
© Stack Overflow or respective owner