Just some info for people studying CE0836a, Scripting Interactive - TopicsExpress



          

Just some info for people studying CE0836a, Scripting Interactive Media: You may come across a problem where the contents of input text fields arent recognised as expected in your code, e.g when comparing a specific string or number to user input you know for sure should match. This came up at least a couple of times today. It seems to happen when the input field has auto kern enabled AND its behaviour property (under Paragraph) set to multiline - a break gets appended to the users input, so 5 becomes something like 5\n, causing the comparison to fail. There are probably a few ways to avoid the issue, but the simplest fix seems to be to either untick auto kern or to select single line instead (assuming you do only want an unbroken line of text), at which point you should find the comparison will work.
Posted on: Tue, 28 Jan 2014 18:05:58 +0000

Trending Topics



Recently Viewed Topics




© 2015