I am trying to debug a .as script but I do not have the ability to use trace because I am using mdm zinc. Is there another way I can see the state of variables in the .as?
Printable View
I am trying to debug a .as script but I do not have the ability to use trace because I am using mdm zinc. Is there another way I can see the state of variables in the .as?
Use dynamic textfields? They can be updated via a loop, enterFrame or setInterval.
gparis
I tried that but the problem is I don't seem to be able to get my dynamic text fields to update.
In the .as file I put
_root.txt_progressbar.text = "combo.selectedItem.label: "+combo.selectedItem.label;
But nothing changes. Any ideas how to overcome this?
try _level0. i never use root >_<
Sorry im a big newb, :D If you havent seen by any of my posts. (perhaps you could help with one hehe)
also is the text on your main stage?
That didn't seem to work either.
needs a loop, as i said earlier.
gparis
but even with out a loop, wouldn't it update once?
I tried:
OnEnterFrame = function() {
_level0.txt_progressbar.text = "combo.selectedItem.label: "+combo.selectedItem.label;
}
and
function wait() {
_level0.txt_progressbar.text = "combo.selectedItem.label: "+combo.selectedItem.label;
clearInterval(myTimer);
}
var myTimer = setInterval(wait, 1000);
Not sure if I have the syntax right but neither worked.
if zinc allows for it, use http://demonsterdebugger.com/
it's a great little tool.
Should be ok, but it was coming back with an error saying that the MonsterDebugger could not be loaded. I put in the line
import nl.demonsters.debugger.MonsterDebugger;