You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, December 11th 2008, 12:29pm

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

Thursday, December 11th 2008, 10:56pm

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:

Source code

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