One more thing you can try is:

While you are checking correct and wrong answers in itemRenderer then
handle both if and else parts i.e.

override public function set data(value:Object):void{
if(value.correct){
//color equals black
}
else{
//color equals red
}
}

HTH,

-Ravi
On Jul 13, 5:14 pm, HISSAM <hissam.sher...@gmail.com> wrote:
> u must be messing with dataproviders
> please cross the data providers and their validity ,I mean their
> correctness.
>
> -----------------------------
> Regards,
>  HISSAM,
> ------------------------------
>
> On Mon, Jul 13, 2009 at 7:37 PM, GAGAN anand <gds.anan...@gmail.com> wrote:
> > Hi Ram
>
> > Could u please elaborate the situation a bit more..
>
> > Regards
> > Gagan Deep
> > 2009/7/11 Ram <ramkuma...@gmail.com>
>
> >> Hi All,
>
> >> I am facing a problem with the custom Itemrenderer.
>
> >> The project involves a test section where the user takes the test.The
> >> next page contains the Correct answer for each question and the answer
> >> the User entered.
>
> >> All the wrong answers should be in 'red' and the right ones in black.
>
> >> The first time it all works fine,but when i take a different test,it
> >> all gets messed up.The colors for the right and wrong answers gets
> >> messed.I think this is an issue with the refresh problem with
> >> itemrenderer(I may be wrong).
>
> >> I have tried invalidatedisplaylist() and others but all in vain...
>
> >> Any help on going about doing this would be greatly appreciated.
>
> >> Regards
> >> Ram
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to flex_india@googlegroups.com
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to