here are the steps:

i) create a class that extends UI component
ii) override createChildren method and in that method write all  ur logic of
layout i.e. create for loop to layout sprites as containers by decrementing
there x values there by loop running in reverse order.
iii) populate those sprites with what ever data u want to add them to

hope this answers ur question.


On Wed, Sep 30, 2009 at 2:37 PM, prem <[email protected]> wrote:

>
>
>
> Guys,
> Yesterday I faced an interview question. How to create a custom
> component which behaves like an HBox but the children needs to be
> layed out in reverse order, i.e. From right to left and not from left
> to right. I answered, we need to override updateDisplayList to move
> the children, but the interviewer says its not the right answer
>
> Can anyone let me know how to do that?
>
> Thanks in advance
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to