Flex :: Turn Off Globally All Objects Drop Shadows And Special Fx's And Increasing Performance?

Jun 8, 2011

Is there any way to turn off all special FX's and especially dropShadow's on all objects inside the application ?

View 2 Replies


Similar Posts:


Optimization :: Increasing Flash Performance When So Many Sprites On Stage

Oct 22, 2010

I am setting out for a visualization project that will generate 1000+ sprites from dynamic data. The toolkit I am using (Flare) requires some optimization. I am trying to figure out some optimization techniques for Flash. How can I make Flash run fast when there are so many sprites on the stage, or maybe there is an optimization technique that doesn't involve generating so many sprites?

View 1 Replies

ActionScript 3.0 :: Bitmapcanvas - Add Shadows To All Objects - Background Bitmap (won't Change During Level)

Oct 21, 2010

I'm working on a tile based game, inspiredb by tutorials from the book "the essential guide to flash games". Please have a look at [URL] -- edit: by the way, the game idea is by no means mine, but i want to replicate the old game "sensitive" from the c64 [URL] for learning purposes I want to add shadows to all objects that stand in the water. However, since I want to keep my sprite count to a minimum, I have put all objects that don't do anything in a background bitmap. The best solution I can think of is to have:

1) a background bitmap (won't change during level)
2) a background shadows bitmap (won't change during level)
3) a sprite layer
4) and a sprite shadow layer at every screen, but this seems like a lot of work for just shadows.

View 5 Replies

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

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

Flash - Timer Object With TimerEvent.TIMER Event Globally Accessible To All Objects?

Feb 16, 2012

I am working on a very simple game in Flash. I want to make all the animations framerate agnostic, so that I can change the framerate without affecting the flow and speed of the game.I read somewhere that if you want to do that, you simply create a Timer object and attach an event listener to this timer.

What if I have many objects that have to listen to the same timer? See the code to understand what I am trying to do. At this stage nothing breaks, but the event does not fire.Here is the Main class, the one that runs on swf execution:

public class Main extends MovieClip {
private static var _stage:Stage;
private static var _timer:Timer;

[code]....

View 1 Replies

IOS :: Drawing Images Off-Screen Results In Performance Drop

Sep 19, 2011

Im writing an IOS game using AS3. Here's the problem- I have an image on the screen that moves around. When the image's y value goes negative (the image is partly off the screen), the frame rates bottom out. I've gone over my code pretty thoroughly, even threw together a few test projects just to experiment. In all the test I do, whenever there is an object that is off screen, even partially, the frame rates drop. It's making scrolling backgrounds impossible. BTW, I'm using Packager for iPhone and a 3G (not 3GS). Frame rates are normally 24 with no problems

View 2 Replies

Flash :: Sudden Drop In Performance On An IPad AIR Application With RenderMode

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

Performance :: Multiple Remote Objects - Best Practices

Oct 3, 2011

I have an application with about 20 models and controllers and am not using any particular framework. What is the best practice for using multiple remote objects in Flex performance-wise?

1) Method 1 - One per Component - Each component instantiates a RemoteObject for itself
2) Method 2 - Multiple in Application Root - Each controller is handled by a RemoteObject in the root
3) Method 3 - One in Application Root - Combine all controllers into one class and handle them with one RemoteObject

I'm guessing 3 will have the best performance but will be too messy to maintain and 1 would be the cleanest but would take a performance hit.

View 3 Replies

ActionScript 3.0 :: Spinning Many Objects With Slow Down The Performance

Aug 27, 2009

I have 500 small objects, I would like for them each to rotate (spin) constantly, I have seen a few methods for doing this, but what would be the best way to do this so performance doesn't slow down?

View 9 Replies

ActionScript 3.0 :: ENTER_FRAME On Objects Vs LOOP Performance?

Jun 8, 2010

So for my current project I am to handle A LOT of objects on the screen. Which made me wonder what approach I would go about the ENTER_FRAME event.I have 2 samples below, one where my BulletControl object calls on every bullet object's 'FrameFunc()' in its own ENTER_FRAME event with a for loop.The other sample every object has its very own ENTER_FRAME, so it works independently.

