Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8300229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T16:28:46+00:00 2026-06-08T16:28:46+00:00

for (var i:int=cardCount; i < numberOfCardsToDispatch;i++){ Tweener.addTween(packArray[i], {x:packPosX – dealXPos, time:.4, delay:dealDelay, transition:easeOutExpo, onStart:function(){packArray[i].visible

  • 0
for (var i:int=cardCount; i < numberOfCardsToDispatch;i++){

            Tweener.addTween(packArray[i], {x:packPosX - dealXPos, time:.4, delay:dealDelay, transition:"easeOutExpo", onStart:function(){packArray[i].visible = true;}});


        }

I’m looping through my array, packArray[i] refers to a sprite. I want it so that as soon as the Tween starts the sprite is visible.

The above code does not tween the sprite, just freezes it, as soon as I take onStart out, it works. Any ideas where I’m going wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T16:28:48+00:00Added an answer on June 8, 2026 at 4:28 pm

    Tweener is no longer maintain. You should try TweenMax.

    Tweener was maintained from june 2005 to june 2009. While it still works, it’s not being maintained anymore […]

    With Tweener:

    Tweener.addTween(packArray[i], {
        time: .4,
        delay: dealDelay,
        x: packPosX - dealXPos,
        ease: "easeOutExpo",
        onStart: function():void { this.visible = true; } // You should use this
    });
    

    With TweenMax:

    TweenMax.to(packArray[i], .4, {
        delay: dealDelay,
        x: packPosX - dealXPos, // Or "-100" if you want to move to the left to 100px
        ease: Expo.easeOut,
        onStart: function():void { packArray[i].visible = true; }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

int main() { int var = 0;; // Typo which compiles just fine }
// File: foo.c static int var; void foo() { var++; } // end of
object ReassignTest extends App { class X(var i : Int) def x = new
class test { public: int data; test(int var = 0):data(var){cout<<constructor<<endl;} ~test(){ cout<<destructor<<endl; } test(const
I'm doing a check in an iPhone application - int var; if (var !=
I work on code something like this ... HEADERS ... int *var; void child()
def fibSeq(n: Int): List[Int] = { var ret = scala.collection.mutable.ListBuffer[Int](1, 2) while (ret(ret.length -
public function bmdToStr(bmd:BitmapData,width:int,height:int):String { var encoder:JPEGEncoder = new JPEGEncoder(); var encBytes:ByteArray = encoder.encode(bmd); return
public MyClass(int someUniqueID) { using(//Session logic) { var databaseVersionOfMyClass = session.CreateCriteria(/*criteria*/) .UniqueResult<MyClass>(); //Load logic
I produce an int from JSON data var f_page = [TheHouseofMarley]; retrieveData(f_page[0]); function retrieveData(teamName)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.