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

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8" ?>
<application xmlns="http://ns.adobe.com/air/application/51.0">
<id>floatair.harman</id>
<versionNumber>1.0</versionNumber>
<filename>float.air_harman</filename>
<name>float.air_harman</name>
<description></description>
<copyright></copyright>
<initialWindow>
<title>float.air_harman</title>
<content>bin/float.air_harman.swf</content>
<systemChrome>standard</systemChrome>
<transparent>false</transparent>
<visible>true</visible>
<minimizable>true</minimizable>
<maximizable>true</maximizable>
<resizable>true</resizable>
</initialWindow>
<!--
More options:
http://livedocs.adobe.com/flex/3/html/File_formats_1.html#1043413
-->
</application>

View File

@@ -1,10 +1,5 @@
@echo off
set COMPILERKIND=air_harman
set SWFNAME=float
rem call c:\air_harman\bin\mxmlc.bat -debug=true -output bin/%SWFNAME%.%COMPILERKIND%.swf src/Main.as 1> buildlog.%COMPILERKIND%.txt 2>&1
set batdir=%~dp0
echo %batdir%bin\%SWFNAME%.%COMPILERKIND%.xml
cd c:\air_harman\bin
adl.exe -nodebug %batdir%bin\%SWFNAME%.%COMPILERKIND%.xml
rem -cmd
pause
call c:\air_harman\bin\mxmlc.bat -debug=true -output bin/%SWFNAME%.%COMPILERKIND%.swf src/Main.as 1> buildlog.%COMPILERKIND%.txt 2>&1
c:\air_harman\bin\adl.exe -nodebug application.xml

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;
}
}