Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
lukemack #1
dropdown and dynamic text field
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
lukemack Guest
-
load external text to dynamic text field in levels
Dear Sir I found the Tech Noe Index #16238 is useful in creating dynamically loaded text from external text file. However, the method mentioned... -
Adding text to dynamic text field
When loading text from an external text file into a dynamic text field using the following Action Script: Features_lv = new LoadVars();... -
How to center text in dynamic HTML text field ???
In Flash MX 2004 I suddenly find myself comletely helpless trying to align all text to the center in my dynamic text field. I dont recall running... -
Dropdown question (populating a text field)
Hello everybody, I have a problem and would appreciate any help on offer. I have a table with two fields in it. On my form there are the... -
Dynamic text in smooth scrolling text field - help
here's links to the files. http://www.anicespot.com/test/ http://www.anicespot.com/test/easing_textScroller-01.html...



Reply With Quote

