mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-13 04:28:09 +00:00
More embed metadata samples
This commit is contained in:
Binary file not shown.
Binary file not shown.
BIN
libsrc/ffdec_lib/testdata/as3_embed/bin/as3_embed_attrib.air.swf
vendored
Normal file
BIN
libsrc/ffdec_lib/testdata/as3_embed/bin/as3_embed_attrib.air.swf
vendored
Normal file
Binary file not shown.
BIN
libsrc/ffdec_lib/testdata/as3_embed/bin/as3_embed_attrib.flex.swf
vendored
Normal file
BIN
libsrc/ffdec_lib/testdata/as3_embed/bin/as3_embed_attrib.flex.swf
vendored
Normal file
Binary file not shown.
BIN
libsrc/ffdec_lib/testdata/as3_embed/bin/as3_embed_classes.air.swf
vendored
Normal file
BIN
libsrc/ffdec_lib/testdata/as3_embed/bin/as3_embed_classes.air.swf
vendored
Normal file
Binary file not shown.
BIN
libsrc/ffdec_lib/testdata/as3_embed/bin/as3_embed_classes.flex.swf
vendored
Normal file
BIN
libsrc/ffdec_lib/testdata/as3_embed/bin/as3_embed_classes.flex.swf
vendored
Normal file
Binary file not shown.
@@ -1,5 +1,6 @@
|
||||
@echo off
|
||||
set COMPILERKIND=air
|
||||
set SWFNAME=as3_embed
|
||||
call c:\air\bin\mxmlc.bat -debug=true -output bin/%SWFNAME%.%COMPILERKIND%.swf src/MainAir.as 1> buildlog.%COMPILERKIND%.txt 2>&1
|
||||
rem -warnings=false
|
||||
call c:\air\bin\mxmlc.bat -debug=true -output bin/as3_embed_attrib.%COMPILERKIND%.swf src/MainAttributesAir.as 1> buildlog.attrib.%COMPILERKIND%.txt 2>&1
|
||||
call c:\air\bin\mxmlc.bat -debug=true -output bin/as3_embed_classes.%COMPILERKIND%.swf src/MainClassesAir.as 1> buildlog.classes.%COMPILERKIND%.txt 2>&1
|
||||
|
||||
rem -warnings=false
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
@echo off
|
||||
set COMPILERKIND=flex
|
||||
set SWFNAME=as3_embed
|
||||
c:\flex\bin\mxmlc.exe -debug=true -output bin/%SWFNAME%.%COMPILERKIND%.swf src/MainFlex.as 1> buildlog.%COMPILERKIND%.txt 2>&1
|
||||
rem -warnings=false
|
||||
c:\flex\bin\mxmlc.exe -debug=true -output bin/as3_embed_attrib.%COMPILERKIND%.swf src/MainAttributesFlex.as 1> buildlog.attrib.%COMPILERKIND%.txt 2>&1
|
||||
c:\flex\bin\mxmlc.exe -debug=true -output bin/as3_embed_classes.%COMPILERKIND%.swf src/MainClassesFlex.as 1> buildlog.classes.%COMPILERKIND%.txt 2>&1
|
||||
|
||||
rem -warnings=false
|
||||
|
||||
@@ -2,18 +2,18 @@ package
|
||||
{
|
||||
import flash.display.Sprite;
|
||||
import flash.events.Event;
|
||||
import tests_classes.TestEmbedAir;
|
||||
import embed_attributes.TestEmbedAir;
|
||||
|
||||
/**
|
||||
* ...
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class MainAir extends Sprite
|
||||
public class MainAttributesAir extends Sprite
|
||||
{
|
||||
|
||||
TestEmbedAir;
|
||||
|
||||
public function MainAir()
|
||||
public function MainAttributesAir()
|
||||
{
|
||||
if (stage) init();
|
||||
else addEventListener(Event.ADDED_TO_STAGE, init);
|
||||
@@ -27,4 +27,4 @@ package
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -2,18 +2,18 @@ package
|
||||
{
|
||||
import flash.display.Sprite;
|
||||
import flash.events.Event;
|
||||
import tests_classes.TestEmbedFlex;
|
||||
import embed_attributes.TestEmbedFlex;
|
||||
|
||||
/**
|
||||
* ...
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class MainFlex extends Sprite
|
||||
public class MainAttributesFlex extends Sprite
|
||||
{
|
||||
|
||||
TestEmbedFlex;
|
||||
|
||||
public function MainFlex()
|
||||
public function MainAttributesFlex()
|
||||
{
|
||||
if (stage) init();
|
||||
else addEventListener(Event.ADDED_TO_STAGE, init);
|
||||
@@ -27,4 +27,4 @@ package
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
35
libsrc/ffdec_lib/testdata/as3_embed/src/MainClassesAir.as
vendored
Normal file
35
libsrc/ffdec_lib/testdata/as3_embed/src/MainClassesAir.as
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
package
|
||||
{
|
||||
import flash.display.Sprite;
|
||||
import flash.events.Event;
|
||||
import embed_classes.*;
|
||||
|
||||
/**
|
||||
* ...
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class MainClassesAir extends Sprite
|
||||
{
|
||||
TestBinaryData;
|
||||
TestFont;
|
||||
TestImage;
|
||||
TestImageGrid;
|
||||
//TestImageSvg;
|
||||
TestSameImage;
|
||||
TestSound;
|
||||
|
||||
public function MainClassesAir()
|
||||
{
|
||||
if (stage) init();
|
||||
else addEventListener(Event.ADDED_TO_STAGE, init);
|
||||
}
|
||||
|
||||
private function init(e:Event = null):void
|
||||
{
|
||||
removeEventListener(Event.ADDED_TO_STAGE, init);
|
||||
// entry point
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
35
libsrc/ffdec_lib/testdata/as3_embed/src/MainClassesFlex.as
vendored
Normal file
35
libsrc/ffdec_lib/testdata/as3_embed/src/MainClassesFlex.as
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
package
|
||||
{
|
||||
import flash.display.Sprite;
|
||||
import flash.events.Event;
|
||||
import embed_classes.*;
|
||||
|
||||
/**
|
||||
* ...
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class MainClassesFlex extends Sprite
|
||||
{
|
||||
TestBinaryData;
|
||||
//TestFont;
|
||||
TestImage;
|
||||
TestImageGrid;
|
||||
TestImageSvg;
|
||||
TestSameImage;
|
||||
TestSound;
|
||||
|
||||
public function MainClassesFlex()
|
||||
{
|
||||
if (stage) init();
|
||||
else addEventListener(Event.ADDED_TO_STAGE, init);
|
||||
}
|
||||
|
||||
private function init(e:Event = null):void
|
||||
{
|
||||
removeEventListener(Event.ADDED_TO_STAGE, init);
|
||||
// entry point
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package tests_classes
|
||||
package embed_attributes
|
||||
{
|
||||
import flash.display.Sprite;
|
||||
import flash.media.Sound;
|
||||
@@ -1,4 +1,4 @@
|
||||
package tests_classes
|
||||
package embed_attributes
|
||||
{
|
||||
import flash.display.Sprite;
|
||||
import flash.media.Sound;
|
||||
10
libsrc/ffdec_lib/testdata/as3_embed/src/embed_classes/TestBinaryData.as
vendored
Normal file
10
libsrc/ffdec_lib/testdata/as3_embed/src/embed_classes/TestBinaryData.as
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
package embed_classes
|
||||
{
|
||||
import flash.utils.ByteArray;
|
||||
|
||||
|
||||
[Embed(source="../../assets/data.bin", mimeType="application/octet-stream")]
|
||||
public class TestBinaryData extends ByteArray
|
||||
{
|
||||
}
|
||||
}
|
||||
10
libsrc/ffdec_lib/testdata/as3_embed/src/embed_classes/TestFont.as
vendored
Normal file
10
libsrc/ffdec_lib/testdata/as3_embed/src/embed_classes/TestFont.as
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
package embed_classes
|
||||
{
|
||||
import flash.text.Font;
|
||||
|
||||
//not supported in Flex, AIR only
|
||||
[Embed(source="../../assets/font.ttf", fontFamily="Great Vibes", fontWeight= "normal", fontStyle = "normal", mimeType="application/x-font-truetype")]
|
||||
public class TestFont extends Font
|
||||
{
|
||||
}
|
||||
}
|
||||
10
libsrc/ffdec_lib/testdata/as3_embed/src/embed_classes/TestImage.as
vendored
Normal file
10
libsrc/ffdec_lib/testdata/as3_embed/src/embed_classes/TestImage.as
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
package embed_classes
|
||||
{
|
||||
import flash.display.Bitmap;
|
||||
|
||||
|
||||
[Embed(source="../../assets/image.png")]
|
||||
public class TestImage extends Bitmap
|
||||
{
|
||||
}
|
||||
}
|
||||
11
libsrc/ffdec_lib/testdata/as3_embed/src/embed_classes/TestImageGrid.as
vendored
Normal file
11
libsrc/ffdec_lib/testdata/as3_embed/src/embed_classes/TestImageGrid.as
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
package embed_classes
|
||||
{
|
||||
import flash.display.Sprite;
|
||||
|
||||
|
||||
[Embed(source="../../assets/image_grid.png", scaleGridTop="10", scaleGridBottom="40",
|
||||
scaleGridLeft="10", scaleGridRight="70")]
|
||||
public class TestImageGrid extends Sprite
|
||||
{
|
||||
}
|
||||
}
|
||||
10
libsrc/ffdec_lib/testdata/as3_embed/src/embed_classes/TestImageSvg.as
vendored
Normal file
10
libsrc/ffdec_lib/testdata/as3_embed/src/embed_classes/TestImageSvg.as
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
package embed_classes
|
||||
{
|
||||
import flash.display.Sprite;
|
||||
|
||||
//deprecated in Flex, not supported in AIR
|
||||
[Embed(source="../../assets/image.svg")]
|
||||
public class TestImageSvg extends Sprite
|
||||
{
|
||||
}
|
||||
}
|
||||
10
libsrc/ffdec_lib/testdata/as3_embed/src/embed_classes/TestSameImage.as
vendored
Normal file
10
libsrc/ffdec_lib/testdata/as3_embed/src/embed_classes/TestSameImage.as
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
package embed_classes
|
||||
{
|
||||
import flash.display.Bitmap;
|
||||
|
||||
|
||||
[Embed(source="../../assets/image.png")]
|
||||
public class TestSameImage extends Bitmap
|
||||
{
|
||||
}
|
||||
}
|
||||
9
libsrc/ffdec_lib/testdata/as3_embed/src/embed_classes/TestSound.as
vendored
Normal file
9
libsrc/ffdec_lib/testdata/as3_embed/src/embed_classes/TestSound.as
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
package embed_classes
|
||||
{
|
||||
import flash.media.Sound;
|
||||
|
||||
[Embed(source="../../assets/sound.mp3")]
|
||||
public class TestSound extends Sound
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user