【发布时间】:2011-04-02 07:12:55
【问题描述】:
我在尝试绑定属性时遇到了不明确的引用错误。代码如下:
MXML
<?xml version="1.0" encoding="utf-8"?>
<custom:Test
xmlns:mx = "library://ns.adobe.com/flex/mx"
xmlns:fx = "http://ns.adobe.com/mxml/2009"
xmlns:custom = "CodeBehind.*">
<mx:TextInput id = "foo" text = "foo!">
</mx:TextInput>
<mx:TextInput id = "bar" text = "{foo}">
</mx:TextInput>
</custom:Test>
代码隐藏
package CodeBehind
{
import mx.containers.Panel;
public class Test extends Panel
{
}
}
这是错误本身:
/Front/Test.mxml(-1): Error: Ambiguous reference to Test.
<?xml version="1.0" encoding="utf-8"?>
奇怪的是,它甚至没有提到绑定属性...
【问题讨论】:
标签: apache-flex actionscript-3 mxml code-behind