i have a combobox with instance name fonts and this code on frame 1:
fontAr = new Array
fontAr = TextField.getFontList()
for (i=0;i<fontAr.length;i++) {
fonts.addItem(fontAr*)
trace(fontAr*)
}
it simply populates the combobox with all the fonts on your system…
but it is not very user friendly…
it would appear it orders them in order of date, which were last installed/made…
but if i am to actually USE this it would actually have some use if it were alphabetical…
so my question is this:
** how can i re-arrange an array in alphabetical order? **
nice, simple one-liner for u guys… but im afraid im not v good with arrays so ther may wel b a one line answer!!
please help pronto!
cheers,
Prophet.
PS im on FMX, NOT FMX 2004