Thank you very much Gordon! That one really worked :D --- In [email protected], "Gordon Smith" <[EMAIL PROTECTED]> wrote: > > The preferred way is to use the 'is' operator, which is new in AS3: > > > > trace(str is String); // output is "true" > > > > - Gordon > > > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Harish Sivaramakrishnan > Sent: Monday, September 18, 2006 6:06 AM > To: [email protected] > Subject: Re: [flexcoders] Object of a specified type > > > > use typeof to find the type of an object. > > ex: > > var str:String > > trace(typeof(str) : prints "string" > > Hope this helps > Harish > > On 9/18/06, Daniel <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: > > How can I konw if an object is an instance of a specified type, for > example String. > > Thx! >
-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

