-
Client Software Programmer
[RESOLVED] _root help
Basically my problem is when I click my button I have it so my character moves from one place to another as follows:
PHP Code:
on(release){ if(_root.character._x > 50 || character._root (this)) { _root.character.gotoAndStop(4); _root.character._x = 235; _root.character._y = 201; } }
Instead of it directly rooting to _x = 235 _y =201 I would like it so it goes there with a certain speed instead of just like just appearing at 235, 201 if anyone can help I will appreciate this.
Last edited by AS3.0; 12-23-2011 at 10:18 PM.
-
Prid - Outing
Please post your FLA file, I need to so your structure
I am back, guys ... and finally 18 :P
BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS
-
.
Hi,
mess around with this
Actionscript Code:
on(release){ if(_root.character._x > 50 || character._root (this)) { _root.character.gotoAndStop(4); motionA = new mx.transitions.Tween(_root.character, "_x", None.easeNone, _root.character._x, 235, 4); motionB = new mx.transitions.Tween(_root.character, "_y", None.easeNone, _root.character._y, 201, 4); } }
(_root.character, "_x", None.easeNone, _root.character._x, 235, 4);
(movieclip, type , easetype, clip current _x, moveto _x, duration(secs))
-
Client Software Programmer
omg thats freaking amazing thanks dude and thanks for trying to help nig 13 love you guys no homo haha
-
Client Software Programmer
wait any of you know like lets say my character reaches its point how to make it than _root.character.left.gotoAndStop(1);
-
Prid - Outing
Tween has its own Event Handler for that, use this code for that:
Actionscript Code:
motionB.onMotionFinished = function(){ _root.character.left.gotoAndStop(1); }
Hope I helped now
I am back, guys ... and finally 18 :P
BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS
-
Client Software Programmer
oh thanks you think you can help me on this last thing 
http://board.flashkit.com/board/showthread.php?t=825904
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|