Jump to content
Search Community

Big Tween, Slow Move

robertnyc test
Moderator Tag

Recommended Posts

I'm doing a rush project that involves importing some large AI files into flash and moving things around --

 

As you might suspect, these AI files lead to a gazillion little pieces in the movie clips.

 

Therefore, when I'm zoomin' and twistin' and scalin' the MC the performance is not as fast as I'd like.

 

The obvious answer would be to make a bitmap of the entire movieclip. But not wanting to rewrite chunks o' code I thought I'd ask:

 

is there any simpler way to speed things up when working with complex MCs? I thought I'd hit it with cacheAsBitmap but I read that a) TweenMax/Lite turns this off when tweening, and B) this can actually slow things down.

 

Any answers much appreciated

Link to comment
Share on other sites

No no, TweenLite/Max doesn't turn cacheAsBitmap off while tweening. I've never heard that rumor before, but it's totally bogus.

 

cacheAsBitmap can be helpful in certain situations, but if you're scaling, it would force the bitmap to get recalculated constantly and wouldn't help (could hurt actually). You could, however, do it manually. Create a BitmapData that's the size of your object at its biggest point (like if you're scaling it to 2x somewhere, make sure the BitmapData is 2x your object's native size). Drop that BitmapData into a Bitmap and use THAT instead of your complex vector-based MovieClip. You might see some nice performance gains with this technique.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...