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.
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 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 <[EMAIL PROTECTED]> 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
build/main/mylib.lzx.swf
'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'
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
[EMAIL PROTECTED]
_______________________________________________
Gnash-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-dev
--
() ASCII Ribbon Campaign
/\ Keep it simple!
_______________________________________________
Gnash-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-dev