I would be interested in any workaround as well. I hit the same problem as
you... a shell loading multiple third party applications.

What I ended up doing was asking developers to hang a bridging object off
their application which contains methods such as start, terminate, suspend
etc.

For instance when the shell is stopping an application it calls
subApp['bridge'].terminate(). The terminate() method either contains code to
stop sounds, movies etc or acts as a facade to other objects in the subapp
that perform the action.  The bridge object implements an interface to
enforce the method signature.

This works well but the cavaet is that the developer must insert the bridge
object to begin with.

I haven't done this but you could experiment with getting your shell to set
a bridge object into the sub app directly which would run through some stock
standard termination code. In my case I wanted developers to code their own
methods.

Angus



On 29 Mar 2007 15:34:43 -0700, Rod Perkins <[EMAIL PROTECTED]> wrote:

  For my AS3 application I am loading other swf files to be displayed
in an area on the stage of my application. The swfs are not mine,
meaning I don;t know their contents, but I want to host them within
my application.

Once loaded, AS3 holds these swfs in a avm1movie object (which from
the documentation means they represent AVM1 movie clips, which use
ActionScript 1.0 or 2.0). The avm1movie class does not allow
control over the movie beyond placement on the screen.

One of the problems I have is that some of the swf's contain sound
which I do not want played. I would like to be able to mute their
sound. Also, once I unload the swf, I would like the sound to
stop. Which doesn't seem to happen if the sound snippet is already
playing - it seems to play to completion.

Is there a workaround to at least get the sound transform for the
avm1movie and be able to mute the sound?

Thanks,

Rod




--
http://allthgo.com

Reply via email to