![]() |
![]() |
||||||
|
|||||||
| Tags: alphabetically, array, ordering |
![]() |
|
|||
|
here is my sample code
<HTTPService id="srv" url="myxmlsource.php" method="POST" useProxy="false" resultFormat="e4x"/> <XMLListCollection id="xc" source="{srv.lastResult.image.url}"/> <local isplayShelf id="shelf" horizontalCenter="0" verticalCenter="0"borderThickness="5" borderColor="#FFFFFF" dataProvider="{xc}" enableHistory="false" width="100%"/> now my array is in xc (this application is part of a image viewer but I need the images in order) how can I accomplish this please be very specific as I can't claim to be very good with flex |
| Sponsored Links |
|
|||
|
Hi,
Please check out the sort function provided by Array. Please find more details at the URL below. http://livedocs.adobe.com/flex/3/lan...ray.html#sort() Hope this helps. |
|
|||
|
Sorry I still don't understand I've tried adding the function .sort();
everywhere I think its defined but I'm having _no_ luck http://demo.quietlyscheming.com/disp...oad/index.html there's a link to the original source code I've only modified it to read from a php generated xml file unfortunately I really don't know my way in flex need someone to shine a light on this for me Thanks for your time |
|
|||
|
you need to assign result from your http service ot arrayCollection and sort
that collection, to see info about sorting arrayCollections please visit following link : http://blog.flexexamples.com/2007/08...-using-the-sor tfield-and-sort-classes/ or simply this : http://www.google.com/search?hl=en&q...=Google+Search and thats it. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise