Jump to content


facing problem in moving multiple SWFs with TweenMax

Recommended Posts



I am working on a project, in which I am trying to move 12 SWF files simontaneously with the help of (TweenMax.allTo). but when I try this in browser, many frames are skipping during movement. size of each SWF is 2500X2400 px and I'm using 4 MB jpg image in SWF as backfround.


Code : 

TweenMax.allTo([CONTAINER_1, CONTAINER_2], groundFriction, { x:xPos, y:yPos} );

Both the containers are containing 6 SWF files. xPos and yPos is calculating dynamically on keyboard key down event, and I am using ENTER_FRAME to move the canvas.


If someone knows how to deal with it, please help me. Thanks in advance.

Link to comment
Share on other sites

Hi and welcome to the GreenSock forums,


I think you simply are asking to much from Flash and this has nothing to do with TweenMax.

You are telling Flash Player to move and render 72 million pixels per update. (2500 x 2400 x 12)


Please try the following test.


Remove TweenMax and use a very basic ENTER_FRAME event to move the containers

addEventListener(Event.ENTER_FRAME, move)

function move(e:Event):void{

Any better?

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.