[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] ActionScript + large arrays of numbers

From: Matthias Kramm
Subject: Re: [Swftools-common] ActionScript + large arrays of numbers
Date: Wed, 18 Mar 2009 21:55:37 +0100
User-agent: Mutt/1.5.6i

On Tue, Mar 17, 2009 at 04:09:36PM +0300, Vladimir Slepnev <address@hidden> 
> We use swc on win32 to compile lots of data (vector geographic
> objects) into SWFs. The sources look like this:
> .flash filename="9_124_87.swf" bbox=300x300 fps=50
> .frame 1
>   .action:
>       var shapes = [...lots of data...];
>   .end
> .end
> If shapes contains an array of 34 thousand numbers, swfc generates an
> SWF that's too short and contains invalid bytecode. But if we insert
> an [] element (empty array) between the numbers in the middle of the
> array, everything works okay for some reason.
> I didn't have much success digging through sources to diagnose the
> error. Maybe someone could help?

I recommend switching to Flash 9 Actionscript (AS 3.0). The old
AS2 compiler currently in swftools was not developed by me and will 
probably not be supported much longer.

Good thing you found a workaround for your problem though.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]