Sie sind nicht angemeldet.

1

Donnerstag, 11. Dezember 2008, 12:29

special characters in combox

I can't figure out how to display & character in the combobox list?

I've tried with &%38; & and plain & - with no luck.

Do I need to use a special escape-character - or is it just not possible?

2

Donnerstag, 11. Dezember 2008, 22:56

Hi, an interesting question
I think this is currently not possible,

do you have Flash CS3?
then you can open the combobox.fla and add one line to "interface_additem" function:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
function interface_additem(...rest):void
{
  if (rest.length == 2)
  {
    var itemlabel  : String = String( rest[0] );
    itemlabel = unescape( itemlabel );    	// <--- ADD THIS LINE
    var actioncall : * = rest[1];
    combobox.dataProvider.addItem( { label:itemlabel, action:actioncall } );
  }
  else
  {
    krpano.trace(krpano_as3_interface.ERROR, "combobox additem() syntax error");
  }
}


then it's possible to use %HH to encode special characeters, where HH is the hexcode of a character.

best regards,
Klaus

Ähnliche Themen