Copy link to clipboard
Copied
AT school we're using Flash CS5 to do some basic ActionScript 2.
Some students are finding when they insert an Input text box, that the results of that input box trace as "rendered HTML". Pretty annoying when you're expecting a string or integer.
We've checked that the button to choose "render text as HTML" is not checked.
Is there a fix - we're now in Assignment mode, and I need to find a work-a-round for them. It doesn't have on every work station.
Paul
Copy link to clipboard
Copied
make sure kerning is not enabled, too.
Copy link to clipboard
Copied
We've selected "use device fonts" and ensured "auto kerning" is un-ticked.
Copy link to clipboard
Copied
i know of no way they could be seeing a html trace unless they're using trace(your_tf.htmlText) instead of trace(your_tf.text).
Copy link to clipboard
Copied
I've uploaded the file to my dropbox - Dropbox - Flash - hopefully permissions are correct.
On Scene 1, when one enters their name, it should be captures as a variable - myName = Paul.
Hopefully the problem will replicate for you.
Copy link to clipboard
Copied
never use the variable associated with a textfield: assign the textfield an instance name and use its text property to retrieve user input.
you also probably do not want to use a multiline textfield for user name and you should be using a _sans, _serif or _typewriter font family, not calibri if you want predictable fonts to be used. or you should embed calibri and select another anti-alias method.
also, you should not be using scenes for navigation and you should not be using the goto functions: use frame labels and the goto methods.
instead of:
btn_scene2.onRelease = function() {
if(player == undefined){
error_text1 = "You haven't told me your name yet!";
}
else{
gotoAndPlay ("Scene 2", 1);
}
}
use
btn_scene2.onRelease = function() {
if(player == undefined){
error_text1 = "You haven't told me your name yet!";
}
else{
_root.gotoAndPlay ("Scene2_Frame1"); //<-and create that label.
}
}
Find more inspiration, events, and resources on the new Adobe Community
Explore Now