View Full Version : Dynamic text assignment problems in MX04 [renamed]
saad
May 25th, 2004, 07:29 PM
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?
Yeldarb
May 25th, 2004, 11:47 PM
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";
}
saad
May 26th, 2004, 09:22 PM
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.
claudio
May 26th, 2004, 09:53 PM
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.
maximum_flash
May 27th, 2004, 12:40 AM
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
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.