14 Replies Latest reply on Jan 24, 2011 6:26 PM by miguel8312

    Is there an easy way to suppress errors/warnings?

    mike_morales Level 2

      Hey all,

       

      I've run into an annoying problem. I am using a few swc files in my app. In those swc files, I have a public method that will run some code. So, i import the swc's into my FB app, then access those public methods from flashbuilder.  90% of the time, the method runs fine, but 10% of the time, it throws those annoying warnings, explaining that "Cannot access a property or method of a null object reference." when if fact, that method DOES exist??

       

      I know you will only get those errors if you are running a debug version of flashplayer, but I don't want the chance of that coming up for any of my users. There has got to be a way to stop those warning from coming up.  I have gone through my code multiple times, and everything is in order, like mentioned, it works 90% of the time. Please help, thanks in advance! BTW, it throws error 1009 if that makes a difference