문제

Hi I'm using action scrit 3 and I need to visualize on the movie that I'm making one data stored on an integer variable. What I want to do is something similar to "trace" in flash but in the movie that I'm making. The definition for the variable is:

var num_preguntas:Number;

How can I print this number in a photogram?

도움이 되었습니까?

해결책

You could put a dynamic textfield on the stage (or reference one already there) and then write the number to that textfield. So something like:

var tf:TextField = new TextField();
tf.type = TextFieldType.DYNAMIC;
tf.text = num_preguntas.toString();
addChild(tf);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top