A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Tweens on my slideshow do not function once I have 25+ images

Threaded View

  1. #1
    AS3 Mod
    Join Date
    Sep 2007
    Location
    O-H-I-O
    Posts
    2,385

    Tweens on my slideshow do not function once I have 25+ images

    I am building a slideshow right now using TweenLite as my tween class.

    Everything works perfectly when I have less than 25 images loaded into it, once I go above that things go south and the tweens appear to not work smooth, sometimes not at all.

    Anyone every run across this issue or have any suggestions?

    My structure is basically:

    - I have a sprite on stage called "Main".
    - Loop through images, load them and add to the Main sprite as Sprites.

    Code that I use to process the tweens:
    PHP Code:
    // Tween image out
    var cx:int Math.round(Backgrounds.loadArray[idx].width 2);
    var 
    cy:int Math.round(Backgrounds.loadArray[idx].height 2);

    TweenLite.to(Backgrounds.loadArray[idx], 1, { alpha0scaleX0scaleY0xcxycyeaseQuad.easeInOutoverwrite1onCompletedoRestoreonCompleteParams: [Backgrounds.loadArray[idx]] } );

    // Tween new image in
    TweenLite.to(Backgrounds.loadArray[idx], 1, { alpha1overwrite1easeCubic.easeInOut } ); 
    Thanks to anyone who can offer any suggestions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center