Actionscript :: Does Flash Suffer Performance-wise From The X And Y Being Too Large

Jul 1, 2011

Let's say a movieclip inside another movieclip has a x of 9000. Is that bad? Is there a cap?

View 1 Replies


Similar Posts:


Performance :: Optimization - Improving Performance With Large #'s Of Objects

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

ActionScript 3.0 :: Manipulate The Free Transform X-wise And Y-wise

Aug 18, 2011

is there a way to manipulate the free transform x-wise and y-wise using Actionscript rather than the traditional design approach?

View 3 Replies

Actionscript 3 :: Flash Performance With Large Bitmaps?

Apr 20, 2011

i have a AS3/FL10 based application that renders/animates/filters (blur) large PNGs (1 per view) (about 1100x900 px, roughly 2mb). Due to the fact that the fans start spinning like crazy on my notebook, i wonder if this is considered "bad practise". Unfortunately i need transparent images, so JPG is not a choice. Additionally, the PNGs are loaded dynamically, so embedding the files to the flash file (for utilizing flash jpg compression) is not a choice either.

How do you guys deal with large bitmaps in flash

View 1 Replies

ActionScript 2.0 :: Detecting Clock Wise And Anti Clock Wise Rotation

Apr 3, 2005

can you tell me if it is possible to detect if an object is rotating anti clockwise or not? at present i get x,y co-ords and use the code below to rotate it which is fine. now i could write an if statement to check if rotation is negative or positive but because rotation can be negative and positive when rotating clockwise and anti clockwise this wouldnt work.

[Code]...

View 2 Replies

ActionScript 2.0 :: Detecting Clock Wise And Anti Clock Wise Rotation?

Apr 3, 2005

at present i get x,y co-ords and use the code below to rotate it which is fine. now i could write an if statement to check if rotation is negative or positive but because rotation can be negative and positive when rotating clockwise and anti clockwise this wouldnt work.

Code:
theAngle = Math.atan2(diffy , diffx);
this._rotation = theAngle*360/(2*Math.PI);

[code].....

View 2 Replies

Performance :: Database Vs XML For Large Static Data?

Apr 7, 2012

I'm developing an application using Flas Builder / Flex for Adobe Air. This application will be processing a large set of static text (100 - 200 MB) using a variable set of processing instructions.The target platforms will be iOS, Android and Desktop.The data set can be either one large XML file or broken into a bunch of XML files about 3MB each.This will be decided at design time.From your experience would it be better to store the text in an Adode Air database or a set of XML files for best performance (including speed and battery life)?What other considerations should I take into account?

View 1 Replies

Flex :: Performance - Printing From AIR/Flex Application Causes Large Files Being Sent To Printer?

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

Actionscript :: FMS Live Video Stream Suffer If Chat Uses Same NetConnection?

Sep 22, 2009

Have a Flex/FMS web meeting app that has multiple custom components - live streaming camera, chat, slide dec.

Each component does its share of communicating through the FMS server. Should all three of those things share one NetConnection object in the application or will the live video stream suffer when users chat or the meeting presenter advances slides and such?

View 2 Replies

Is It Wise To Keep Developing In 2.0

Jun 12, 2009

Is it wise to keep developing in 2.0? Will Flash player ever cease to compile it? AND Any good articles you know of on converting 2.0 to 3.0?

View 4 Replies

Performance :: Performance - Hold MouseDown To Increase Speed/power?

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

ActionScript 3.0 :: Random Shortcut Found - Is It Wise To Use?

Sep 29, 2009

I recently stumbled across a piece of javascript that when I converted the best I could still worked within my flash file perfectly. One thing that stood out the most was the var tag:

ActionScript Code:
var apple, pears, orange, cucumber;
instead of
ActionScript Code:
var apple;
var pears;

[Code]...

View 5 Replies

Performance :: Flex - Using Nested ViewStacks Cause Performance To Decrease?

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

Performance :: Improve Flex Performance For Invisible Views?

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

ActionScript 2.0 :: Place A Second Gear On Stage And Have It Rotate Counter Clock-wise

Aug 16, 2002

I have a gear on stage which rotates using this script.....

[Code]...

//Here is my question. I want to place a second gear on stage and have it rotate counter clock-wise. If I wish to use the same script (this script makes for smother rotation.) What modification do I need to make?

View 3 Replies

Flash :: CS3 (mac) Sluggish Performance?

Dec 2, 2009

