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

2006-11-29 Thread Andy Stone
I use fusekit(http://www.mosessupposes.com), it's great for animation
sequences. 

-Andy Stone

Here's an example of how I might do it...

import com.mosesSupposes.fuse.*;
ZigoEngine.register(PennerEasing, Shortcuts, FuseFMP, FuseItem);
//
var numOfClips = 3;
var currentClip = 1;
//the clips/images to load 
var clipsToLoad:Array = [img1.jpg, img2.jpg, img3.jpg];
//the final x y positions..
var clipPositions:Array = [[100, 100], [200, 200], [300, 300]];
//this is you callback, it will be called when the last animation finishes
function loadClips() {
if (currentClip=clipsToLoad.length) {
var created = createEmptyMovieClip(container_+currentClip,
currentClip);
mcLoader.loadClip(clipsToLoad[currentClip-1], created);
}
}
function moveClip() {
var del = .0;
var ease = easeOutBounce;
var pos1 = clipPositions[currentClip-1][0];
var pos2 = clipPositions[currentClip-1][1];
ZigoEngine.doShortcut(this[container_+currentClip], tween,
[_x, _y], [pos1, pos2], 1, ease, del, loadClips);
}
var mclListener:Object = new Object();
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(mclListener);
mclListener.onLoadComplete = function(mc:MovieClip) {
moveClip();
currentClip++;
};
loadClips();


//hope this helps





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Micky Hulse
Sent: Wednesday, November 29, 2006 7:52 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Loading library movie clips sequentially? Best way
todo 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: 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 todo this?

2006-11-29 Thread Merrill, Jason
I have found a major issue with the Fuse kit - it's huge and has huge
overhead.  It's a great set of classes, does some neat things, don't get
me wrong, but I found that using it in code-intensive app brought it
down and made it unusable.  I switched back to the built-in Tween and
Transition classes in the same application and using the
onMotionFinished event and such things went back to normal.  I only
respond  because you were asking for the best way to do this.  - this
was just my experience.  

Jason Merrill
Bank of America 
Learning  Organizational Effectiveness
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Andy Stone
Sent: Wednesday, November 29, 2006 9:14 AM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Loading library movie clips sequentially?
Best way todo
this?

I use fusekit(http://www.mosessupposes.com), it's great for animation
sequences.

-Andy Stone

Here's an example of how I might do it...

import com.mosesSupposes.fuse.*;
ZigoEngine.register(PennerEasing, Shortcuts, FuseFMP, FuseItem);
//
var numOfClips = 3;
var currentClip = 1;
//the clips/images to load
var clipsToLoad:Array = [img1.jpg, img2.jpg, img3.jpg];
//the final x y positions..
var clipPositions:Array = [[100, 100], [200, 200], [300, 300]];
//this is you callback, it will be called when the last animation
finishes
function loadClips() {
  if (currentClip=clipsToLoad.length) {
  var created =
createEmptyMovieClip(container_+currentClip,
currentClip);
  mcLoader.loadClip(clipsToLoad[currentClip-1], created);
  }
}
function moveClip() {
  var del = .0;
  var ease = easeOutBounce;
  var pos1 = clipPositions[currentClip-1][0];
  var pos2 = clipPositions[currentClip-1][1];
  ZigoEngine.doShortcut(this[container_+currentClip], tween,
[_x, _y], [pos1, pos2], 1, ease, del, loadClips);
}
var mclListener:Object = new Object();
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(mclListener);
mclListener.onLoadComplete = function(mc:MovieClip) {
  moveClip();
  currentClip++;
};
loadClips();


//hope this helps





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Micky
Hulse
Sent: Wednesday, November 29, 2006 7:52 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Loading library movie clips sequentially? Best
way
todo 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: 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
___
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 todo this?

2006-11-29 Thread Micky Hulse

Hi Jason, thanks for input, I really appreciate your time and insight.

Merrill, Jason wrote:

... snip ...
onMotionFinished event and such things went back to normal.  I only
respond  because you were asking for the best way to do this.  - this
was just my experience. 


For sure. The best way is something I strive for in my work.

Fusekit looks pretty cool, and I am sure it is time saving depending on 
proj. But, it may be a bit too much for what I am going for... Also, I 
think this would be a good situation for me to learn a few new things 
about AS.


Although, that code Andy posted looks like exactly what I need! Lol, it 
is so tempting to *not* reinvent the wheel. Haha.


Basically, I just want to load all 36 6-frame animations, one at a time, 
with a bit of easing animation (i.e. loads, then moves into position 
along the y-axis) and then load/animate the next. I guess that sounds 
pretty simple... Just need to put it all together in my head. :D


Thanks Jason!
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