mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-03 18:44:46 +00:00
Updated embed test data - embed movie symbol
This commit is contained in:
@@ -17,6 +17,7 @@ package
|
||||
//TestImageSvg;
|
||||
TestSameImage;
|
||||
TestSound;
|
||||
TestSwfSymbol;
|
||||
|
||||
public function MainClassesAir()
|
||||
{
|
||||
|
||||
@@ -17,6 +17,7 @@ package
|
||||
TestImageSvg;
|
||||
TestSameImage;
|
||||
TestSound;
|
||||
TestSwfSymbol;
|
||||
|
||||
public function MainClassesFlex()
|
||||
{
|
||||
|
||||
@@ -34,10 +34,13 @@ package embed_attributes
|
||||
|
||||
//not supported in Flex, AIR only
|
||||
[Embed(source="../../assets/font.ttf", fontFamily="Great Vibes", fontWeight= "normal", fontStyle = "normal", mimeType="application/x-font-truetype")]
|
||||
private var fontClass:Class;
|
||||
public var fontClass:Class;
|
||||
|
||||
[Embed(source="../../assets/data.bin", mimeType="application/octet-stream")]
|
||||
public var binaryDataClass:Class;
|
||||
public var binaryDataClass:Class;
|
||||
|
||||
[Embed(source="../../assets/movie_symbol.swf", symbol="symbols.MySymbol")]
|
||||
public var swfSymbolClass:Class;
|
||||
|
||||
|
||||
|
||||
@@ -61,6 +64,8 @@ package embed_attributes
|
||||
var someData:ByteArray = new binaryDataClass() as ByteArray;
|
||||
trace("Length: " + someData.length);
|
||||
|
||||
var symbol:Sprite = new swfSymbolClass() as Sprite;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,11 +34,13 @@ package embed_attributes
|
||||
|
||||
//not supported in Flex, AIR only
|
||||
//[Embed(source="../../assets/font.ttf", fontFamily="Great Vibes", fontWeight= "normal", fontStyle = "normal", mimeType="application/x-font-truetype")]
|
||||
//private var fontClass:Class;
|
||||
//public var fontClass:Class;
|
||||
|
||||
[Embed(source="../../assets/data.bin", mimeType="application/octet-stream")]
|
||||
public var binaryDataClass:Class;
|
||||
|
||||
[Embed(source="../../assets/movie_symbol.swf", symbol="symbols.MySymbol")]
|
||||
public var swfSymbolClass:Class;
|
||||
|
||||
|
||||
|
||||
@@ -61,6 +63,7 @@ package embed_attributes
|
||||
var someData:ByteArray = new binaryDataClass() as ByteArray;
|
||||
trace("Length: " + someData.length);
|
||||
|
||||
var symbol:Sprite = new swfSymbolClass() as Sprite;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
9
libsrc/ffdec_lib/testdata/as3_embed/src/embed_classes/TestSwfSymbol.as
vendored
Normal file
9
libsrc/ffdec_lib/testdata/as3_embed/src/embed_classes/TestSwfSymbol.as
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
package embed_classes
|
||||
{
|
||||
import flash.display.Sprite;
|
||||
|
||||
[Embed(source="../../assets/movie_symbol.swf", symbol="symbols.MySymbol")]
|
||||
public class TestSwfSymbol extends Sprite
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user