ActionScript 3.0 :: Disable Warnings Mode By Default?
Sep 8, 2010
Is it possible to disable warnings mode by default in AS3?Each time I create a new .fla I have to go to File > Publish Settings > Flash > ActionScript 3.0 Settings > Warnings Mode.While I'm there, I also take off "Automatically declare stage instances".It's so boring. Is there a default .fla template file that I can edit, or do I need to poke around in JSFL - either to find a toggle, or to copy a template file from somewhere else?
I get the following warning when I run my application:
warning: incompatible embedded font 'Arial' specified for spark.components::Label (Label104).This component requires that the embedded font be declared with embedAsCff=true.
The application I am working on is a mix of Halo and Sparks components as I am migrating it to Flex 4. The text that is showing in the text fields is defaulting the systems serif font. There are a few problems with this warning.
1) I am not embedding any fonts in the application. I am not even assigning the Arial font to any of the components.
2) If I check the "Use Flash Text Engine in MX components", then all the text fields in the app throw the warning. Not just the sparks text fields.
Why does flex 4 think that I am using an embedded font with the sparks components? Is there any way to get around this warning and have the text fields use a non embedded font?
I've recently started working with an application written using Adobe Flex 3. We're using several deprecated functions and unfortunately we can't remove these dependencies.
The documentation says to set -show-deprecated-warnings=false into the Compiler Additional Options. This isn't accepted, but I've found that using -show-deprecation-warnings=false will be accepted by the dialog, but gives an error about declaring the option twice when I try to compile the project.
Ideally, I'd like a way to disable the warning on a case-by-case basis. disable the warnings either per-file, per-project or globally?
IntelliJ displays yellow markers in the scrollbar on the right for warnings. Is there a way to disable warnings or just the yellow markers in the scrollbar?Follow-up: The file in question is from Adobe Flex SDK 4.1 frameworks/projects/framework/src/mx/controls/listClasses/ListBase.as. I have all inspections disabled. I've also disabled the JavaScript Intention Power Pack plugin. I have Highlighting Level set to None. With all this I still see warnings.
I am building a project where I use an external API loaded from the web, and I also load files locally. As I understand it, I cannot load both local and external files without causing a security sandbox error.Once I open the API it seems to try and listen to mouse events and such, and causes a securityIts really annoying since I am trying to trace some debug outputs but I can't read them as they get overwhelmed by the error messages.I know I cannot fix it, but I would simply like to disable these warnings. Is there any way?(please don't post solutions to fix the error, I tried all of them)I just want to disable the messages.Here is the error message:
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?
Is there a reg key or custom GPO out there that will let me default Flash Player to open in Low Quality mode? Whenever a flash site opens, it opens in High Quality.Using Win 2003 SP1, with IE6 with Flash Player 9.0.
Is there a way to disable the default flash player pop-up that comes up when you right mouse click while playing a flash presentation? It currently comes up with about flash and quality settings.
SWF caching has bit me quite a few times now. I want to debug in the browser because that's where the swf will run. But Firefox sometimes caches local files incorrectly, thinking that it has the latest version when it doesn't. This can cause a huge headache with debugging, causing me to wonder why something doesn't work no matter what I do.
The workaround I use is to create a custom html file in bin-debug that loads the swf with a random string appended so Firefox never caches it. This works fine, but every time I start a new project, I need to remember to do this.
I am working through the examples in the PaperVision Essentials book and I keep getting this trace when publishing:INFO: Viewport autoScaleToStage : Papervision has changed the Stage scale mode.This is also making the object I am using smaller than it should be. Is there an easy way to disable this feature? There has been no mention of this in the book as of yet.
// Block Papervison3D trace outputPapervision3D.VERBOSE = false;that is, a global variable for enabling/disabling the trace outputs of my own program. I come up with creatinga class and putting a static boolean member variable. But there is something I'm not sure about: How to useit...For example: every time I need to do a trace, would I have to put this ? -->if( MyClass.VERBOSE ) trace("whatever");So it isn't needed to instance the object because a static variable is used. That's the way, isn't i
I wanted to make a video player that has normal mode and fullscreen mode. The part I am having trouble understanding is how to handle the video once it gets set to fullscreen. Do I just use the current video or do I get a high quality version of the video to show during fullscreen mode? What would be best practice for this situation?
I have a set of users who run my application in non debug mode. Off late they have been reporting lot of issues. But I am not able to debug as there is no log file.Is it possuible in flex 3 to do logging in a file without running in debug version. I understand trace only works if we run application in debug version.
I'm trying to follow along with a basic animation tutorial online using ActionScript. It mentions to switch to expert mode from normal mode, but says that to do this, I need to click on a blue arrow with a box around it(which I don't see anywhere)? Where would I click to switch to expert mode? Is expert mode needed to animate certain things(I'm working with a movie clip)?
I have been trying to test my application to make sure that all the important classes can serialize/reload themselves properly (especially those which implement IExternalizable):
[Test] public function testMyObjectSerialization():void { var myobj:MyObject = new MyObject();[code]....
And I would like to be warned when I try to serialize a strongly-typed object which does not have a [RemoteClass] set (because that almost certainly represents a bug in my code).So, is there any way to configure the AMF serializer to give warnings?Also, it seems like this might be possible using services-config.xml... But the documentation seems to imply that services-config is channel-level, and I'd really like it if my unit tests could run without talking to the server (and I'm not using LCDS, so a bunch of the services-config wouldn't apply to me anyway).
I've got an ActionScript 3 source file (.as) that has hundreds of untyped variables. This file works perfectly although it outputs a warning for every untyped variable which gets me ~800 warnings clogging the Error panel in my IDE.
Although warnings are helpful in my other source files, I want to suppress warnings for this one .as file, because I'm in no mood to specify data types for them all.
I'm using FlashDevelop 3 on Windows 7, and compiling an AS3 AIR project using the Flex 4 SDK.
I use FDT for my flex programming and there are some warnings that I want to suppress.for example:Private function is never used. Found 'list_ itemRendererFunc' at line foo column bar.I actually paste this function name as a string to a datagroup's itemRendererFunction property. how do I mark this line that will not show the warning?
I am taking XML type variables in model and binding with component properties in action script code. Its perfectly fine if its unable to bind the child nodes or other sibling properties of the XML itself and I dont want eclipse to generate this run time warning! I did suppress warnings in flex compiler using "-show-binding-warnings=false". But that does not seem to be working for run time binding warnings. Warning: unable to bind to property <'some node name'> on class 'XML' (class is not an IEventDispatcher)
I have a lot of the following warnings:Duplicate variable definition.variable 'elem' has no type declaration.Illogical comparison with null. Variables of type Boolean cannot be null.Will they affect the performance of my flash application? Will they affect the compiling time?
In Flash Professional CS4, I get "migration issue" warnings when I use mouse/keyboard input handler names such as onMouseDown, onKeyUp, etc., even though I have added event listeners for them. These names are perfectly legal for functions, but since these were automatically fired in ActionScript 2.0, we are now (albeit sensibly) warned that their use is no longer automatic in AS3.I understand the purpose of the warnings, but they aren't useful for me. I want to suppress these warnings, but without suppressing any other warnings, which I generally do find useful.I found a flex-info.xml style document in the Flash User Data dir.[userdatafolder]/Adobe/Flash CS4/en/Configuration/ActionScript 3.0/FlexInfo.xml.However, this file contains a disappointing comment: <!-- Flash does not support most flex-config options. -->, and doesn't seem to respond to my directives even after restarting flash. Found an issue "Erroneous, annoying "Migration issue" warnings" on Adobe bug tracker. A fix is confirmed for the Flex SDK, but no mention of Flash...
I save alot of web pages while surfing the web , but when opening them I always get the annoying "Adobe has stopped a potential unsafe operation" security warning. Most times this is from a little flash banner, ect.Is there anyway to disable this warning? The computer doesn't even have internet access.
I did have the capability to compile my mxml files via the browser on my local machine. I've had to do a reinstall but now I'm having problems trying to compile.My current setup is:
I've tried compiling in Firefox 3.5, IE8 & Chrome but all receive the same error:
Compilation results
Errors, warnings or exceptions were found while compiling null.Visit the online Flex documentation or API reference for further information. An error occured on the server.
Server error is: 'Error occurred in server thread; nested exception is: java.lang. NoSuchMethodError: flex.license.License.(Ljava/util/ Map;Ljava/lang/ String; Lflex/ license/Logger;)V'
I've followed the instructions from adobe:
http:[url]....I can compile without an issue via CMD but I prefer to use the browser as I find that much faster.
I have a demo application using Adobe Air that accesses my own SSL web service that uses a self-signed certificate. In .NET clients, I can explicitly handle (and ignore) certificate warnings and suppress them via the ServicePointManager.ServerCertificateValidationCallback. I've examined the URLRequest and URLLoader classes but haven't found anything.
I'm using FDT and Flash 10, and have just discovered Flixel, but when I import the source into my classes directory I get loads of errors and warnings.
I have fixed the errors, after reading this post, but I still have a lot of warnings left.
Is there any way to stop FDT from giving me warnings on a specific package? I guess Eclipse would have the same option?
Those who had started with AS2.0, mostly complain about AS3.0's restricting warnings and errors displayed at the compile time. Which was almost too weak ( and made to feel breeze ) in AS2.0 .However, recently, i was undergoing a hell time debugging, that made me realise how AS2.0 makes a slip, because of weak compilation.
Code: class MyClass { var abc:Number ;[code].....
in the above trace statement, one would always get undefined ( but no compile time error ) even when i am trying to call getAbc() which is actually a private function.
What's the simplest way to see where warnings and errors come from, on vizzy?
Here's a few instances I see on my mac. Quite different from the screenshots we can see on its wiki:
Warning: 'flash' has no property 'prototype' Warning: 'StageVideo' has no property 'prototype' Warning: 'AsBroadcaster' has no property 'addListener' Warning: 'AsBroadcaster' has no property 'removeListener' Warning: 'flash' has no property 'prototype'
[Code]...
I can now see VizzyTrace.swc is required for many vizzy functionality. But even after considering all that (and enabling debug flag on the FLA, replacing trace for trc, setting up the "extra options" and adding the SWC) I still see nothing.
Now every trc line is prepended with an almost useless (I can control traces just all right and easily induce where they came from) file name and line number under Flash Professional's own output when I "Test Movie" but not even then will Vizzy show those lines. Not to say after the SWF is compiled and I'm tracing on the browser.
I have bought a chat package, and over 9 months i am running into the problem hat it is gooing slow with more users online. So i decided to install the "flash debug player 10" and check what exacly is happening. Within 2 minutes the flashlog.txt (error log of debug player) was 195KB I will now paste the error messages that are dumped into flashlog.txt tha occur the most and i think it seems as if the error message comes from a loop, because there are so many of these warnings: