I want to have a variable which changes from time to time based on certain parameters.
For Example:
var poop:Number;
onEnterFrame = function(){[INDENT]if(donkey==1){
[/INDENT][INDENT][INDENT]poop = 2;
[/INDENT][/INDENT][INDENT]}
if(donkey==2){[INDENT]poop = 5;
[/INDENT]}
[/INDENT]}
But it doesn’t work. I can’t seem to change the value of “poop” with code. It only accepts a value that I place, ex. var poop = 2, but that doesn’t let me change it.
This is Flash MX, BTW