문제

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top