Re: [Flashcoders] Loading library movie clips sequentially? Best way to do this?

2006-11-30 Thread Claus Wahlers

Rasmus wrote:

Ok.. But what if you have around 100-200 files, let's say external 
JPG's. Wouldn't the zip file become huge?


The reason I'm asking is, I'm making a photographers portfolio where the 
idea is to load thumbnails first - then start loading the high-res 
pictures in the background. when I need a file ASAP (..to display it to 
the user) I just bump it to the top of the loadQueue..


Or is something like this already built into AS 3?


You MAY have a point there.

Although, browsers usually support two simultaneous HTTP connections so 
you could just load the hires image while the thumbnail zip is still 
loading. The disadvantage is that the hires images loads slower 
(probably at half speed).


However, zipping thumbnails has the big advantage that you save a lot of 
overhead. 200 successive GET requests are no fun. Loading a zip is way 
faster as you only need to do one request to the server. And with FZip 
you have access to files while the zip is still loading.


Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br/
http://wahlers.com.br/claus/blog/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Loading library movie clips sequentially? Best way to do this?

2006-11-30 Thread Rasmus
I see your point. Loading the thumbnails in a zip is definetly better  
than loading them individually..


In my case the thumbnails have to be loaded before the user is able  
to interact with the site anyway.


Still, some kind of advanced background loading is what I'm looking  
for, but that's probably another thread..


- Rasmus

* * *


Claus Wahlers kirjoitti 30.11.2006 kello 11.47:


Rasmus wrote:

Ok.. But what if you have around 100-200 files, let's say external  
JPG's. Wouldn't the zip file become huge?
The reason I'm asking is, I'm making a photographers portfolio  
where the idea is to load thumbnails first - then start loading  
the high-res pictures in the background. when I need a file ASAP  
(..to display it to the user) I just bump it to the top of the  
loadQueue..

Or is something like this already built into AS 3?


You MAY have a point there.

Although, browsers usually support two simultaneous HTTP  
connections so you could just load the hires image while the  
thumbnail zip is still loading. The disadvantage is that the hires  
images loads slower (probably at half speed).


However, zipping thumbnails has the big advantage that you save a  
lot of overhead. 200 successive GET requests are no fun. Loading a  
zip is way faster as you only need to do one request to the server.  
And with FZip you have access to files while the zip is still loading.


Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br/
http://wahlers.com.br/claus/blog/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Loading library movie clips sequentially? Best way to do this?

2006-11-30 Thread Merrill, Jason
I just keep my own static Animation class handy, which simplifies the
tween and transition classes:

import mx.transitions.*;
import mx.transitions.easing.*;

class com.boa.effects.Animate{

public static function fadeIn(clip:MovieClip,
time:Number):Object{
return new Tween(clip, _alpha, Regular.easeIn, 0, 100,
time,   true);
}   

//...etc.
}

I can create custom animations with simple names, and custom parameters
based on how many arguments I want to worry about.  So then in my .fla,
I call the static function I want, like this:

import com.boa.effects.Animate;
myMotionTween = Animate.fadeIn(myClip, 3);

//Then use what's return to trigger the next animation:
myMotionTween.onMotionFinished = function(){
//do the next thing when the animation is 
//finished.
}

Wrap that in a creative way into arrays/loops and you've got simple
sequential animation.

Instead of a static class like above, you could also write one that
extends movie clip and adds animation methods. Then associate your movie
clip with that class.

Jason Merrill
Bank of America 
Learning  Organizational Effectiveness
 
 
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Loading library movie clips sequentially? Best way to do this?

2006-11-30 Thread Ian Thomas

On 11/30/06, Claus Wahlers [EMAIL PROTECTED] wrote:


However, zipping thumbnails has the big advantage that you save a lot of
overhead. 200 successive GET requests are no fun. Loading a zip is way
faster as you only need to do one request to the server. And with FZip
you have access to files while the zip is still loading.


An alternative to this if dealing with AS2 - you could dynamically
build a .swf containing all the thumbnails using swfmill, then load
that.

Cheers,
  Ian
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Loading library movie clips sequentially? Best way to do this?

2006-11-30 Thread Micky Hulse

Merrill, Jason wrote:

