You may try and do a theMsgList.reverse(); to reverse the list something 
like below.

        var theMsgList: Array;         // your array variable

        function serviceResult() {
            theMsgList=new Array();
            for (var i in results[0]) {
                    theMsgList.addItem(i);
           }
            theMsgList.reverse();
        }

Call serviceResult on result of the service that you are invoking.

Hope this helps.

Regards
Sree

Alberto Albericio Salvador wrote:

> Hi all,
>
> Im using a List component to display the messages incoming from a "msg
> push server". The dataProvider of the List is bound to "some array
> variable". If I use the method *addItem* to inject data into the array;
> as a result of this action, the List grows downwards, leaving the first
> element always visible and loosing the last added msgs lost (gotta use
> the scrollbar to find them at the end). Well, I want the List to grow
> upwards so that the last incoming msg gets displayed the first. I use
> the *unshift* method but the array does not get modified. So, what is
> happening here?
>
> I know this is not a natural Flex question but I cant find why it is not
> working the way I want.
>
> Nuke this post if you feel this is not the right place for it and sorry.
>
> -- 
> Alberto Albericio Salvador
> Aura S.A. Seguros
> Departamento Informática
>
>
>
> --
> 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
>
>     *  Visit your group "flexcoders
>       <http://groups.yahoo.com/group/flexcoders>" on the web.
>        
>     *  To unsubscribe from this group, send an email to:
>        [EMAIL PROTECTED]
>       <mailto:[EMAIL PROTECTED]>
>        
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
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/

<*> 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/
 


Reply via email to