1178 Attempted access of inaccessible property _ through a reference with static type _.

Error 1178: Attempted access of inaccessible property name through a reference with static type todo.

Here is the line giving the error:

[xml]

[/xml]

The data for the combobox is coming from an XML List collection. This is the correct code:

[xml]

[/xml]

Notice in the second code example the value of the labelfield, “@name” is not surrounded by curly braces “{}”.

The labelField was expecting a String and using the curlybraces caused Flex to evaluate “@name” as an expression and return that.

Advertisements

2 thoughts on “1178 Attempted access of inaccessible property _ through a reference with static type _.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s