Did you import the LoaderInfo class?

 

Gordon Smith

Adobe Flex SDK Team

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of flexawesome
Sent: Thursday, June 05, 2008 12:09 PM
To: [email protected]
Subject: [flexcoders] Re: Retrieving instence name?

 

this make scense, but I got this error msg when I tried to use 
LoaderInfo().loader

1180: Call to a possibly undefined method LoaderInfo.

Did I miss something else?

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Code hints will not help when dealing with event.target unless you 
know
> what it is. Technically you should code lit like
> 
> 
> 
> LoaderInfo(event.target).loader
> 
> 
> 
> And hopefully, you'll get code hints when you type the '.' before
> loader.
> 
> 
> 
> ________________________________
> 
> From: [email protected] <mailto:flexcoders%40yahoogroups.com>

[mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of flexawesome
> Sent: Wednesday, June 04, 2008 7:28 PM
> To: [email protected] <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Re: Retrieving instence name?
> 
> 
> 
> Woowow Ales, you are the BEST!!!! :))
> 
> How do you know the property of event.target.loader? I was unable 
to 
> see the property by using "cdoe tip"
> 
> Cheers
> 
> --- In [email protected]
<mailto:flexcoders%40yahoogroups.com>  <mailto:flexcoders%
40yahoogroups.com>
> , "Alex Harui" <aharui@> wrote:
> >
> > Sorry, I actually hadn't looked at your code before.
> > 
> > 
> > 
> > The target/currentTarget will be a LoaderInfo. Target.loader.name 
> is
> > probably what you want.
> > 
> > 
> > 
> > ________________________________
> > 
> > From: [email protected]
<mailto:flexcoders%40yahoogroups.com>  <mailto:flexcoders%
40yahoogroups.com>
> 
> [mailto:[email protected]
<mailto:flexcoders%40yahoogroups.com>  <mailto:flexcoders%
40yahoogroups.com>
> ] On
> > Behalf Of flexawesome
> > Sent: Wednesday, June 04, 2008 2:19 PM
> > To: [email protected] <mailto:flexcoders%40yahoogroups.com>
<mailto:flexcoders%
40yahoogroups.com> 
> > Subject: [flexcoders] Re: Retrieving instence name?
> > 
> > 
> > 
> > 
> > Hey Alex, I was unable to retrieve the instance name..
> > 
> > I got trace info. => [object LoaderInfo]
> > 
> > Any hits?
> > 
> > --- In [email protected]
<mailto:flexcoders%40yahoogroups.com> 
> <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%
> 40yahoogroups.com>
> > , "Alex Harui" <aharui@> wrote:
> > >
> > > Try event.currentTarget.toString()
> > > 
> > > 
> > > 
> > > ________________________________
> > > 
> > > From: [email protected]
<mailto:flexcoders%40yahoogroups.com> 
> <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%
> 40yahoogroups.com>
> > 
> > [mailto:[email protected]
<mailto:flexcoders%40yahoogroups.com> 
> <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%
> 40yahoogroups.com>
> > ] On
> > > Behalf Of flexawesome
> > > Sent: Wednesday, June 04, 2008 1:25 PM
> > > To: [email protected]
<mailto:flexcoders%40yahoogroups.com>  <mailto:flexcoders%
40yahoogroups.com>
> <mailto:flexcoders%
> 40yahoogroups.com> 
> > > Subject: [flexcoders] Re: Retrieving instence name?
> > > 
> > > 
> > > 
> > > event.currentTarget.name seem doesn't work. :(
> > > 
> > > --- In [email protected]
<mailto:flexcoders%40yahoogroups.com> 
> <mailto:flexcoders%40yahoogroups.com> 
> > <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%
> > 40yahoogroups.com>
> > > , "flexawesome" <flexawesome@> 
> > > wrote:
> > > >
> > > > Hey, is that possible to retrieve the instence name for 
> imgLoad ?
> > > > 
> > > > # in this example, it calls init2 from init1 and know the 
> > instence 
> > > name 
> > > > is "test" but I would like to retrieve it from event or other 
> > ways, 
> > > is 
> > > > that possible?
> > > > 
> > > > 
> > > > http://www.privatepaste.com/e4RWWrMIAW
<http://www.privatepaste.com/e4RWWrMIAW> 
> <http://www.privatepaste.com/e4RWWrMIAW
<http://www.privatepaste.com/e4RWWrMIAW> > 
> > <http://www.privatepaste.com/e4RWWrMIAW
<http://www.privatepaste.com/e4RWWrMIAW> 
> <http://www.privatepaste.com/e4RWWrMIAW
<http://www.privatepaste.com/e4RWWrMIAW> > > 
> > > <http://www.privatepaste.com/e4RWWrMIAW
<http://www.privatepaste.com/e4RWWrMIAW> 
> <http://www.privatepaste.com/e4RWWrMIAW
<http://www.privatepaste.com/e4RWWrMIAW> > 
> > <http://www.privatepaste.com/e4RWWrMIAW
<http://www.privatepaste.com/e4RWWrMIAW> 
> <http://www.privatepaste.com/e4RWWrMIAW
<http://www.privatepaste.com/e4RWWrMIAW> > > > 
> > > > 
> > > > Thank you
> > > >
> > >
> >
>

 

Reply via email to