Reducer compresses swf but fails to run

16 views
Skip to first unread message

karthi...@y7mail.com

unread,
Jun 22, 2011, 8:52:20 AM6/22/11
to apparat-framework
hi i am using reducer task on a large application (using parsley) with
multiple modules with quite a few languages. I have two issues
currently;

When I run reducer (with 7z) it compresses the swf file by atleast 30%
on am average. But when I try to run the app nothing happens an I just
get a white screen. It's almost as if the swf player does not know how
to decompress the swf file. Decompressing the swf I can see the
matroyosha is applied and there are no references to my application
files. I am building these through maven. Have I missed anything apart
from runner the reducer maven task?

The second problem is around the fact that when I turn on abc reduce
or control flow the App throws a language not found error when
launching.

Appreciate if someone can help with this.

Dominic Graefen

unread,
Jun 29, 2011, 6:02:37 AM6/29/11
to apparat-...@googlegroups.com
Hi Karthik,

are you sure you are listening for the ADDED_TO_STAGE event as described by Joa in this blogpost: http://blog.joa-ebert.com/2010/07/15/lzma-matryoshka/

-- 
Dominic Graefen
Interactive Developer / Creative Technologist

karthi...@y7mail.com

unread,
Jul 3, 2011, 7:08:34 AM7/3/11
to apparat-framework
I followed this post exactly and added the init() code to my
Main.mxml. I get this error in FlashBug

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at Matryoshka/init()
at Matryoshka/onAddedToStage()

karthi...@y7mail.com

unread,
Jul 5, 2011, 7:37:42 AM7/5/11
to apparat-framework
Ok this is now resolved, thanks for keeping me focussed on where I had
to dig deeper. It turned out I had to add the stage to the custom
preloader we are using as this was what was getting fired first.

However I am UNABLE to use LZMA compression. I got a blank screen
whenever I try to do this with a matryoshkaType of quiet or preloader.

On Jul 3, 9:08 pm, "karthik.i...@y7mail.com" <karthik.i...@y7mail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages