

tellTarget ("box") {
..:x = _x;
..:rotation = _rotation;
..:y = _y;
..:alpha = _alpha;
..:xscale = _xscale;
..:yscale = _yscale;
}


on (release) {
tellTarget ("box") {
_x+=10;
..:x = _x;
}
}
Go back, and right click on the "down"button and select "Actions". Write in or copy-paste the following code:
on (release) {
tellTarget ("box")
_x-=10;
..:x = _x;
}
} 
on (release) {
tellTarget ("box") {
_y-=10;
..:y = _y;
}
}
Down Arrow Code:
on (release) {
tellTarget ("box") {
_y+=10;
..:y = _y;
}
}
Rotating clockwise and counterclockwise:
Up Arrow Code:
on (release) {
tellTarget ("box") {
_rotation+=10;
..:rotation = _rotation;
}
}
Down Arrow Code:
on (release) {
tellTarget ("box") {
_rotation-=10;
..:rotation = _rotation;
}
}
Increase and Decrease the Width:
Up Arrow Code:
on (release) {
tellTarget ("box") {
_xscale+=10;
..:xscale = _xscale;
}
}
Down Arrow Code:
on (release) {
tellTarget ("box") {
_xscale-=10;
..:xscale = _xscale;
}
}
Increase and Decrease the Height:
Up Arrow Code:
on (release) {
tellTarget ("box") {
_yscale+=10;
..:yscale = _yscale;
}
}
Down Arrow Code:
on (release) {
tellTarget ("box") {
_yscale-=10;
..:yscale = _yscale;
}
}
Increase and Decrease the Alpha/Opacity:
Up Arrow Code:
on (release) {
tellTarget ("box") {
if (_alpha+10<100) {
_alpha+=10;
..:alpha = _alpha;
}
}
}
Down Arrow Code:
on (release) {
tellTarget ("box") {
if (_alpha-10>0) {
_alpha-=10;
..:alpha = _alpha;
}
}
}
Whew, that was tiresome but your "box" should be fully functional and ready to go now. If you want to display the values like I did on the bottom right, just make a dynamic text box, and define the variables as: x, y, rotation, xscale, yscale, and alpha respectively. Hope this tutorial helps in explaining the vast functions of movies and if you need any help, just drop us an e-mail in the contact section.Copyright © 2000-2010 Spoono, LLC. All rights reserved.
Network: Reseller Web Hosting by Spoono Host | Spoonloads | Absolute Cross
Terms of Service | Privacy Policy.