[flexcoders] Fwd: Problem to extend HTTPService

2008-04-28 Thread doodoonn2000
Hello all !
I got the same compilation resolution error.
in the same context (HTTPService extension.)

How could i figure out this *namespace* (or dynamic property) issue ?

i wrote :
...
xmlns:me="com.foo.flex.components.*" 
...



>>>it's here !!! gaga ("can't resolve  to a
component implementation.)




Any knowledge ???

--- In flexcoders@yahoogroups.com, "vive" <[EMAIL PROTECTED]> wrote:

Hello,

I am trying to extend HTTPService to add some processing of the result
before returning it however I have some problem when I try to compile.
My component is very simple right now:

package bnp.rpc.http.mxml
{
import mx.rpc.http.mxml.HTTPService;
import mx.rpc.events.ResultEvent;
import mx.controls.Alert;

public class ExtendedHTTPService extends HTTPService
{
public function ExtendedHTTPService(url:String):void
{
this.addEventListener(ResultEvent.RESULT, 
this.onInternalResult,
true, 0, true) ;
}

private function onInternalResult(event:ResultEvent):void
{
mx.controls.Alert.show('Hello world!') ;
}
}
}




And the declaration of the HTTPServices in the application looks like:



toto





toto






The problem is that I can't compile because I get the following error:

Could not resolve  to a component implementation.

for the ExtendedHTTPService declaration. I cannot understand why. I
did not even tried to overload the request property ?!?!
Does anyone have an idea ?

Thanks in advance !!

--- End forwarded message ---




Re: [flexcoders] Fwd: Problem to extend HTTPService

2009-04-09 Thread Fernando Wermus
How could you resolve the namespace issue? I need to compile a mxml with
mxmlc, but It cant resolve the namespace.

On Mon, Apr 28, 2008 at 7:51 AM, doodoonn2000 wrote:

>   Hello all !
> I got the same compilation resolution error.
> in the same context (HTTPService extension.)
>
> How could i figure out this *namespace* (or dynamic property) issue ?
>
> i wrote :
> ...
> xmlns:me="com.foo.flex.components.*"
> ...
>  url="{Master.ROOT}"
> destination="/Login?action=connect"
> useProxy="false"
> resultFormat="e4x">
> 
>
> >>>it's here !!! gaga ("can't resolve  to a
> component implementation.)
>
> 
> 
>
> Any knowledge ???
>
> --- In flexcoders@yahoogroups.com , "vive"
>  wrote:
>
> Hello,
>
> I am trying to extend HTTPService to add some processing of the result
> before returning it however I have some problem when I try to compile.
> My component is very simple right now:
>
> package bnp.rpc.http.mxml
> {
> import mx.rpc.http.mxml.HTTPService;
> import mx.rpc.events.ResultEvent;
> import mx.controls.Alert;
>
> public class ExtendedHTTPService extends HTTPService
> {
> public function ExtendedHTTPService(url:String):void
> {
> this.addEventListener(ResultEvent.RESULT, this.onInternalResult,
> true, 0, true) ;
> }
>
> private function onInternalResult(event:ResultEvent):void
> {
> mx.controls.Alert.show('Hello world!') ;
> }
> }
> }
>
> And the declaration of the HTTPServices in the application looks like:
>
>  id="testservice1"
> url="./test.pl"
> resultFormat="text"
> method="POST"
> result="onExternalResult(event) ;"
> >
> 
> toto
> 
> 
>
>  id='testservice2'
> url="./test.pl"
> resultFormat="text"
> method="POST"
> result="onExternalResult(event) ;"
> >
> 
> toto
> 
> 
>
> The problem is that I can't compile because I get the following error:
>
> Could not resolve  to a component implementation.
>
> for the ExtendedHTTPService declaration. I cannot understand why. I
> did not even tried to overload the request property ?!?!
> Does anyone have an idea ?
>
> Thanks in advance !!
>
> --- End forwarded message ---
>
>  
>



-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus
http://mientretiempo.blogspot.com/