[FMX] adding an item to at listbox using .additem

I am working on a “cross select” with two list boxes. each list box will be populated from a db (using flash remoting) then the user will be able to move one or all the items from one box to the other.

I am trying to get the move one item from one side to the other first but it doesn’t seem to be working the way I anticipated. when i move the item from one side to the other, it will only add the static content from the label (the hypen in this case) on the other side and not the dynamic data. Since it is adding the hypen I don’t understand while it isn’t adding the rest of the label.

here is the code I have.

#include “NetServices.as”
#include “DataGlue.as”

if (inited == undefined){
inited = true;
var gwURL = “http://localhost:8500/flashservices/gateway”;
NetServices.setDefaultgatewayURL(gwURL);
gw = NetServices.createGatewayConnection();

btn_shiftRightOne.setClickHandler(“shiftRightOne”);
btn_shiftRightAll.setClickHandler(“shiftRightAll”);
btn_shiftLeftOne.setClickHandler(“shiftLeftOne”);
btn_shiftLeftAll.setClickHandler(“shiftLeftAll”);

listService = gw.getService(“testsite.combobox”,this);
listService.getAssignedFunctions();
listService.getFunctions();
}
//populate lb with info from the db
function getFunctions_Result(result){
DataGlue.bindFormatStrings(lb_Functions,result,"#Category# - #functionname#","#functionname#");
}
//populate lb with info from the db
function getAssignedFunctions_Result(result){
DataGlue.bindFormatStrings(lb_assignedFunctions,result,"#Category# - #functionname#","#functionname#");
}
//move selected item to the right
function shiftRightOne(){
lb_assignedFunctions.addItem(lb_Functions.getSelectedItem().label,lb_Functions.getSelectedItem().data);
lb_Functions.removeItemAt(lb_Functions.getSelectedIndex());

}

pdlnhrd