[Top][All Lists]

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

Re: [Gnash-dev] Re: OpenLaszlo support (continued..)

From: P T Withington
Subject: Re: [Gnash-dev] Re: OpenLaszlo support (continued..)
Date: Tue, 27 Feb 2007 07:43:46 -0500

On 2007-02-26, at 18:03 EST, strk wrote:

Ok, after adding support for IMPORTASSETS2 Gnash plays the "library" file
with these two warnings onlyh:

  MALFORMED SWF: Movie attempts to import symbols from itself.
WARNING: call_method invoked in something that doesn't cast to an as_object: undefined

The first one we discussed already. Dunno if the font hack works, a testcase would
help finding out.
The second one is due to LzInstantiateView being undefined. I think this is also
expected as the lib is not being loaded from the main file.


I will note that in the real SWF player, calling undefined is not fatal, it returns undefined and continues. The real SWF player is extremely lenient about errors.


On Mon, Feb 26, 2007 at 05:28:39PM -0500, Henry Minsky wrote:
The importAssets hack is in there because it turns out that if you do that
it imports any fonts in the loaded clip into the main app, so it's
a way to dynamically load fonts at runtime. Unfortunately we couldn't figure out any way to use that to dynamically load swf assets (Laszlo resources) so they could be attached to clips in the main movie, Flash doesn't seem to
allow that.

On 2/26/07, strk <address@hidden> wrote:

On Mon, Feb 26, 2007 at 05:05:54PM -0500, Henry Minsky wrote:
stage="defer" or stage="late" will both work

Ok. I tried both and both give the exactly same output in

'flasm' reports a single frame with 4 DOACTION blocks and in importAsset
which seems to be importing itself (weird).
The simple code is in the second DOACTION block, I guess I'll need to wipe
out one of those library files to get rid of the others, right ?

Flasm output follows:

movie 'build/main/mylib.lzx.swf' compressed // flash 7, total frames: 1,
frame rate: 0 fps, 500x400 px

 frame 0
   constants 'LzInstantiateView', '_level0'
   push 'LzInstantiateView', '_level0'
   push 'LzInstantiateView'
 end // of frame 0

 frame 0
   constants 'foo'
   push 'foo', 259
 end // of frame 0

 importAssets from 'build/main/mylib.lzx.swf'
 end // of importAssets

 frame 0
   constants '_parent', 'this', 'snippetLoaded', 'loader'
   push NULL, 'this'
   push '_parent'
   push 2, 'this'
   push '_parent'
   push 'loader'
   push 'snippetLoaded'
 end // of frame 0

 frame 0
 end // of frame 0


Henry Minsky
Software Architect

Gnash-dev mailing list


 ()   ASCII Ribbon Campaign
 /\   Keep it simple!

reply via email to

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