mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-16 14:02:18 +00:00
Float testdata updated
This commit is contained in:
27
libsrc/ffdec_lib/testdata/float/application.xml
vendored
Normal file
27
libsrc/ffdec_lib/testdata/float/application.xml
vendored
Normal 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>
|
||||
Binary file not shown.
@@ -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
|
||||
|
||||
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