如何雙向綁定整數到Flex/FB4中的輸入字段? is_admin是一個整數:Flex - 如何將一個整數(雙向)綁定到TextInput字段
<s:TextInput id="textUserIsAdmin" text="@{user.is_admin}" width="5"/>
我收到:
1067: Implicit coercion of a value of type String to an unrelated type int.
是否有不同的輸入類型,或做我必須以不同的方式結合?
您應該閱讀該問題。他希望字符串到int轉換。 – 2011-04-12 11:56:18
謝謝,我繼續編輯它。 – andrewpthorp 2011-04-12 12:46:27