I just keep my own static Animation class handy, which simplifies the
tween and transition classes:
...snip...
Instead of a static class like above, you could also write one that
extends movie clip and adds animation methods. Then associate your movie
clip with that class.


WHOA! Kick butt!

Thanks so much for sharing! This is great. I was up late last night 
trying to figure out how to do something similar. This post will really 
help me learn -- Thanks! :)


I may be back with some questions.

Lol, Flash is love hate for me... One minute I am ready to tear my hair 
out and quit, the next minute I am all geared-up to go for another 24 
straight hours!!!


Hehe, cheers!
Micky

--
 Wishlist: http://snipurl.com/vrs9
   Switch: http://browsehappy.com/
 BCC?: http://snipurl.com/w6f8
   My: http://del.icio.us/mhulse
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Loading library movie clips sequentially? Best way to do this?

2006-11-29 Thread Micky Hulse

Hello,

Here is the scoop: I have 36 movie clips in my library that get placed 
on stage via actionscript...


Long story short, I would like to load each clip one at a time, for 
example: movie_clip-01 fully loads and animates into position, then 
movie_clip-02 loads and animates into position, (...), and finally 
movie_clip-36 loads and animates into position. Basically, I want to 
break-up the load across time, vs. doing it all at the beginning.


Just wondering if the above idea makes sense? Is it standard to do that 
type of loading from the library at runtime, or should I be working with 
 36 external swf files?


Anyone seen any tutorials and/or example files on the web that cover 
this type of loading?


Any tips/suggestions/links/rtfm's (with page #) ya'll can send my way 
would be kick-butt! :)


Sorry if noob question... I am just now getting back into Flash after a 
2-year hiatus.


Many thanks in advance.
Cheers,
Micky

--
 Wishlist: http://snipurl.com/vrs9
   Switch: http://browsehappy.com/
 BCC?: http://snipurl.com/w6f8
   My: http://del.icio.us/mhulse
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Loading library movie clips sequentially? Best way to do this?

2006-11-29 Thread Alain Rousseau
Hi Micky,

if you want to spread the load across time, the best approach is to have 36
.swf files that you load one at a time.
To perform the loading you should use the MovieClipLoader (look it up on
HYPERLINK
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/js/html/wwhelp.h
tm?href=2538.htmllivedocs or just HYPERLINK
http://www.google.ca/search?hl=enq=MovieClipLoadermeta=google)
And of course there are many preloaders out there that can speed up the
process as well.

With that you'll be on your way in no time !

HTH !

Alain



-Original Message-
From: [EMAIL PROTECTED] [HYPERLINK
mailto:[EMAIL PROTECTED]mailto:flashcoders-bounces
@chattyfig.figleaf.com] On Behalf Of Micky Hulse
Sent: 29 novembre 2006 07:52
To: Flashcoders mailing list
Subject: [Flashcoders] Loading library movie clips sequentially? Best way to
do this?

Hello,

Here is the scoop: I have 36 movie clips in my library that get placed on
stage via actionscript...

Long story short, I would like to load each clip one at a time, for
example: movie_clip-01 fully loads and animates into position, then
movie_clip-02 loads and animates into position, (...), and finally
movie_clip-36 loads and animates into position. Basically, I want to
break-up the load across time, vs. doing it all at the beginning.

Just wondering if the above idea makes sense? Is it standard to do that type
of loading from the library at runtime, or should I be working with
  36 external swf files?

Anyone seen any tutorials and/or example files on the web that cover this
type of loading?

Any tips/suggestions/links/rtfm's (with page #) ya'll can send my way would
be kick-butt! :)

Sorry if noob question... I am just now getting back into Flash after a
2-year hiatus.

Many thanks in advance.
Cheers,
Micky

--
  Wishlist: HYPERLINK http://snipurl.com/vrs9http://snipurl.com/vrs9
Switch: HYPERLINK http://browsehappy.com/http://browsehappy.com/
  BCC?: HYPERLINK http://snipurl.com/w6f8http://snipurl.com/w6f8