[code]....

Also for each burst of bullets I create about 50 objects or so; a lot of object instantiation is never good with such a short interval which makes me wonder if the garbage collector has a hard time keeping up.

View 1 Replies

ActionScript 3.0 :: AddChildAt - Performance - Add Objects At Runtime?

Mar 24, 2010

I was wondering if addChildAt is slower than addChild, and if so, how bad it is. I want to add objects at runtime, constantly, but they must be behind the player, so I'd use addChildAt to index 0, I figured. However, would this damage my performance? It's for my scrolling platform engine, I want buildings in the 'background' only on the display list when they actually can be seen (code for this is working fine, runs at about 160 FPS last time I checked).

So, should I look into another solution? The only other solution I know of is to have a second 'layer' sprite in the engine, but since it's scrolling, I'd have to scroll 2 sprites all the time. Don't know the best thing to do here

View 8 Replies

Flex :: Way To Set Scrollbar Skin Globally In Spark Application?

Dec 21, 2011

I have a custom skin class that I want to apply to all scrollbars. Is there a way to set this globally in a Flex Spark application?

View 3 Replies

IDE :: Images Randomly Turn Into Red Objects After Re-open Flash?

Sep 13, 2009

I have images which I have been broken to resize them to suit my design. What happens is that every now and then when I re-enter my flash movie these images turn red and I have to do the whole image imputing and breaking apart process once more.......

View 4 Replies

Flex :: Remove Hover / RollOver Effects Globally On Spark Components?

Oct 28, 2010

My goal is to remove all hover feedback from the UI. The motivation is for testing touch interface prototypes and not wanting users to have the queue of interactivity when the mouse hovers which they won't have with a touch interface.

I have a partial solution but it has two problems:

Requires an event handler on each component. Flickers on hover.

