Reputation: 2973
I did suppress warnings in flex compiler using "-show-binding-warnings=false". But what I am interested to achieve is to suppress run time warnings (especially binding warnings - since I am getting data in model mostly in XML structures and it is fine for me if its unable to bind to its nested child nodes) in console (I am working on flex on Eclipse with the flex plug in). Is there a way to achieve it?
Upvotes: 5
Views: 1542
Reputation:
Flex bindings can bind to nested child nodes (by using XML#notifications()). Your code must be doing it wrong (using array access for example). Consider fixing your code instead of silencing the warnings.
Alternatively, avoid the bindings what so ever. Bindings are a way for lazy people to shoot off both their legs. They are fine in prototype / mock-up code, but unreliable / bad in production code.
If you still want to do what you originally asked for. You could do something like this:
if (BindingManager.debugDestinationStrings[destString])
{
trace("Binding: destString = " + destString + ", error = " + itemPendingError);
}
to
CONFIG::logBindings
{
if (BindingManager.debugDestinationStrings[destString])
{
trace("Binding: destString = " + destString + ", error = " + itemPendingError);
}
}
-define=CONFIG::logBindings,false
to your project settings.Upvotes: 2