My: HYPERLINK http://del.icio.us/mhulsehttp://del.icio.us/mhulse
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
HYPERLINK
http://chattyfig.figleaf.com/mailman/listinfo/flashcodershttp://chattyfig.
figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training HYPERLINK
http://www.figleaf.comhttp://www.figleaf.com HYPERLINK
http://training.figleaf.comhttp://training.figleaf.com


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.19/555 - Release Date: 2006-11-27




-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.19/556 - Release Date: 2006-11-28
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Loading library movie clips sequentially? Best way to do this?

2006-11-29 Thread Rasmus Snabb
I've found that LoadQueueManager is excellent for loading multiple  
external files in sequence.. It also gives you the possibility to  
pause loading, rearrange loading order etc. etc.


http://blog.bittube.com/2006/10/27/loadqueuemanager-update/

Hope to see an AS 3 version of this soon!

Rasmus


Puh. 040 715 40 93 / www.rasmussnabb.com / www.byrasmus.com



On 29.11.2006, at 14.51, Micky Hulse wrote:


Hello,

Here is the scoop: I have 36 movie clips in my library that get  
placed on stage via actionscript...


Long story short, I would like to load each clip one at a time, for  
example: movie_clip-01 fully loads and animates into position, then  
movie_clip-02 loads and animates into position, (...), and finally  
movie_clip-36 loads and animates into position. Basically, I want  
to break-up the load across time, vs. doing it all at the beginning.


Just wondering if the above idea makes sense? Is it standard to do  
that type of loading from the library at runtime, or should I be  
working with  36 external swf files?


Anyone seen any tutorials and/or example files on the web that  
cover this type of loading?


Any tips/suggestions/links/rtfm's (with page #) ya'll can send my  
way would be kick-butt! :)


Sorry if noob question... I am just now getting back into Flash  
after a 2-year hiatus.


Many thanks in advance.
Cheers,
Micky

--
 Wishlist: http://snipurl.com/vrs9
   Switch: http://browsehappy.com/
 BCC?: http://snipurl.com/w6f8
   My: http://del.icio.us/mhulse
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Loading library movie clips sequentially? Best way to do this?

2006-11-29 Thread Micky Hulse

Hi,

Great info all! Many thanks Andy, Alain, and Rasmus. I really appreciate
your time.

So, it sounds like the consensus is to externally load the clips...
Hehe, that makes a lot more sense. :)

@Andy: Thanks for example code. That actually looks like what I would
like to do... A few month back I found a site that has some great vid
tutes on using fuse:

http://www.gotoandlearn.com/

I have been reading Foundation Actionscript Animation, so I am not sure
if I want to try and do this myself (for learning purposes), or maybe
use something like Fusekit to get some of the more complicated
actionscript out of the way. Well, either way, thanks for the example
code, I really appreciate the pointers. :)

@Alain: Right on, thanks for the links. I was not sure where exactly to
look and/or what would be best for my situation.

Currently, I have imported all frames into my library -- due to the
complexity of the 3D object, I had to do this in order to optimize and
figure-out the positioning. Looks like I will export all my clips from
my lib as swf's... and externally load.

@Rasmus: That looks like a great option too, thanks for sharing the link. :)

This is where I am not sure if I should use the code of others, or try
to do this all myself... I am opting for the latter, but I have yet to
really tackle the scripting. Fortunately, this is just a personal
project, so there is no deadline to meet. :D

Again, thanks all!
Have a great winter.
Cheers,
Micky

--
 Wishlist: http://snipurl.com/vrs9
   Switch: http://browsehappy.com/
 BCC?: http://snipurl.com/w6f8
   My: http://del.icio.us/mhulse

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Loading library movie clips sequentially? Best way to do this?

2006-11-29 Thread Claus Wahlers


I've found that LoadQueueManager is excellent for loading multiple 
external files in sequence.. It also gives you the possibility to pause 
loading, rearrange loading order etc. etc.


http://blog.bittube.com/2006/10/27/loadqueuemanager-update/

Hope to see an AS 3 version of this soon!


For AS3 i'd recommend to just zip your assets and load that zip directly 
into Flash. No more annoying loading queues.

http://codeazur.com.br/lab/fzip/

I've also started working on a low/midlevel AS3 HTTP library, that you 
could use to utilize persistant connections and pipelining over HTTP 1.1.


Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br/
http://wahlers.com.br/claus/blog/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com