Re: [Flashcoders] cancel loading process

2005-10-27 Thread John Grden
In flash, you can cancel/delete but the browser will still do the download
unfortunately

On 10/27/05, Ian Thomas <[EMAIL PROTECTED]> wrote:
>
> I seem to recall someone on this list suggesting that if you call
> loadMovie(null) on an already loading clip, it actually cancels the load.
>
> Of course, I may have been dreaming... I haven't actually tried it!
>
> HTH,
> Ian
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



--
John Grden - Blitz
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] cancel loading process

2005-10-27 Thread Ian Thomas
I seem to recall someone on this list suggesting that if you call
loadMovie(null) on an already loading clip, it actually cancels the load.

Of course, I may have been dreaming... I haven't actually tried it!

HTH,
Ian
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] cancel loading process

2005-10-26 Thread John Grden
once you make a call to load an asset from a web server, the web browser
won't cancel the download unfortunately. Once you call for it, that's it. Of
course, we found this on Flash7, and I'm not thinking there's anything
different on F8, but maybe someone else knows different.

hth,

On 10/26/05, Benjamin Dobler <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
>
>
> i have the following problem. I want to load a sequence of Images. I have
> my
> own SequenceLoader so that is fine.
>
> Now i need to now the size (totalBytes) of all clips in advance to show a
> progress bar that counts all clips.
>
> So my first guess is to load one clip wait fort he first progress - get
> the
> bytesTotal - and than cancel the loading. With this i would get the
>
> Sizes of all clips without loading them. Now i always thought it`s not
> possible to cancel a loading progress but to my surprise the following
> seems
> to work:
>
>
>
> this.createEmptyMovieClip("image_mc", this.getNextHighestDepth());
>
> var mclListener:Object = new Object();
>
> mclListener.onLoadProgress = function(target:MovieClip,
> bytesLoaded:Number,
> bytesTotal:Number){
>
> var progress:Object = mcLoader.getProgress(image_mc);
>
> trace(" bytesTotal: " + bytesTotal);
>
> size_tx.text=bytesTotal;
>
> image_mcl.unloadClip(target);
>
>
>
> };
>
> var image_mcl:MovieClipLoader = new MovieClipLoader();
>
> image_mcl.addListener(mclListener);
>
> image_mcl.loadClip("img1.jpg", image_mc);
>
>
>
> I believe that the loading is really canceled. I don`t have the image in
> my
> cache after calling this.
>
> Can someone verify that this works? Any better solutions?
>
>
>
> Thanx
>
>
>
> Benjamin
>
>
>
>
>
> RichApps.de
>
> RIA Development
>
>
>
> Benjamin Dobler
>
>
>
> web: |  http://www.richapps.de
>
> mail: |  [EMAIL PROTECTED]
>
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



--
John Grden - Blitz
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] cancel loading process

2005-10-26 Thread Benjamin Dobler
Hi All,

 

i have the following problem. I want to load a sequence of Images. I have my
own SequenceLoader so that is fine.

Now i need to now the size (totalBytes) of all clips in advance to show a
progress bar that counts all clips.

So my first guess is to load one clip wait fort he first progress - get the
bytesTotal - and than cancel the loading. With this i would get the

Sizes of all clips without loading them. Now i always thought it`s not
possible to cancel a loading progress but to my surprise the following seems
to work:

 

this.createEmptyMovieClip("image_mc", this.getNextHighestDepth());

var mclListener:Object = new Object();

mclListener.onLoadProgress  = function(target:MovieClip, bytesLoaded:Number,
bytesTotal:Number){

var progress:Object = mcLoader.getProgress(image_mc);

trace(" bytesTotal: " + bytesTotal);

size_tx.text=bytesTotal;

   image_mcl.unloadClip(target);

   

};

var image_mcl:MovieClipLoader = new MovieClipLoader();

image_mcl.addListener(mclListener);

image_mcl.loadClip("img1.jpg", image_mc);

 

I believe that the loading is really canceled. I don`t have the image in my
cache after calling this.

Can someone verify that this works? Any better solutions?

 

Thanx

 

Benjamin

 

 

RichApps.de

RIA Development

 

Benjamin Dobler

 

web:   |   http://www.richapps.de

mail:   |   [EMAIL PROTECTED]

 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders