View Full Version : Changing Position Of An Object With A Button
Balus
12-29-2004, 04:14 AM
Wondering how to change the x position of an oblect with a button. Help Please. Thanks in Advance.
madgett
12-29-2004, 04:24 AM
Here's a way:
myButton_btn.onRelease = function() {
my_mc._x = 20; // or whatever x-coord you want
}
Make sure you give your button an instance name equal to one you use in your code, in this example myButton_btn and the movie clip, or object, an instance name equivalent in your code as well (my_mc).
Balus
12-29-2004, 04:34 AM
Thanks man, works great :D
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.