質問

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