protected function ui_suppressHover(event:MouseEvent):void
{
var b = event.currentTarget as UIComponent;

[Code].....

View 2 Replies

Flex :: Increasing The Width Of DropdownList?

Apr 15, 2011

I want to adjust the width of DropDownList control in flex 4. I could do it by editing the skinclass and setting the PopupAnchor's Property "popUpWidthMatchesAnchorWidth" to false, but in my application I have to do it using actionscript.

View 3 Replies

ActionScript 2.0 :: [F8 ] Animate Shadows With McTween2?

Oct 10, 2006

Can you animate shadows with mcTween like all the other filters, or not? I'm guessing no because I didn't see it in the documentation, and i tried a few variations of what it might be.

View 5 Replies

ActionScript 3.0 :: Flash Box2D & 2D Shadows

Jul 24, 2011

I'm working on a AS3 Game Engine at the moment utilizing Box2D (2.1a) and 2D shadows. I have Box2D down but I've yet to find a way of drawing 2D shadows efficiently.I was following this tutorial only to be disappointed by the speed at which it rendered the Box2D shapes and the shadows.I was getting the vertices of the objects via this function:[code]And using it to draw the shadows via the AS3 graphics api.Can anyone recommend me a better more efficient way of programming 2D shadows?

View 2 Replies

Flash :: Flex 4.6 Increasing Socket Receive Buffer Size?

Apr 5, 2012

I am having an issue with sockets where the data I'm sending is getting truncated on the client side (Flash/Flex). The data that is sent by my server is full and in tact, but flash does not wait the appropriate amount of time before firing an event saying to read the data. This results in the data not getting fully read and (as such) I can't parse the object out of it after that. We are exploring the possibility of stripping the object into smaller chunks, but the idea is for it to be as lightweight as possible so we would much rather get it to work the way it's supposed to than patch in a temporary solution.I'm not entirely sure if referring to it as the receive 'buffer' is correct, as some computers are able to receive all of the data and others are having it truncated (which means the buffer is adequate but flash isn't waiting the appropriate amount of time to dispatch the event for whatever the reason).

View 1 Replies

ActionScript 2.0 :: Flip Page Effect With Shadows?

Oct 18, 2005

How do they do this flip page effect and the gradient shadow behind?

[URL]

View 2 Replies

ActionScript 3.0 :: Flash - Make Dynamic Reflexions And Shadows?

Dec 28, 2010

Well, everything is in the title! I have an flash animation of a turning object, then I would like to add something under it that follows its movement, such as a dynamic shadow or a dynamic reflect.

View 1 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

Game Engine :: Flash Multiplayer Turn By Turn?

Oct 7, 2011

I'll start off by saying I'm a newbie, just putting that out there. How do you make a turn by turn multiplayer flash game? I don't know if an engine is made in AS3, PHP, Javascript, or whatever,I made my game already, it's just that it isn'tmultiplayer yet. Basically, there are lines, and each player crosses out a number of lines, and the last player to cross out a line is the loser. I want it where one user crosses out some lines, then presses End Turn, then the other does their turn and then presses End Turn to allow the other player to move his cursor. But how can I get both players to see the same frame and only have one player have the ability to move the cursor during a turn? Is there some easily adaptable multiplayer engine for flash for newbies out there

View 2 Replies

Php :: Special Characters In Flex?

Jan 4, 2010

I am working on a Flex app that has a MySQL database. Data is retrieved from the DB using PHP then I am using AMFPHP to pass the data on to FlexThe problem that I am having is that the data is being copied from Word documents which sometimes result in some of the more unusual characters are not displaying properly. For example, Word uses different characters for starting and ending double quotes instead of just " (the standard double quotes). Another example is the long dash instead of -.All of these characters result in one or more accented capital A characters appearing instead. Not only that, each time the document is saved, the characters are replaced again resulting in an ever-increasing number of these accented A's appearing.

Doing a search and replace for each troublesome character to swap it for one of the none characters seems to work but obviously this requires compiling a list of all the characters that may appear and means there is scope for this continuing as new characters are used for the first time. It also seems like a bit of a brute force way of getting round the problem rather than a proper solution.Does anyone know what causes this and have any good workarounds / fixes? I have had similar problems when using utf-8 characters in html documents that aren't set to use utf-8. Is this the same thing and if so, how do I get flex to use utf-8?

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 2.0 :: Drag And Drop Objects With Line Between?

Oct 15, 2004

I was wondering if there was anyway to put a line between two or more dragable objects... The only example I can think of is [URL]

View 8 Replies

Flash :: Drag And Drop Items Between Different Objects?

May 17, 2009

It is possible to drag & drop items between different flash objects?

View 1 Replies

ActionScript 3.0 :: Drag And Drop - Objects That Remain Behind

Aug 23, 2011

I am trying to create a drag and drop tutorial by building a chemistry set.

The object of the tutorial is to drag and drop the appropriate instruments onto the target to build the kit.

I have the chemistry stand which had been designated as the target and five instruments which the user can drag and drop though only one will connect to the stand and send the user to the next frame. The instruments that are not correct snap back to their original position.

This process continues over 6 seperate frames.

The whole drag and drop process works fine, the only issue is that when the user picks up the wrong instrument and it snaps back to original position, and the user then picks up the correct instrument and send the user to the next frame, the wrong instrument (only the one that was picked up) is behind all the other new objects.

How do I get the wrong object that was picked up in the previous frame to not be in the new frame?

I have also included the actionscript for both the correct and and incorrect instrument.

Correct Instrument:

package Chem.DragDrop
{
import flash.display.MovieClip;
import flash.events.MouseEvent;

[Code]....

View 0 Replies

ActionScript 2.0 :: Drop - Gravity - Objects Will Bounce Off Each Other

May 16, 2008

I have a file where two objects fall from the top of the stage and bounce and then eventually stop (using gravity and hit test). You can grab the objects (a ball and a box --- each has a button symbol n the movie clip) and toss them and they bounce off each other and off the 4 sides of the stage. The issue is when one of the objects is dropped directly on top of the other object, after it stops bouncing, it slides down until it hits the bottom of the stage (in this case, the box slides down in front of the ball, and the ball slides down in back of the box).

[Code]...

View 8 Replies







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