Float testdata updated

This commit is contained in:
Jindra Petřík
2024-08-18 20:52:31 +02:00
parent d6ff5cdc4f
commit b096f62b67
4 changed files with 50 additions and 8 deletions

View File

@@ -2,6 +2,8 @@ package
{
import flash.display.Sprite;
import flash.events.Event;
import flash.text.TextField;
import flash.text.TextFormat;
public class Main extends Sprite
{
@@ -15,8 +17,26 @@ package
private function init(e:Event = null):void
{
removeEventListener(Event.ADDED_TO_STAGE, init);
var textFormat:TextFormat = new TextFormat();
textFormat.size = 24;
textFormat.color = 0xFF0000;
textFormat.font = "Arial";
textFormat.bold = true;
var textField:TextField = new TextField();
textField.defaultTextFormat = textFormat;
textField.x = 100;
textField.y = 100;
textField.width = 500;
var a:float = 10.5f;
textField.text = "Value: " + a;
addChild(textField);
var a:float = 10f;
}
}