Adobe Dreamweaver Forums



Last 10 THreads :         How to find number of occurance of each number in biglist of numbers? (Last Post : Dan Bracuk - Replies : 3 - Views : 6 )           »          Suddenly can't see files on remote server (Last Post : Alan - Replies : 1 - Views : 2 )           »          files are one level too deep (Last Post : Alan - Replies : 6 - Views : 7 )           »          Moving custom tag registration between servers. (Last Post : nosredna - Replies : 0 - Views : 1 )           »          How to do this?. (Last Post : Dan Bracuk - Replies : 1 - Views : 2 )           »          Spry Menu Background (Last Post : ich_kann_schnell_laufen - Replies : 0 - Views : 1 )           »          Dreamweaver CS4 makes my fonts go mental? (Last Post : theRizzer - Replies : 3 - Views : 9 )           »          mpg video will play in FF but not in IE (Last Post : Old Shoe - Replies : 0 - Views : 1 )           »          Create A Rotator Banner in DW? (Last Post : BigScaryRobot - Replies : 2 - Views : 3 )           »          Narrowed down Flex Builder 3 question (Last Post : peteandrus - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags: , ,



Reply
  #1 (permalink)  
Old 07-21-2008, 12:37 AM
dragonair1
 
Posts: n/a
Diggs:
Default ordering an array alphabetically

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


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



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-21-2008, 08:33 AM
SujitG
 
Posts: n/a
Diggs:
Default Re: ordering an array alphabetically

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.
Reply With Quote
  #3 (permalink)  
Old 07-22-2008, 04:46 PM
dragonair1
 
Posts: n/a
Diggs:
Default Re: ordering an array alphabetically

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

Reply With Quote


  #4 (permalink)  
Old 07-22-2008, 10:26 PM
dragonair1
 
Posts: n/a
Diggs:
Default Re: ordering an array alphabetically

bump : ( this must be a simple fix for someone who understands flex
Reply With Quote
  #5 (permalink)  
Old 07-24-2008, 04:08 PM
dragonair1
 
Posts: n/a
Diggs:
Default Re: ordering an array alphabetically

bump
Reply With Quote
  #6 (permalink)  
Old 07-24-2008, 06:10 PM
levancho
 
Posts: n/a
Diggs:
Default Re: ordering an array alphabetically

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.


Reply With Quote


Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 08:03 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk