Hi guys,
I am trying to get compressed ATF textures to work with my game project but I always seem to get Error #3677 no matter what I try to do. I have tried searching the topics of people who have had a similar problem but so far couldn't find any solution that worked for me.
This is my test code which always produces the error (specifically the Texture.fromAtfData function call):
[Embed(source = "../../../bin/assets/textures/interface/buttonOverCorner.atf", mimeType = "application/octet-stream")]
public static const CompressedData:Class;
public var data:ByteArray = new CompressedData();
public var texture:Texture = Texture.fromAtfData(data);
I produced the texture file using:
png2atf -c -r -i buttonOverCorner.png -o buttonOverCorner.atf
I use the AIR SDK, Starling framework, and ATF tools provided in the Adobe Gaming SDK 1.3.357. I use FlashDevelop 4.5.2.5 and I have set the "-swf-version=17" compiler option in Project > Properties... > Compiler Options > Additional Compiler Options.
Edit: I forgot to mention: buttonOverCorner.png is a 8×8 pixel image with an alpha channel. Perhaps that information is relevant to my issue in some way.
I'm fairly new at this and I'm certain that I've missed something simple along the way, so I'd be grateful for any help.
Thanks!