If you have not yet given me your first project, then please email them to me no later then 10/20/09. We are going to go over a couple of scripts tonight.
The first is a drag script.
First create a object (it can be a circle, square, etc). Then convert that object to a movie clip. Once you have your movie clip, open up the actions window and place in this code:
on (press) {
startDrag (this);
}
on (release) {
stopDrag ();
}
*end first demo*
————————————–
The next script we are going to go over is a gaming script. For this demo, you will have to set up five buttons. You can grab the buttons from the common libraries.
On the first button, you are going to put this script:
on (press) {
text = 10;
}
For the second button, place this script:
on (press) {
text = 40;
}
On the third button, place this script:
on (press) {
text = 80;
}
And for the fourth button, place this script:
on (press) {
text = 120;
}
Move fifth button to the right of the stage in the bottom right corner. On that button, place this script:
on (press) {
if (text > 100)
gotoAndStop(2);
{
}
}