Flash Help
- Started
- Last post
- 5 Responses
- donal
OK, i have a movie clip on the main timeline, and within it i want to go to a random frame and stop. Why wont this work?
_________
function randRange(min:Number, max:Number):Number {
var randomNum:Number = Math.round(Math.random()*(max-mi...
return randomNum;
}gotoAndStop(randRange(2,5));
_________________
Thanks in advance
- mr7400
bump. I'm trying to hop to a random frame too. Any help?
- JazX0
on (press) {
numswatted = 0;
amount = (random(10)+1);
while (amount>0) {
hw = (random(100)+1);
duplicateMovieClip(_root.Fly_, "mc"+x, x);
setProperty("mc"+x, _x, random(400));
setProperty("mc"+x, _y, random(400));
setProperty("mc"+x, _xscale, hw);
setProperty("mc"+x, _yscale, hw);
x++;
amount--;
var numfly = x;
}
}
- JazX0
on (press) {
swatamount = (random(10)+1);
if (x0) {
removeMovieClip(("mc"+x);
x--;
swatamount--;
}
if (x
- JazX0
onClipEvent (mouseUp) {
varnumswatted = _level0.numswatted;
}and then something like:
onClipEvent (mouseUp) {
varnumfly = _level0.x;
}
- JazX0