MoritzStefaner / Elastic-Lists

Elastic Lists are a fluid, rich interface for facet browsing. Apache licensed, AS3 project for use in Flash CS4 or Flex.
http://moritz.stefaner.eu/projects/elastic-lists/
Apache License 2.0
108 stars 25 forks source link

Compiling and running Elastic-Lists #11

Open hjohanns opened 11 years ago

hjohanns commented 11 years ago

Hello Moritz, I feel stupid, because I'm trying to compile and run the demos, but I must have some stupid problem because nothing loads (grey background and 100% cpu of flash player). I am working on Linux with Flex sdk 4.6.0 build 23201, all command line. I downloaded all the prereq, everything builds, and it even worked once, but continuing my search I must have broken something, and cannot get it to work again. When loading in the debug flash plugin, I get 3 errors: VerifyError: Error #1014: Class mx.core::FontAsset could not be found. ReferenceError: Error #1065: Variable Component_Ronda is not defined. ReferenceError: Error #1065: Variable NobelApp is not defined.

If you have a tutorial on how to troubleshoot ActionScript projects, it would be welcome. Happy New Year, and thanks for that great software! Hubert

MoritzStefaner commented 11 years ago

I googled the error, and this one looks like it is worth a shot: http://code.google.com/p/minimalcomps/issues/detail?id=56

Did this fix it?

hjohanns commented 11 years ago

Thanks a lot for answering. It did not seem to fix it. I tried with two settings: Compilation track: ~/Prog/Adobe/bin/compc -source-path ./src -source-path ./Reqs/minimalcomps/src -library-path+=./Reqs/Flare/build/flare.swc -library-path+=./Reqs/ThunderBoltAS3_Gumbo_v2.3.swc -library-path+=./Reqs/bulk_loader.swc -library-path+=./Reqs/ModestMapsSWC.swc -library-path+=./Reqs/greensock-as3/greensock.swc -external-library-path+=~/Prog/Adobe/frameworks/libs/framework.swc -output ElasticList.swc -include-classes eu.stefaner.elasticlists.App Loading configuration file ~/Prog/Adobe/frameworks/flex-config.xml ~/Prog/Ellist/ElasticList.swc (476160 bytes) ~/Prog/Adobe/bin/mxmlc -compiler.source-path=./src ./src/NobelApp.as -library-path+=../../ElasticList.swc -library-path+=~/Prog/Adobe/frameworks/libs/framework.swc -output bin/NobelApp.swf -static-link-runtime-shared-libraries Loading configuration file ~/Prog/Adobe/frameworks/flex-config.xml ~/Prog/Ellist/demos/nobel2/bin/NobelApp.swf (312332 bytes)

Try2 ~/Prog/Adobe/bin/compc -source-path ./src -source-path ./Reqs/minimalcomps/src -library-path+=./Reqs/Flare/build/flare.swc -library-path+=./Reqs/ThunderBoltAS3_Gumbo_v2.3.swc -library-path+=./Reqs/bulk_loader.swc -library-path+=./Reqs/ModestMapsSWC.swc -library-path+=./Reqs/greensock-as3/greensock.swc -external-library-path+=~/Prog/Adobe/frameworks/libs/framework.swc -output ElasticList.swc -include-classes eu.stefaner.elasticlists.App Loading configuration file ~/Prog/Adobe/frameworks/flex-config.xml ~/Prog/Ellist/ElasticList.swc (476153 bytes)

~/Prog/Adobe/bin/mxmlc -compiler.source-path=./src ./src/NobelApp.as -library-path+=../../ElasticList.swc -library-path+=~/Prog/Adobe/frameworks/libs/framework.swc -output bin/NobelApp.swf -static-link-runtime-shared-libraries Loading configuration file ~/Prog/Adobe/frameworks/flex-config.xml ~/Prog/Ellist/demos/nobel2/bin/NobelApp.swf (312332 bytes)

Note I used the following setup in ~/Prog/Ellist/Reqs/minimalcomps/src/com/bit101/components/Component.as // Flex 4.x sdk: [Embed(source="/assets/pf_ronda_seven.ttf", embedAsCFF="false", fontName="PF Ronda Seven", mimeType="application/x-font")]

Thanks for any pointer. Is it wrong to use the component compiler first? Hubert

MoritzStefaner commented 11 years ago

It seems like you are compiling an .swc file, not a .swf, right?

hjohanns commented 11 years ago

Hello Moritz, yes I first create ElasticList.swc, then link it into NobelApp.swf. Is that wrong? Regards, Hubert

MoritzStefaner commented 11 years ago

Yes, the idea was to compile ElasticListsApp directly into a swf. Sorry if this was not sufficiently clear..