Hi my name is david ( Belgium Europe)and I'm trying out my verry first actionscript in flash5 , but it doesn't seem to work. i wan't to write an action script that radomly chooses a new scene. Please help out this
first timer !!! THANX .
This is what I have up till now:
ifFrameLoaded (14) {
set (number, "random (15)"
if (number=1) {
gotoAndPlay ("Scene 3", 1);
} else if (number2) {
gotoAndPlay ("Scene 4", 1);
} else if (number=3) {
gotoAndPlay ("Scene 5", 1);
} else if (number4) {
gotoAndPlay ("Scene 6", 1);
} else if (number=5) {
gotoAndPlay ("Scene 7", 1);
} else if (nuber=6) {
gotoAndPlay ("Scene 8", 1);
} else if (number=7) {
gotoAndPlay ("Scene 9", 1);
} else if (number=8) {
gotoAndPlay ("Scene 10", 1);
} else if (number=9) {
gotoAndPlay ("Scene 11", 1);
} else if (number=10) {
gotoAndPlay ("Scene 12", 1);
} else if (number=11) {
gotoAndPlay ("Scene 13", 1);
} else if (number=12) {
gotoAndPlay ("Scene 14", 1);
} else if (number=13) {
gotoAndPlay ("Scene 15", 1);
} else if (number=14) {
gotoAndPlay ("Scene 16", 1);
} else if (number=15) {
gotoAndPlay ("Scene 17", 1);
}
}
first timer !!! THANX .
This is what I have up till now:
ifFrameLoaded (14) {
set (number, "random (15)"
if (number=1) {
gotoAndPlay ("Scene 3", 1);
} else if (number2) {
gotoAndPlay ("Scene 4", 1);
} else if (number=3) {
gotoAndPlay ("Scene 5", 1);
} else if (number4) {
gotoAndPlay ("Scene 6", 1);
} else if (number=5) {
gotoAndPlay ("Scene 7", 1);
} else if (nuber=6) {
gotoAndPlay ("Scene 8", 1);
} else if (number=7) {
gotoAndPlay ("Scene 9", 1);
} else if (number=8) {
gotoAndPlay ("Scene 10", 1);
} else if (number=9) {
gotoAndPlay ("Scene 11", 1);
} else if (number=10) {
gotoAndPlay ("Scene 12", 1);
} else if (number=11) {
gotoAndPlay ("Scene 13", 1);
} else if (number=12) {
gotoAndPlay ("Scene 14", 1);
} else if (number=13) {
gotoAndPlay ("Scene 15", 1);
} else if (number=14) {
gotoAndPlay ("Scene 16", 1);
} else if (number=15) {
gotoAndPlay ("Scene 17", 1);
}
}