On Tue, Jul 10, 2007 at 11:08:33AM +0200, Fernando Delgado wrote: > Hi again, > > I been delevoping a gnash based player with the idea of diaplaying several > swf file one after another. > > I can play the first file, but I can't figure out how to load the second > one. > > I can load the second file with "gnash::create_library_movie" but I can not > call VM::init again, it throws a singleton exception. > > I know I can get the VM with VM::get().getRoot() but I don't know how to > change the swf movie.
No way to do that currently, except _level0.loadMovie(). Note that this workaround would still not be the same as a restart, as the properties would not be reset. The rationale for this is that we initialize the VM based on version of the top-level movie. So if you load an SWF5 after an SWF6 the VM would be setup to support SWF6. The Gnash code is still full of globals. This problem can only be fixed by providing more encapsulation (belive me, the VM class is a big step forward already). --strk; _______________________________________________ Gnash-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnash-dev

