I’m getting the ambiguous reference error when trying to bind properties. Here’s the code:
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>
CodeBehind
package CodeBehind
{
import mx.containers.Panel;
public class Test extends Panel
{
}
}
Here’s the error itself:
/Front/Test.mxml(-1): Error: Ambiguous reference to Test.
<?xml version="1.0" encoding="utf-8"?>
Strangely enough, it doesn’t even mention the binded property…
Okay, so I’ve managed to solve it. I renamed Front/Test.mxml to Front/TestDisplay.mxml and that did the trick – no more ambiguous reference.