Re: [flexcoders] bug in Flex regarding to import

2009-04-26 Thread Everson Alves
No, i'm using only one class. I guess it's importing automatically the
Webservice on the same package but an explicit import should override that.

On Sun, Apr 26, 2009 at 10:05 PM, Sam Lai  wrote:

> Assuming you're using both xxx.Webservice and zzz.Webservice in the
> same class, you need to use the full name to refer to those classes in
> your code, otherwise Flex won't be able to work out what you're
> referring to.
>
> So instead of:
> var w1:Webservice;
> var w2:Webservice;
>
> use:
> var w1:xxx.Webservice;
> var w2:zzz.Webservice;
>
> (this should work; haven't actually had this occur in my code yet.)
>
> On 4/27/09, Everson Alves  wrote:
> > Hello, I have this scenario:
> > class zzz.Webservice;
> > class xxx.Webservice;
> > class xxx.WebserviceAccess;
> > I'm trying to use zzz.Webservice and can't; I imported it but flex
> compiler
> > says it's ambiguos, when it shouldn't because I explicitly which one I
> want
> > to use;
> > --
> > Jhonny Everson
> >
>
> --
> Sent from my mobile device
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


-- 
Jhonny Everson


Re: [flexcoders] bug in Flex regarding to import

2009-04-26 Thread Sam Lai
Assuming you're using both xxx.Webservice and zzz.Webservice in the
same class, you need to use the full name to refer to those classes in
your code, otherwise Flex won't be able to work out what you're
referring to.

So instead of:
var w1:Webservice;
var w2:Webservice;

use:
var w1:xxx.Webservice;
var w2:zzz.Webservice;

(this should work; haven't actually had this occur in my code yet.)

On 4/27/09, Everson Alves  wrote:
> Hello, I have this scenario:
> class zzz.Webservice;
> class xxx.Webservice;
> class xxx.WebserviceAccess;
> I'm trying to use zzz.Webservice and can't; I imported it but flex compiler
> says it's ambiguos, when it shouldn't because I explicitly which one I want
> to use;
> --
> Jhonny Everson
>

-- 
Sent from my mobile device


[flexcoders] bug in Flex regarding to import

2009-04-26 Thread Everson Alves
Hello, I have this scenario:
class zzz.Webservice;
class xxx.Webservice;
class xxx.WebserviceAccess;
I'm trying to use zzz.Webservice and can't; I imported it but flex compiler
says it's ambiguos, when it shouldn't because I explicitly which one I want
to use;
-- 
Jhonny Everson