This is a discussion on "mx tweens" within the Flash & Multimedia Forum section. This forum, and the thread "mx tweens are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
mx tweens
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
mx tweens
for some reason i cant apply the action to a button. What im trying to do is when you click the button itll perform the action. say if the instance name of my button was btn1 how would that work?
*update (click on the screen) http://www.eggrollindustries.com/mxtween.htm var easeType= mx.transitions.easing.Elastic.easeInOut; function moveIt(x,y,xs,ys) { myScaleTweenX = new mx.transitions.Tween(ball_mc, "_xscale",easeType, ball_mc._xscale, 100, 40,false); myScaleTweenY = new mx.transitions.Tween(ball_mc, "_yscale",easeType, ball_mc._yscale, 100, 40,false); myTweenX = new mx.transitions.Tween(ball_mc, "_x",easeType, ball_mc._x, x, 50,false); myTweenY = new mx.transitions.Tween(ball_mc, "_y",easeType, ball_mc._y, y, 50,false); } _root.onMouseDown = function() { moveIt(200, 200, 0, 0); } im trying.. instead of clicking on the screen and the function executes.. you would click a button and then it would execute. |
|
|
|
#2
|
|||
|
|||
|
nvm go it
_root.mcButton3.onRelease = function() { moveIt(200, 200, 0, 0); } duh |
![]() |
| Tags |
| tweens |
| Thread Tools | |
|
|