How do I disable Warning: 'flash' has no property 'prototype' in flash debug trace
I am getting Warning: 'flash' has no property 'prototype' every time I load a swf in my flashlog.txt.
Does anyone know how to disable that warning or all warnings in the mm.cfg file or maybe some other way? 开发者_如何学PythonI use the flash tracing religiously for debugging and have not ever found a way to do this. Thanks in advance.
Modifying mm.cfg
is one way to deal with this.
just set/add the line...
MaxWarnings=1
This will allow FlashPlayer to log one warning only, (setting to zero will allow unlimited Warnings)
However, a better way to deal with this is to use something like...
tail -f flashlog.txt | grep -v "Warning: 'flash' has no property 'prototype'"
So that you filter out the dumb messages.
(if you're on a windows box, install cygwin so that you have *nix tools.)
This is a known problem. I can't remember if it started in 10 or 10.1 but it is happening to basically everyone.
The only work around I have seen out there is disabling the error reporting but then it won't log the actual errors.
Surfing around the web with the debug player is funny everyone's site is spitting out this warning.
Are you using Flash or Flash Builder? Have you gone through the flex-config.xml file in your SDK/frameworks directory, one item in there seems like it might be what you're looking for. Try looking for the following
<!-- Use the ECMAScript edition 3 prototype based object model to allow dynamic overriding of prototype -->
<!-- properties. In the prototype based object model built-in functions are implemented as dynamic -->
<!-- properties of prototype objects (-strict is allowed, but may result in compiler errors for -->
<!-- references to dynamic properties) -->
<es>false</es>
and changing it to true. You can also disable just about every type of warning in there as well as turn on some that normally aren't enabled but sometimes should be.
It should be noted however that none of these "settings" actually work or do anything, and neither does unchecking "Enable Warnings" in the Flash Builder/Flex Compiler settings, or changing your mm.cfg, or even holding an "Advanced Flex Builder Topics" book against the wall with your butt while you punch your nuts into the sheetrock and pray for inspiration.
I just thought I'd point out their existence in case some day Adobe decides to tighten things up a bit and actually implement some of the stuff that they have a zillion settings all over the place for.
精彩评论