Question

I'm sure it's a simple fix, but when I put input number prefixes as values into a combo box in Flash CC, it knocks off the first zero for some reason.

For example, one of the values in the combo box should be 0800, but is outputting as 800 instead

I'm guessing it's something to do with the way it renders numbers... Any way to fix this at all?

P.S: I'm using the standard ComboBox in Flash, no ActionScript attached to it yet.

Was it helpful?

Solution

If you wrap the value and/or label in "quotation marks", it'll treat it as a String rather than a Number type, and thankfully it leaves the quotes off of the label at runtime.

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top