PowerMac Dual 2.3 GHz G5/8 GB RAM I suspect I'm not using best practices, as this is my first project, but my the flash file is getting very sluggish to work on. The swf (AS 2.0) publishes fine and runs OK off the server and in the browser, but the Flash application is slowing down to a crawl making work very unpleasant indeed. Not that it was ever that fast to begin with. The Flash file size is presently 15 megs. It's got a log of symbols in the library and a lot of small jpgs used as navigational buttons, and utilizes many instances of the loader component to dynamically load external files: Is this too much of a demand on the app's resources? I do think that some of this has to do with a poorly implemented user interface (first attempt by Adobe to make Flash "look and feel" like a CS app), but I'm sure there are other issues.

View 1 Replies

Flash Cs4, And Other Compilers - Difference In Swf Performance?

Mar 8, 2009

I was wondering, because people do suggest this, but i've never explicitly had it verified:does the flash cs4 compiler actually generate a SWF file, that is more optimized and faster, than the flash cs3 compiler?and what about other compilers? custom as3 compilers, are there faster ones?I don't mean the time it takes to compile the .fla, but the speed of the SWF file.

View 1 Replies

ActionScript 3.0 :: Getting The Performance From Flash Using Curves?

Aug 28, 2009

I've been working on simple animation for a client, which you can see __here__.I have a few issues with performance. I have popped a fps counter at the top left and it seems to only run at around 30 fps on my laptop, I need it up to 60 though.

i was just wondering if anyone had any tips about getting the best performance from flash.I have used Shape instead of Sprite on the curves, which gave a slight improvement. Surprisingly I didnt notice any change in performance when I dont use the blur filter on the curves, which was odd to me.

View 5 Replies

Internet Explorer Flash Performance?

Nov 11, 2009

Steps to reproduce my problem:Create simple dot DisplayObject in flash

dot.graphics.beginFill( color);
dot.graphics.drawCircle( 0, 0, 2 );
dot.graphics.endFill();

Draw dot to bitmap many times a frame

bitmapData.draw( dot, null, null, "normal", null, _smoothing );

Test FrameRate in combination of browsers,flash plugin versions on Win32

Expect:

Framerate to be close in most cases

Observed:

I am seeing a 25% decrease in framerate under IE7 using Flash10b.ocx(10.0.22) and 50% decrease in framerate using Flash10c.ocx(10.0.32). PLugins under FireFox, Safari and in Mac OSX don't exhibit the same slowdown.

I would like to get help/confirmation on a performance problem that I see in Internet Explorer. The Adobe and Flash community is great on the Internet but I have been surprised to see no information on this, just a few reports about movie playback on 10.0.32 vs. 10.0.22.

My guess is that in IE flash plugin is passing draw calls to Win32 and that this is slow.

Instead of drawing each time on the bitmap using draw, cache the draw calls to a bitmap and use CopyPixels. When I do this the performance is the same across browsers, within 10%.

bitmapData.copyPixels(dot.bitmapData,dot.bi tmapData.rect,new Point(dot.x,dot.y),null,null,true);

Loop I am using:

