It seems I can't use the 'implements' command with my mxml
components. When I use it in my class declaration of in a .as file
it
works just fine (even if said .as actually is a component !)
However if I use it in the declaration (first line) of a mxml
component I get the :
1045: Interface not found error
here is my code :
<mx:HDividedBox xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns="VisualComponents.*"
implements="IVisualInteractiveComponent,IVisualListedComponent">
code of the interface
package VisualComponents
{
public interface IVisualInteractiveComponent
{
function get UserAnswer():String;
}
}
Remember if I use it in a .as it will work fine...
Thanx in advance for the help,
Pascal
Found the answer. It seems that you need to put in the absolute
path. The xmlns doesn't seem to have any impact on your Interface so
you need to specify the absolute path where your interface is
stored...
In my case :
<mx:HDividedBox xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns="VisualComponents.*"
implements="VisualComponents.IVisualInteractiveComponent,VisualComponents.I
VisualListedComponent">
Cheers