Something's wierd.  The ListEvent does not have a value property.  How
did you get the value?  The renderer's data property is an object and
not a string.

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Daniel Freiman
Sent: Tuesday, May 08, 2007 10:05 AM
To: [email protected]
Subject: Re: [flexcoders] String methods doesn't work



instead of 

if (value.indexOf("Character") > -1) {

try

var temp:int = value.indexOf("Character");
trace(value);
trace("Character");
trace(temp);
if (temp > -1) { 

my guess is that the trace will show that either "Character" or value
isn't what you thought it was and that the function is returning -1.
(I'm assuming you're replacing "Character" with a variable or literal
character in the code and not keeping it as "Character", because
otherwise that's you're problem right there). 

Dan Freiman
nondocs <http://nondocs.blogspot.com> 


On 5/8/07, haravallabhan <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote: 

        Hi,
        
        It seems I alone get such wierd problems. I tried to pass an
ListEvent 
        from the DataGrid on itemClick. I got the value from the event.
I mean 
        the de\isplay value. I tried to check for a character in the
value 
        using the value.indexOf("Character") > -1. it doesnt work. The
method 
        is not returning anything.
        
        When I check on the helper in the flex builder 2.0 IDE I could
see only 
        the length method displayed and no other methods which is
suppose be 
        for a string.
        
        Can some body help me n this regard
        
        Thanks in advance
        Cheers
        Hara
        
        

        


 

Reply via email to