all groups > flash (macromedia) > january 2004 >
You're in the

flash (macromedia)

group:

Why isn't this working? (k)


Why isn't this working? (k) W. Kirk Lutz
1/1/2004 7:22:43 PM
flash (macromedia):
_global.numero=29;

_global.termKim = random(_global.numero);
//creates a random number between 0 and 29

_global.jump = (_global.termKim+68);
//68 is the frame number + 1 to compensate for the 0 in the random generator

gotoAndPlay(_global.jump);

When I debug, all the variables are correct. Especially the _global.jump,
but for some reason, it won't gotoAndPlay.

Ideas?

-Kirk
Re: Why isn't this working? (k) W. Kirk Lutz
1/2/2004 12:45:22 AM
That didn't work. This is very weird.
_global.jump=71
Frame 71 has a stop function and one word on it to let me know if the random
jump is working.

-Kirk


On 1/1/04 8:22 PM, in article bt2h42$90g$1@forums.macromedia.com, "stwingy"
[quoted text, click to view]
Re: Why isn't this working? (k) W. Kirk Lutz
1/2/2004 1:19:05 AM
Okay, it appears to be working now for some reason. Same code, but now it
works, go figure.

-Kirk

On 1/2/04 12:45 AM, in article BC1A6FA2.13C93%kirkebay@toadmail.com, "W.
[quoted text, click to view]
Re:Why isn't this working? (k) stwingy
1/2/2004 1:22:10 AM
I don`t think you should keep using _global once it has been declared.
try this and see if it works

_global.numero = 29;
_global.termKim = random(numero);
//creates a random number between 0 and 29
_global.jump = termKim+68;
//68 is the frame number + 1 to compensate for the 0 in the random generator
gotoAndPlay(jump);

Certified but not by Macromedia!
AddThis Social Bookmark Button