onClipEvent (load) {
_root.acc = 100;
}
acc is a dynamic text, but when I run the movie it gives an undefined error. What do i do?
onClipEvent (load) {
_root.acc = 100;
}
acc is a dynamic text, but when I run the movie it gives an undefined error. What do i do?
what are you trying to do? make your dynamic text box display “100”?
if so, this is what your code should look like:
onClipEvent (load) {
_root.acc.text = "100";
}
Im trying to set a variable which is going to be 100 but its not working when I type in
onClipEvent (load) {
_root.acc = 100;
}
the above doesn’t work either. This is in Mx 2004.
Where are you placing that code? It should be on a movieclip or if you want it on a frame use simply _root.acc = 100;
It would be better if you provide the error message.
just place it on a frame and use _root.acc= 100.
like claudio said, if you want it like that it should be on a clip.
sam
:: Copyright KIRUPA 2024 //--