mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-01 07:04:55 +00:00
Float testdata updated
This commit is contained in:
22
libsrc/ffdec_lib/testdata/float/src/Main.as
vendored
22
libsrc/ffdec_lib/testdata/float/src/Main.as
vendored
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user