I have a combox instance that is being populated with the data below. In the
oListener.change function, I am defining a variable that is getting a value
for the variable mItemLabel. I want that value to be available to the next
function, setShirtSize below and have tried a million different combinations
but keeping getting an undefined value. I know this is a scope issue and
there is probably a very easy answer but how do you move the local variable
up to make it available and then back down into another function? Thanks,


ccbProducts.dataProvider = [{label:"Small"}, {label:"Medium"}, {label:
"Large"}, {label: "X Large"}, {label: "XX Large"}];


var oListener:Object = new Object() ;
oListener.change = function (oEvent:Object) {
    mItem = ccbProducts.selectedItem;
    mItemLabel = mItem.label;
};

ccbProducts.addEventListener ("change", oListener);


function setShirtSize()  {
      BN.setItemName(mItemLabel +" "+" Blue Moneymaker Gaming T-Shirt");
}
-- 

Bo Parker, AIGA
RMC
215 S Jennings Avenue
Fort Worth, TX  76104
817.332.4700 p
817.332.4710 f

www.rmcfw.com

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to