|
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" filewith 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: undefinedThe first one we discussed already. Dunno if the font hack works, a testcase wouldhelp finding out.The second one is due to LzInstantiateView being undefined. I think this is alsoexpected as the lib is not being loaded from the main file.
Indeed.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.
--strk; 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 thatit imports any fonts in the loaded clip into the main app, so it'sa 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 toallow 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 workOk. I tried both and both give the exactly same output in build/main/mylib.lzx.swf'flasm' reports a single frame with 4 DOACTION blocks and in importAssetwhich seems to be importing itself (weird).The simple code is in the second DOACTION block, I guess I'll need to wipeout 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' getVariable push 'LzInstantiateView' getMember varEquals end // of frame 0 frame 0 constants 'foo' push 'foo', 259 setVariable end // of frame 0 importAssets from 'build/main/mylib.lzx.swf' end // of importAssets frame 0 constants '_parent', 'this', 'snippetLoaded', 'loader' push NULL, 'this' getVariable push '_parent' getMember push 2, 'this' getVariable push '_parent' getMember push 'loader' getMember push 'snippetLoaded' callMethod pop end // of frame 0 frame 0 stop end // of frame 0 end --strk;-- Henry Minsky Software Architect address@hidden_______________________________________________ Gnash-dev mailing list address@hidden http://lists.gnu.org/mailman/listinfo/gnash-dev-- () ASCII Ribbon Campaign /\ Keep it simple!
[Prev in Thread] | Current Thread | [Next in Thread] |