Flex: Failing gracefully on ReferenceError: Error #1056:

Posted by Chin on Stack Overflow See other posts from Stack Overflow or by Chin
Published on 2010-03-17T06:40:12Z Indexed on 2010/03/17 6:41 UTC
Read the original article Hit count: 333

Filed under:
|

Hi I have a text field which I would like to bind to a dynamic object.

<mx:TextInput id="ti4" text="{selectedObj['someProp']}" valueCommit="{selectedObj['someProp'] = ti4.text}"  x="1011.5" y="835"/>

If the property doesn't exist I get a reference error - Is there any way to fail a little more gracefully?

Any ideas much appreciated.

© Stack Overflow or respective owner

Related posts about flex

Related posts about dynamic