A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [F8] whaaat..? onMotionFinished just stopped working? or am i blind and miss the bug?

Threaded View

  1. #1
    user in A minor
    Join Date
    Jan 2005
    Location
    finland
    Posts
    121

    [F8] whaaat..? onMotionFinished just stopped working? or am i blind and miss the bug?

    hi!
    now this may seem a silly supernoob problem, but i've used this command a thousand and two times. now it suddenly stopped working. It's an onMotionFinished function, code below. i've included a fla for you to take a look. never mind about the clumsy graphics, i stumbled into this problem before i even got started with the site. if i don't get it right, i never get further. pleeeeeease help, i'm really puzzled with this one!
    Code:
    stop();
    myTween = new mx.transitions.Tween(boy, "_xscale", easeType, 44, 100, 65);
    myTween = new mx.transitions.Tween(boy, "_yscale", easeType, 44, 100, 65);
    myTween = new mx.transitions.Tween(boy, "_x", easeType, 77, 199, 65);
    myTween = new mx.transitions.Tween(boy, "_y", easeType, 138, 125, 65);
    myTween.onMotionFinished=function(){
    	gotoAndStop("turn");
    	boy.gotoAndStop("boystop");
    }
    code explanation: i have this mc with an instance name boy. after the tween, the walking boy comes to a halt (frame called boystop in boy_mc), and then i basically wish the main timeline move forward. in this example to a frame called "turn". the problem: boy halts ok but main timeline never moves forward.
    Last edited by mrk13; 10-31-2006 at 07:42 PM.

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