Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can't use 'implements' with mxml components

41 views
Skip to first unread message

icepac

unread,
May 28, 2008, 6:59:44 PM5/28/08
to
Greetings everyone !
I have a very weird problem.

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

icepac

unread,
May 29, 2008, 12:09:26 AM5/29/08
to

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

0 new messages