hi

i am using the following code to try and get a dropdown (sizeList) to fill a
dynamic text field with differing values. sizeList has setPrice as the change
handler and contains values for t-shirt sizes and monetary values for those
sizes. i have an example from webassist.com which works but when i add the
functionality to my site, the values do not change dynamically when the movie
is loaded. webassist support could not fix it but suggested the problem might
be related to variable scope

i have quite a few layers on the timeline. the code is in the layer with the
dropdown and the text field. is there something i'm missing? the text field has
the variable - theprice. any ideas

// Set the initial color and price for when the movie load
setPrice()

function setPrice()
// Get the price (based on size list
var newPrice = sizeList.getValue()
//Declare color object for manipulating colors in the shirtBG Symbo
myColor = new Color(shirtBG)
// Set the background color of the color object to the value from the color
lis
myColor.setRGB("0x" + colorList.getValue())

BN.setAmount(newPrice)
BN.setItemName(sizeList.getSelectedItem().label+"l ukem t-shirt")
BN.setItemNumber(String(sizeList.getSelectedIndex( )))

// Set visible price on pag
thePrice = sizeList.getValue()


thanks

luke