Helpful Information
 
 
Category: Flash & ActionScript
Flash ActionScript Help

Working with subscript and superscript in an input text box. Have found a way to attach script to a button movieclip (for example: button for subscript 1)
on (press) {
workarea = workarea+subscript1;
}

and on frame one:

_global.subscript1 = "\u2081";
var workarea;

This works in that users can type in the input text box and press the button for subscript 1, however, the button does not put the subscript after the text--rather it drops to the next line.

Any ideas?

In the textbox properties, I think you can choose no wrap and then it will not wrap it. To me that is what it seems like it is doing. So I would try to make the text box bigger or put in nowrap. Just an idea anyway.

Michael

I got my Subscript and Superscript fonts from:
http://www.subscriptfont.com










privacy (GDPR)