# "verbose" javascript

**URL:** <https://forum.kirupa.com/t/verbose-javascript/20803>\
**Category:** flash\
**Created:** [May 13, 2003, 4:26pm UTC](https://forum.kirupa.com/t/verbose-javascript/20803 "2003-05-13T16:26:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![snoken](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@snoken](https://forum.kirupa.com/u/snoken)\
**Post date:** [May 13, 2003, 4:26pm UTC](https://forum.kirupa.com/t/verbose-javascript/20803/1 "2003-05-13T16:26:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 14, 2003, 1:57am UTC](https://forum.kirupa.com/t/verbose-javascript/20803/2 "2003-05-14T01:57:50Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 15, 2003, 9:28pm UTC](https://forum.kirupa.com/t/verbose-javascript/20803/3 "2003-05-15T21:28:42Z")

</div>

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…
