On Wed, 21 Feb 2007 15:33:42 -0800 P T Withington <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I'm quite new to OpenLaszlo. > > I also have to say that I like your approach very much. > > > > Framework works fine on Adobe Flash Player on a PC, no question > > asked. But I've noticed that swf files that are generated by > > OpenLaszlo can't be viewed in gnash and can't be decompiled with > > ming. > > > > For example, ming produces strange messages like > > 'Stream out of sync... 155 but expecting 151' > > What is the reason for this? > > > > Sadly, it seems that many proprietary Flash implementations share > > that problem. There are many set-top boxes that claim they support > > Flash. However, all of those I've seen refuse to show > > laszlo-generated swf files. :( > > This may be because they are actually running Flash Lite. Also, > some of these implementations require that your swf be loadable as a > child movie, not the root movie, which OL swfs cannot.
Well, the browser specification says: 'Macromedia Flash 7.0 compatibility' and the browser plays files created with Macromedia Flash Professional as 'Flash 7'. Does this prove that it's not Flash Lite? Hmm. How can I check child/root issue? And this still doesn't explain all the messages like: ming: 'Stream out of sync... 155 but expecting 151' gnash -v: 'ERROR: swf_event::read(), event_length = 84, but read 83' It is my guess that openlaszlo swf doesn't follow flash specification very tight and 'official' flash player can work it around, but others can't. Can it be so? > > > Is there any way to make laszlo generate swf files that follow flash > > specification to the letter? Is it possible to make laszlo generate > > files that can be viewed in gnash or correctly decompiled with ming? > > We are actively working with the gnash developers on this. The OL > nightly builds are getting closer! The most I've seen till now is that canvas bgcolor is displayed correctly. Also, please note that gnash and libswfdec have exactly the same problem: they display only empty picture with correct canvas bgcolor. Do you have a build that can show more that this? My gnash is 0.7.2 The problems with libswfdec leads to very funny bug later with gnome under linux, see https://launchpad.net/bugs/85343 note that swf file in question is laszlo-generated. > (One quibble with your characterization: if a swf plays on the > Flash player and does not play on a Flash emulator, is the bug with > the swf or the emulator?) There may be a bug in the emulator, but all emulators I see around refuse to play same simple file created with OpenLaszlo for some reason. This makes me think that this is a bug in swf file after all. Or all of them. Given all the facts I have it easier to suspect the bug in one swf file that many (same or different) bugs in many different flash emulators. Best regards, Alexey.