Isn't ClassName(instance).foo a bad idea now we have (instance as ClassName).foo? I'd much rather have a NPE when it's actually null, and a CCE when instance isn't a ClassName.
-Josh On Thu, Jun 5, 2008 at 1:55 PM, 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:[EMAIL PROTECTED] *On > Behalf Of *flexawesome > *Sent:* Wednesday, June 04, 2008 7:28 PM > > *To:* [email protected] > *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] <flexcoders%40yahoogroups.com>, "Alex > Harui" <[EMAIL PROTECTED]> 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] <flexcoders%40yahoogroups.com> > [mailto:[email protected] <flexcoders%40yahoogroups.com>] On > > Behalf Of flexawesome > > Sent: Wednesday, June 04, 2008 2:19 PM > > To: [email protected] <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] <flexcoders%40yahoogroups.com><mailto: > flexcoders% <flexcoders%25> > 40yahoogroups.com> > > , "Alex Harui" <aharui@> wrote: > > > > > > Try event.currentTarget.toString() > > > > > > > > > > > > ________________________________ > > > > > > From: [email protected] <flexcoders%40yahoogroups.com><mailto: > flexcoders% <flexcoders%25> > 40yahoogroups.com> > > > > [mailto:[email protected] <flexcoders%40yahoogroups.com><mailto: > flexcoders% <flexcoders%25> > 40yahoogroups.com> > > ] On > > > Behalf Of flexawesome > > > Sent: Wednesday, June 04, 2008 1:25 PM > > > To: [email protected] <flexcoders%40yahoogroups.com> <mailto: > flexcoders% <flexcoders%25> > 40yahoogroups.com> > > > Subject: [flexcoders] Re: Retrieving instence name? > > > > > > > > > > > > event.currentTarget.name seem doesn't work. :( > > > > > > --- In [email protected] <flexcoders%40yahoogroups.com> > > <mailto:flexcoders%40yahoogroups.com <flexcoders%2540yahoogroups.com>> > <mailto:flexcoders% <flexcoders%25> > > 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> > > > > > > > > > Thank you > > > > > > > > > > > > -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]

