|
-
how to animate this?
Hello,
I received a layout of a web site, which I have to animate in Flash.
There are a lot of flowers that appear on the screen (see attached .jpg)
This comes to be a big headache for me. I´ve tried many things, mainly in the following directions:
1 - A function which places Movieclips of flowers (in .png) randomically in a Shape Layout (HYPE framework) that shows all flowers one by one, or shows groups of flowers one by one.
i´ve done seomthing like this:
Code:
for (var i:int = 0; i < roses.numChildren; i++)
{
TweenNano.to(rosas.getChildAt(i), 0.2, {scaleX: 1, scaleY: 1, alpha:1, delay: 3 + i*0.1, ease:Quint.easeOut});
}
result: It´s extremely CPU consuming, cause there are many tweens at the same time. and there must be many many flowers to fill the area I need, otherwise there are too many gaps.
2 - I placed the flowers into the 'roses' MovieClip in the FLA, in order to have much less movieclips to animate with a function similiar to the one above. then I used the shape layout to place just a few flowers to give the pleasant effect which the client loved - thanks Joshua.
Code:
for (var i:int = 0; i < roses.numChildren; i++)
{
rosesTimeline.insert(new TweenLite(rosas.getChildAt(i), 0.06, {alpha: 1, delay: i*0.03, blurFilter:{blurX:0, blurY:0}, ease:Linear.easeNone}));
}
result: still, too many tweens. takes too much cpu, animation too long .
3 - I tried the same thing as above, but with large groups of flowers. the main swf is light weight, cause the groups are only different arrangements of the same flowers (and small groups of flowers)
result: it looks weird, the client didn´t like it, and me neither.
4 - Then I tried to animate only a big png with most of the flowers and then a few come up in screen with the shape layout.
result: png extremely big in size, and the alpha tween from 0 1, along with a blur filter tween , makes the swf run at 3 fps. strangely (for me) when I animate smaller groups of flowers , like the 2nd and 3rd opt, the framerate doesn´t fall that much.
so i don´t know what to do. there must be some way to animate that ...
thanks in advance !!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|