function enterFrame(e:Event) {
bitmap.lock();
for (var i:int=0;i<particles.length;i++) {

[code]....

View 2 Replies

Test The Performance Of A User's PC In/for Flash?

Apr 8, 2010

I'm a developer on nice space MMO using Flash. On new PCs performance is quite good, but some features shouldn't be enabled on older PCs because the framerate drops to shit if we do. Flash wasn't made for this, but hey, pushing boundaries is fun.

An example is fullscreen mode. Of course every user can manually enable it, but "advertising" it to a user with and oldie PC would be a bad idea - but for the Alienware crowd it would be dumb not to.

So I want to find out how "capable" a user's PC is to decide if I should enable or disable some features for him.

View 2 Replies

Flash :: CPU Performance Proeblems With Animation?

Jun 24, 2010

Well I'm having a hell of a time trying to get my CPU down under 45% when running my current application. I've tried all sorts of optimization tricks and tips with little success and I'm at a point now where I need a fundamentally different approach.

Problem and Current Approach In the main view of my application I have a single enterframe handler.I have my frame rate down as low as 10 fps. This handler notifies 16 seperate movie clips to draw wedges of varying angles using Lee Brimelow's wedge class. So, 16 times every enterframe, I have 16 movieclip graphic clear, begin fill, draw wedge, endfill all being co-ordinated by my single enterframe handler.

[Code]...

View 2 Replies

Flash - AS3 CPU Performance With 100 MovieClip Copies

Aug 16, 2010

I have a movieclip wich has a simple movement of a simple shape. This movieclip is copied many times to create a graphical effect. As the number of copies, or the complexity of the movieclip increases, CPU usage goes up. As from 90 copies, when I keep moving the mouse over the swf movie in a circle, playback stops (hangs). When the mouse movement stops, the swf continues again at the right position, as if calculation has continued, but updating the display has not. Now this is a quadcore pc, and we're 2010. I can't believe or accept that 100 mc's is the maximum number of movieclips that can be rendered. The obvious question is what can be done to optimize CPU performance ?

I'm using AS3, flash player 9.
Movieclip is a simple rectangle shape which moves along 1 axis.
var myLinkage:Class = Class(getDefinitionByName(getQualifiedClassName(McToRepeat)));
var newMC:MovieClip = new myLinkage();
containerMC.addChild( newMC );

View 1 Replies

Professional :: Flash SWF Performance Testing And Data?

Jan 10, 2011

Looking for some recommendations on tools that can be used independent of the source (that is just on the swf) to check for Frames Per Second, total size and how often the movie loops.
 
Needed for Flash Banner ad quality assurance.

View 5 Replies

Best (performance) Way To Animate 55 Png Images In Adobe Flash?

Jan 14, 2010

We are using Adobe Flash to produce software for an interactive touch screen kiosk.I have 55 1024x768 24 bit PNG images.I want to play them (fairly regularly...once every 5 minutes or so) without them stuttering but can't find a good dependable way, main problem is I think Flash GC's them after an arbitrary idle period.Reason I'm doing this is because the FLV attempts we have made aren't sufficiently high quality.I also looked at using a H.264 but that obscures any other assets placed over it.I have a number of text fields sitting over this animation. The machine in question is a Core2 Duo, 4GB Ram, GeForce 9500GT.

View 1 Replies

Performance :: Flash - Application Slows Down [removeChild]?

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

Flash - Possible To Improve Performance Of Drawing Technique?

Oct 22, 2010

Am currently working on a tool created by a colleague of mine and would like to improve performance. Basically, it's a tool for drawing on screen and uses a combination of Sprites and the Graphics class to draw a line segment every time the mouse is moved when the mouse button is down. Here is the drawing bit:

// on MouseMove
protected function drawLine(e:MouseEvent):void {
if (currentTool.thickness > 0){
//pen
var line:Sprite = new Sprite();
line.graphics.lineStyle(currentTool.thickness, currentColour);
[Code] .....

As you can see, it checks if the line 'thickness' property and draws if it is and erases if it isn't. I did think of using a technique similar to blotting here where it'd draw to a bitmap but I'm not sure this'd give the performance boost I want or if, indeed, there would be any way to have an eraser function. The drawing itself works nicely - this isn't the problem, it's the performance of the subsequent 'drawn' sprites.

View 3 Replies

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

Flash :: AS3 Performance Difference Between Function And Events

Jun 2, 2011

I working on a game project in Flash AS3. I need to pass data from one class (Game) to other class objects (Ships) on EnterFrame and performance is starting to be a issue. I was wondering is there a difference in performance between calling to the Ship a direct function or dispatching an event which the Ship can listen.

another question is where should I put the enterframe function. Is it better to use only one enterframe function and call the methods dispatch events from there, or it will be wiser to put the enterframe in the different objects (Ships)? note: some Ships are inactive most of the time.

View 1 Replies

Jquery :: Animation & Flash Combined / Bad Performance / Low Fps

Jun 16, 2011

I'm currently working on a project where i use SWFObject to include a flash header (some fire animation). Also I'm using jQuery for serveral animations and effects on the page, like Imagesliders and hovering effects.The problems I got:high CPU usage: about 50% on a Intel Q9550 low frame rates of jQuery animations due to the high CPU usage.The flash animation seem to stuck when i trigger any jQuery animations or effects.I tried to remove serveral jQuery animations and simplify the page, but also with only an hover menu, the flash animation stucks and the jQuery animations are laggy when hovering the menu.The only browsers where my page runs smooth are Chrome and Opera, but only with high CPU usage. FF3&4 and IE7-9 produce bad frame rates all time.I tried to reduce the jQuery internal fx interval, that seems to help, but the animations were not smooth any more. Am I the only one having this issue, i could not find any other postings here with that topic?!url...We changes the graphic card of the computer, from a GeForce 8400GS to a 8800GT. After that, the animation run smooth. I never thought that it would be the graphic card ^^

View 1 Replies

Flash :: Performance Decrease From Not Specifying The This Word In A AS3 File?

Jul 15, 2011

I know there are performance loses if you don't specify variable types explicitly. Do ActionScript/Java developer in general prefer the use of the in classes or no?

public function hello():void
{
this.speaker.says("hello");
}

vs

speaker.says("hello")

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved