Question on the assets

2 views
Skip to first unread message

marstonstudio

unread,
Jul 18, 2008, 4:18:39 PM7/18/08
to airake
Hello,

Thankyou for starting this project, as the lone Air developer on a
team filled with Ruby people, I'm excited to start using rake to
compile my air code.

I've run into a problem though, I seem to be unable to have any
embedded assets included. I have set the assets parameter in the
airake.yml file, but that doesn't appear to be picked up.

Using the default project generated by airake, I would expect the
mxmlc command line to include some reference to the files in src/
assets, but I don't see anything there. My generated project is called
AirTest:

rake compile (in /Users/jon/Workspace/AirTest)
rm /Users/jon/Workspace/AirTest/bin/AirTest.swf
>> Opened connection to fcshd on 127.0.0.1:20569
[FCSHD] /Users/jon/Workspace/AirTest
[FCSHD] mxmlc +configname=air -source-path /Users/jon/Workspace/
AirTest/src -library-path+=/Users/jon/Workspace/AirTest/lib -output /
Users/jon/Workspace/AirTest/bin/AirTest.swf -debug=true -- /Users/jon/
Workspace/AirTest/src/AirTest.mxml
[FCSH] Loading configuration file /Applications/Adobe Flex Builder 3/
sdks/3.0.0/frameworks/air-config.xml
[FCSH] Nothing has changed since the last compile. Skip...
[FCSH] /Users/jon/Workspace/AirTest/bin/AirTest.swf (399585 bytes)
[FCSH] Compilation complete in: 0.571708 seconds

In my actual project I'm running into compilation errors because
embedded assets aren't getting found.

Any ideas?

gabe

unread,
Jul 19, 2008, 9:13:52 AM7/19/08
to airake
Assets don't get "included" during swf build or adl... but during
packaging, (rake package) for example:

adt -package -keystore foo.pfx -storetype pkcs12 bin/Foo.air src/Foo-
app.xml bin/Foo.swf src/assets 2>&1

where in the airake.yml, assets: src/assets

If you are using Embeds... I think they have to be relative to a
source directory, for me:

[Embed(source="/assets/images/famfamfam/folder.png")];
protected var directoryIcon:Class;

Maybe try experimenting with the paths?
Reply all
Reply to author
Forward
0 new messages