mx tweens

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jun 24th, 2005, 03:48
Junior Member
Join Date: Mar 2005
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote

  #2 (permalink)  
Old Jun 24th, 2005, 17:53
Junior Member
Join Date: Mar 2005
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
nvm go it

_root.mcButton3.onRelease = function() {
moveIt(200, 200, 0, 0);
}

duh
Reply With Quote
Reply

Tags
tweens

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 22:35.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43