gnash-dev
[Top][All Lists]
Advanced

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

Re: [Gnash-dev] problems doing a player that displays more than one swf


From: strk
Subject: Re: [Gnash-dev] problems doing a player that displays more than one swf file, one after another...
Date: Tue, 10 Jul 2007 16:25:14 +0200

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;




reply via email to

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