system16
04-27-2007, 06:30 PM
hi, im making a simple rpg game in flash and having trouble getting a variable to change on an event.
the command to change is on a frame within a movie clip and the variable is on a frame within a different movie clip. i've used absolute target paths so there should be no way flash is missing the right variable. anyway here's the code:
_root.movieclip1_mc.movieclip2_mc.enemyhealth -= 20;
ive got a trace in there to see if the value changes but it doesnt. hopefully im being dumb and this can be fixed. thanks for any help!
the command to change is on a frame within a movie clip and the variable is on a frame within a different movie clip. i've used absolute target paths so there should be no way flash is missing the right variable. anyway here's the code:
_root.movieclip1_mc.movieclip2_mc.enemyhealth -= 20;
ive got a trace in there to see if the value changes but it doesnt. hopefully im being dumb and this can be fixed. thanks for any help!