[Laszlo-dev] support for emitting 'embed' compiler commands in as3
Henry Minsky
henry.minsky at gmail.com
Tue Dec 4 15:56:41 PST 2007
In the as3 compiler, assets are embedded into the binary at compile
time using this syntax:
[Embed(source="embeds/photo.jpg")]
private var Photo:Class;
[Embed(source="embeds/line.svg")]
private var SVGLine:Class;
[Embed(source="embeds/fp9app.swf")]
private var FP9App:Class;
[Embed(source="embeds/fp8app.swf", symbol="Ball")]
private var FP8Ball:Class;
[Embed(source="embeds/fp9app.swf", mimeType="application/octet-stream")]
private var FP9BinaryData:Class;
When we compile an app, we need to have a way to support adding these
to the as3 code which is emitted.
Maybe as a compiler #pragma in Laszlo script?
#pragma embedAsset(source="resources/foo.swf")
?
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
More information about the Laszlo-dev
mailing list