Does Warnings Affect The Performance Of The Flash Application
May 27, 2011
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?
View 1 Replies
Similar Posts:
Jan 22, 2010
From what I hear, getting/setting dynamic properties is a lot slower than regular properties.
But does allowing a class to be dynamic slow down the entire class for regular property getting/setting?
For instance, let's say I have this class (pretend those properties have setters as well):
Code:
public dynamic class Hero
{
public function get endurance():int
{ return _endurance; }
[Code].....
Obviously, calling and setting the "magic" property will be a lot slower, but will all properties become slower to get/set just because the entire class is set to dynamic?
Is it better to not set the entire class to dynamic, and instead create a new dynamic object, "additionalStats" where properties can be get/set to instead?
View 1 Replies
Feb 7, 2011
I have my main application, which contains several instances of a component that create a grid of photos belonging to a certain category. (the grids, and the photos are created dynamically with a loop).
I'd like to be able to click a photo to run a function that loads the large version of the photo into a separate element that is contained in the main application. So I created a Photo component in my main application, but how, using actionscript, do I change the 'currentphoto' variable in my main application from inside the tileview component?
Alternately I could put the function in the main application (probably more logical in the long run), but how would I call it from the child component?
View 1 Replies
Dec 16, 2010
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.
View 1 Replies
Jul 30, 2010
I have a problem with my flash application because after a while that it is running, it eventually starts to slow down. My application involves something that needs to be replicated with the addChild() method. I've read some info on the internet which states that the cause of the slowing down or the lag in the application is that the removeChild() does not remove the child from the memory
View 2 Replies
Jan 13, 2012
We have an AIR application running on an Apple iPad, that occasionally experiences sudden drop in its performance. The frame rate drops from 60fps to 2fps and it never recovers from that. this is only reproducible on iOS 4, but never on iOS 5 - we've checked that on two identical iPads (generation 1)the performance drops occasionally, but always happens when we switch between apps - from our app to another and back very rarely, the performance drop also happens on first start of the app this performance issue does not happen in renderMode=CPU, but this mode doesn't work for us, because the rendering is ugly, especially on rotated bitmaps.
View 1 Replies
Aug 17, 2010
I have a flash application which consist of Grid Components, Button, Label, and Combo-box Components. All these components are used more than 70 times(simultaneously) with in the application. So Its takes too much of memory. So How can I test the memory usage of each component at the time of running. Is there any plug-in available for browsers to find the memory usage. I'm using flash CS3 and ActionScript 3.0. The application suppose to run in browsers.
View 4 Replies
Mar 3, 2011
I get a working application in Flash made that lets the user click to create blocks which subsequently gravitate towards the mouse. I made the exact same thing in Processing too, just to compare speeds.However, when I run the Flash version and add around 15-20 blocks, the framerate drops to 5-10 FPS.In the Processing version I can add ~60 with no noticeable slowdown. What's the deal, Flash?
Links to each version's source:
Flash version
Processing version
Here is the source for each in case you are a wizard and can help just by glowering at the code sternly and telling it to behave:
Flash version:
blocks.fla
import flash.events.Event;
import flash.display.MovieClip;
[code]....
View 1 Replies
Jun 28, 2010
I'm preparing to reorganize & refactory a Flash Builder application. The goals of the reorg are 1.) keep compile times for the part of the project I'm working on as fast as possible, 2.) keep the unrelated parts separate for code reuse. Goal #1 trumps goal #2 if there's a trade-off.
Currently, the app has assets in one project, core functionality AS3 in another project, and the MXML in a third project that links to the other two.
Would moving resources/code into swc libraries help compile time? What about compiling assets into an swf and embedding that into the main application?
View 2 Replies
May 27, 2011
I am using a custom Flex skin to create an active blur/frosted glass effect on the background of floating Panels, TitleWindows, and other containers (similar to http:url....). There is a background image in the Application skin, and potentially any number of other components above and below the active blur component. Here's some relevant code within the skin:
public static const BLUR_FILTER :BlurFilter = new BlurFilter(16, 16, BitmapFilterQuality.HIGH);
private var _bitmapFill :BitmapFill = new BitmapFill;
private var _matrix :Matrix = new Matrix;[code]....
Unfortunately, the performance of this when the component is being resized, and especially when moved, is poor. There is noticeable drag delay and overall slowdown, and this is with only one popped-up TitleWindow in the test application. There is especially poor performance when components inside the TitleWindow are changed (button hover states, etc.)I've attempted to optimized a little bit by avoiding reinstantiation of the blur filter, bitmap fill, and matrix, but this has had little or no effect. I removed the blur at one point, just drawing the Application to a bitmap, and the performance is still poor, so it's clear that it's mostly the BitmapData.draw() call.
I've read about using scrollRect and cacheAsBitmap, but I'm not sure where to apply these properties (or other optimizations I'm not aware of) within the Application or its components.
View 2 Replies
Sep 24, 2011
We have a typical Flash+J2EE application that makes multiple requests from client to server (over Flex remoting), which is taking quite a long time on some client systems (and hence results in poor application performance on such systems).
Now, suspecting issues with network connectivity (latency) on such client system(s), we need to identify how far does it contribute to the slow response of the application (rather than performance issues in the application itself).
So, what are the best way(s) to diagnose this on a client system (Windows)?
Note that we have tried profiling our application, which does not indicate bottlenecks there, so we just need to clearly identify the possible network issues.
View 1 Replies
Mar 31, 2010
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...
View 5 Replies
Jul 24, 2009
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.
View 10 Replies
Apr 1, 2011
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?
View 1 Replies
Nov 22, 2010
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:
* Security Sandbox Violation * SecurityDomain
'http://agi.armorgames.com/assets/agi/AGI.swf' tried to access
incompatible context
[code].....
View 2 Replies
Jun 21, 2011
I am using the Camera on Flash, but when I finish to use, now can I "destroy" the camera object for improve the application performance?
private var camera_atual:Camera = Camera.getCamera();
private var video_camera:Video = new Video(820, 546);
camera_atual.setQuality(0,100);
camera_atual.setMode(550,480,30,true);
video_camera.attachCamera(camera_atual);
this.palco_mc.addChild(video_camera);
View 1 Replies
Oct 25, 2010
I am working on an Adobe AIR (2.0) application that contains a feature to allow users to print documents (such as salary slips). Those documents are originally in PDF format. Due to circumstances we cannot directly display those PDFs in the AIR application (for example using flash.html.HTMLLoader). Therefore we convert the PDFs to SWFs (using the pdf2swf tool, see The SWFs are loaded into the application using a mx.controls.SWFLoader, like so:
<mx:SWFLoader
id="salarySlipImage"
loaderContext="{someLoaderContext}"
[code].....
View 2 Replies
Sep 12, 2011
this is what i'm trying to accomplish; With a click on a movieclip (cannon_mc)a shot is being fired (ball_mc)
The longer mouse is down, the speed of wich the ball is fired with should increase.My question to you is;
What is the most efficient way to accomplish this? With a timer or something like this;
[Code]...
View 2 Replies
Jul 6, 2011
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.
View 1 Replies
Jan 11, 2011
I'm devloping some library classes for flocking/steering behaviours on large numbers of objects (2000+). I'm finding that at < 500 instances, performance is reasonable. As the numbers increase, framerate bogs down.
I've seen remarkable performance with libraries such as Flint or Box2D with ridiculous #'s of particles / objects, so it should be possible to optimize / refactor my code to be a bit better.
I'm aware of the basic optimizations, such as bitwise operations and optimized for loops. Are there any more fundamental approaches I should be considering? For example, currently each instance is a vector-based MovieClip. Would working with BitmapData be more efficient?
View 1 Replies
Nov 4, 2011
Will I take a big hit in performance using nested ViewStacks? Should I strive to handle all navigation in one ViewStack and push children manually or will the affected performance be negligible?
eg.
<viewstack>
<tabnavigator />
<tabnavigator />
<tabnavigator />
</viewstack>
View 2 Replies
Mar 19, 2012
We have a medium size Flex 3.6 application that contains around 20 different page views (managed via a single lazy ViewStack) each having multiple components. Most use custom renderers.All model data is loaded at startup and changes to model instances are communicated via binding and/or collection change events.Once the user has viewed each page at least once, all page views are instantiated and happily listen to update events.Which in effect means that each time a model instance changes, all interested views receive that event and compute derived data or trigger item-renderers.I have tested and confirmed this behaviour in a proof-of-concept application. Even when setting a list to being invisible, it still listens to collection change events and invalidates any renderer affected.What would you do?
View 1 Replies
Jun 26, 2011
I have an array I am using to hold movie clips, and I'd like to be able to change all of them at once using the array. Now, I can do it using array[0,1,2,3,4,5,6,7,8...].changestuff but with 60 or so movieclips, it gets unwieldy. Is there a simpler way to go through the entire array and apply the changes to each movieclip stored within?
View 3 Replies
Aug 1, 2010
I've checked the document: [URL] But still don't find info on how to control the visual affect (like lightness, saturation and so on) of my pc camera. Is that kind of job possible with actionscript?
View 2 Replies
Apr 9, 2010
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).
View 1 Replies
Aug 31, 2009
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?
View 2 Replies
Aug 31, 2010
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.
View 2 Replies
Nov 24, 2010
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?
View 1 Replies
Mar 30, 2011
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)
View 1 Replies
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?
View 4 Replies