Hello, I have a movieclip that I need to click on so that a variable gets changed.
the code of the movie clip is:
onClipEvent(mouseDown)
{
//if (_global.ccc=1)
//{
//_global.ccc=0
//}
//else
//{
_global.ccc=_global.ccc+1
trace(ccc)
//}
}
onClipEvent(load)
{
_global.ccc=0
}
problems:
-
It is supposed that in each click the _global.ccc variable is increased by 1. According to the trace, it does. But in the dynamic textbox doesn’t update.
-
The value is increased every time I click on the entire movie not the movieclip. How can I fix this?