[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnash-dev
Subject:    Re: [Gnash-dev] Showing a message when Gnash is asked to render AVM2?
From:       strk <strk () keybit ! net>
Date:       2010-11-26 16:26:57
Message-ID: 20101126162657.GA76859 () keybit ! net
[Download RAW message or body]

On Fri, Nov 26, 2010 at 02:19:12PM +0100, Petter Reinholdtsen wrote:

> @@ -948,6 +948,15 @@ movie_root::display()
> +    const movie_definition* def = _rootMovie->definition();
> +    if (def->isAS3()) {
> +        printf("this flash contain AVM2 content, and might not work well with Gnash\n");
> +// Movie *movie = MovieFactory::makeMovie()
> +// movie_root::setRootMovie(Movie* movie)
> +    }

> It this a sensible place to do it?  Can the _rootMovie object be
> replaced at this point with a different flash movie?

Note: I just saw a movie working perfectly fine which would
      respond tre to isAS3(). It's on top of
      http://parlamento.openpolis.it/
      Specifically:
http://op_openparlamento_resources.s3.amazonaws.com/swf/intro-openparlamento-ti-ci.swf

That said, I belive you don't want to use isAS3 but actual execution
of an ABC block, if any. This wouldn't prevent you from overlaying
a movie over something that would otherwise work, but might reduce
such occurrences. Also, you wouldn't be only checking the root movie
but every movie being loaded.

Finally, rather than handling this all in ::display you might want
to put your overlay in a level or add an ad-hoc additional item
to be rendered at the end of all levels, specifically made
to allow messaging to user.

--strk;

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html

_______________________________________________
Gnash-dev mailing list
Gnash-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnash-dev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic