It will not stop the SWF, just dereference the SWF bytes.  If the SWF
has timers, enterFrame events, is playing video or sounds or things like
that it won't forcibly unhook those

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of helihobby
Sent: Thursday, April 03, 2008 9:05 AM
To: [email protected]
Subject: [flexcoders] Re: How can I stop/kill a running SWF which was
loaded with SWFLoader ?

 

Thx.
I will try it.
Regards,
Sean - HeliHobby.com

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "mickaelairial" <[EMAIL PROTECTED]> wrote:
>
> May be you can use the Loader class instead the SWFLoader.
> 
> The Loader class have an unload() method...
> 
> May be this can really unload your movie ?
> 
> 
> --- In [email protected]
<mailto:flexcoders%40yahoogroups.com> , "helihobby" <helihobby@> wrote:
> >
> > Hi All,
> > 
> > I have a swf which I loaded via SWFLoader.
> > It runs fine however how can I kill it.
> > 
> > I dont have the source FLA so I cant add actionscript inside the
SWF.
> > I must kill it from the outside.
> > 
> > when I set the swfLoad.load(null) or swfLoad = null or even
> > swfLoad.source = null after it has been running for a few seconds I
> > can still hear the SWF sound playing in the backgound ...
> > 
> > It just won't die ........
> > 
> > :(
> > 
> > Is there anyway to terminate the running loaded swf ?
> > 
> > Regards,
> > 
> > Sean.
> >
>

 

Reply via email to