Hi,
Is it possible to tell flash to report errors when calling non existing functions etc!?
like: new tryToDoThis(); if you’re missing the class it still doesn’t report anything…
can also be very frustrating when coding with private and public vars within a class and you forget the this.property = … and so on.
Netscapes javascript parser tells you when a non existing function is called or you try to read a property that doesn’t exist.
Thanks
/D
Flash wont tell you. This can be a good thing at times, but bad others (like in your case)
what you can do is manually chek before each attempt:
if (tryToDoThis){
new tryToDoThis() …
etc. though that can be a little repetative and just plain annoying, its about your only solution (that or some variation of if checking to check existance or success)
I was looking for something like
fancyTraceback = true;
but found this instead which might work but requires some extra coding:
__resolve is used to handle all missing properties and also methods I think…
Just to overide this with my own error-traceback mechanism…
Still this wont help when creating new objects with new SpecialObj(); and you forget to include that file…