This is old mail from the last time the loader sucked.  I wonder if
we should try it.

Basically, instead of using .unloadMovie to abort loading, load a
null movie instead.

Begin forwarded message:

 > From: Adam Wolff <[EMAIL PROTECTED]>
 > Date: 1 September 2005 12:57:18 EDT
 > To: P T Withington <[EMAIL PROTECTED]>
 > Cc: [EMAIL PROTECTED]
 > Subject: Re: From flashcoders: how to abort a loading movie
 >
 > This was new in FP6. It definitely might work better for us than what
 > we're doing.
 >
 > A
 >
 > On Sep 1, P T Withington wrote:
 >
 >> Adam, were you aware of this?  Is this a technique we should try
 >> (rather than
 >> just letting aborted movies finish loading?)
 >>
 >> Date: Thu, 1 Sep 2005 09:26:50 -0600
 >> From: Tyler Wright <[EMAIL PROTECTED]>
 >> Subject: Re: [Flashcoders] Stop loading
 >> To: Flashcoders mailing list <[email protected]>
 >> Message-ID: <[EMAIL PROTECTED]>
 >> Content-Type: text/plain; charset=ISO-8859-1
 >>
 >> Paul,
 >>
 >> I've had to fight this problem too while building a LoadManager
 >> that can
 >> make loading/unloading extremely simple in every application. By
 >> the way,
 >> excellent work on FlashEarth.
 >>
 >> When using the MovieClipLoader the .unloadMovie will only work
 >> after the
 >> 'onLoadStart' has been called. If you can wait until that event
 >> has been
 >> dispatched then the download should stop. Otherwise it behaves as
 >> you have
 >> said, it just keeps loading as usual.
 >>
 >> Also, if you tell the MovieClip to load another movie (ex. "null")
 >> it will
 >> cancel the current load and begin on the next one. Of course if
 >> that one
 >> doesn't exist it fulfills your purpose of simply canceling a load.
 >>
 >> Let me know if you have any other questions/problems.
 >>
 >> Tyler
 >>
 >> On 9/1/05, Paul Neave <[EMAIL PROTECTED]> wrote:
 >>
 >>>
 >>> Hi group,
 >>>
 >>> I've been trying to find a workaround for a trait in Flash that
 >>> occurs
 >>> when trying to download a SWF into another SWF. Once a download has
 >>> begun, it's impossible to cancel the download and stop it mid-way
 >>> through.
 >>>
 >>> Macromedia's documentation states you can halt a download by
 >>> using the
 >>> MovieClipLoader class's .unloadClip() method, but although this may
 >>> make the listener and movieclip ignore any more responses from the
 >>> server, the SWF being downloaded continues to be streamed.
 >>>
 >>> e.g. See the first comment on LiveDocs:
 >>> http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001584.html
 >>>
 >>> I've also searched on Flashcoders' archives and it seems to be a
 >>> longstanding and overlooked problem. In a browser window to stop  
any
 >>> download you simply hit the 'stop' button - there's no native
 >>> equivalent in Flash.
 >>

On 2006-09-24, at 02:56 EDT, Scott Evans wrote:

>> I thought that was supposed to work.  What's the warning?
>
> ERROR: bad url: can't form uri from null
>
>
>
>> As an alternative, how about:
>>
>> v1.setSource("http://blah/1x1.jpg";);
>
> good idea -- but that doesn't seem to work.  Looks like the resource
> completes loading.  I had some examples in Fiddler that seemed to  
> halt the
> http connection, but now that's not happening.  Huh.
>
> I just realized, an even better idea would be to do setResource 
> ("small")
> to some compiled-in resource.  But that doesn't kill the connection
> either.  Bummer.
>
>
>
> gse


_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to