Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Results of Input text box trace as HTML - please NOOOOOOOOO

Community Beginner ,
May 24, 2014 May 24, 2014

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

TOPICS
ActionScript
258
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 24, 2014 May 24, 2014

make sure kerning is not enabled, too.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 24, 2014 May 24, 2014

We've selected "use device fonts" and ensured "auto kerning" is un-ticked.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 24, 2014 May 24, 2014

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).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 24, 2014 May 24, 2014

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 25, 2014 May 25, 2014
LATEST

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.

    }

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines