A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Help with tween class

  1. #1
    Junior Member
    Join Date
    May 2006
    Posts
    21

    Help with tween class

    I'm trying to fade an image out and then in. The code I'm using instead makes the image disappear then fades in as it should.

    Code:
    var tween_handler:Object = new Tween(image1, "_alpha", Strong.easeOut, 100, 0, 1, true);
    	tween_handler.onMotionFinished = function() {
    		swapimage(image1);
    	};
    	new Tween(image1, "_alpha", Strong.easeIn, 0, 100, 1, true);

  2. #2
    Junior Member
    Join Date
    Jun 2009
    Posts
    5
    try putting the new Tween inside the brackets under swapimage

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