I have a combobox on stage at the root level named ccbProducts with values
of Small, Medium, Large, X Large and XX Large as labels with no
corresponding data. In frame one, I have assigned the following actions:



ccbProducts.dataProvider = ["Small", "Medium", "Large", "X Large", "XX
Large"];

var oListener:Object = new Object() ;
oListener.change = function (oEvent:Object):Void {
    trace (ccbProducts.selectedItem);
    trace (mItem);
            
};
ccbProducts.addEventListener ("change", oListener);

mItem = ccbProducts.selectedItem;

function setShirtSize()  {
    mItem = ccbProducts.selectedItem;
      BN.setItemName(mItem +" "+" Blue Moneymaker Gaming T-Shirt");
}

setShirtSize;


The setShirtSize function is to pass a variable to a paypal component that
supplies the shirt size. When I trace ccbProducts.selectedItem, I see that
the shirt size changes. However, when I trace mItem, the value is stuck on
small. What am I doing wrong and why is mItem not updating? Thanks,
Bo

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to