Sounds vaguely as if you're running into a line-length limitation, either in the swfc compiler or actionscript (most likely in the former, if invalid bytecode is being generated, but not necessarily). Is your shapes array being put onto a single line? Most compilers have a limit as to the number of characters that can be put in a single line of code. The upper memory limit on arrays in Actionscript is the same as ECMAScript, 4294967295 array items, so I don't think that's your problem.
--Aaron On Tue, Mar 17, 2009 at 3:14 AM, Vladimir Slepnev <[email protected]> wrote: > Hello! > > 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? > > Vladimir Slepnev > Moscow, Russia > > >
