Flash: Improve Performance By "breaking Apart" Graphics And Creating Symbols?

Mar 18, 2011

In flash, if you have a complicated graphic (like a complex diagram) that doesn't change much and you want to move/zoom/rotate it around, then does Flash perform better if you convert all graphics into symbols? Or does making symbols slow things down?

Background: Sometimes, you do things for so long, you can't remember why you started in the first place. Whenever I import graphics in flash (like from Illustrator, for example), I select everything, press cmd-B (or ctrl-B on Windows) repeatedly, "breaking apart" everything until I can't, anymore. Then I press F8 and create a symbol.

That's just what I've done for like the last 10 years. It's to the point where I don't even think about it, anymore. I vaguely remember doing this after learning that performance improves when you break apart graphics to create a symbol.

Now, I have a problem: I'm translating/rotating/scaling a massively complex, static diagram and it's too sloooow. I'm trying every technique I can think of to speed things up—every little bit counts.I've read this link and lots of others but I haven't come across the topic of creating symbols.

Summary:should I go back through and make everything a symbol? Should I go through and make everything NOT a symbol? Which is faster?

View 1 Replies


Similar Posts:


ActionScript 3 :: Improve Performance Using Blitting For Graphics?

Sep 9, 2010

I am a bit new to using blitting for graphics. But I have worked up a few demos myself, and I have been reading a lot of information on the methods used. One common theme I have been seeing though is that all of them brute force rendering; drawing the farthest back object first and stepping through all other objects. even drawing objects that are going to be completely overlapped. The reason all of them say this is that any kind of testing to see what should be drawn actually takes more time than just drawing everything with no checks. Is there any kind of way to detect what should be drawn, that will run faster than just drawing everything?

View 1 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 3.0 :: Flash CS5 IDE - Symbols And Nested Symbols And The Difference Between Graphics And Movie Clips And Scoping

Oct 26, 2010

I'm working through a book called Foundation Game Design with Flash, and I'm finding the Flash IDE confusing. I've been programming for several years, so working with AS3 directly is far easier than trying to understand symbols and nested symbols and the difference between graphics and movie clips and scoping issues and all that -- when tied into the IDE.

How many of you who are making games in AS3 also use the Flash IDE? Can anyone recommend a resource that is AS3 heavy and Flash IDE light? I don't care how much time I may or may not save by using things like the timeline, I just want to understand what I'm using.

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

Flex :: How To Improve Performance Of App

Jan 19, 2010

I am working on a flex application. The application occupies 100% of the browser screen, but it is slow to load. How should I improve the performance, what are the best techniques one should follow for improving the performance of a flex App. I did try some stuff though, I am not using relative layout instead i am using absolute layout and putting the buttons/images etc at exact places in a Canvas, still i feel it is slow. Can I profile the App or flex code to see where exactly the app is taking the maximum time to execute.

View 3 Replies

Media Server :: How To Improve FMS Performance

Mar 25, 2011

I have two FMS 3.5 streaming servers... Both have Windows Server 2003 x64 with 16 GB of RAM..I'm streaming from a common storage and my Application.xml file is like this:

<Application>
<StreamManager>
<VirtualDirectory>

[code].....

View 7 Replies

Flex :: Improve The Performance Of PurePDF?

Jan 31, 2011

I am using the Open source PurePDF library in my Flex AIR application. The problem is performance:It takes 100% CPU usage and too long to generate a PDF.

I have done some analysis on it and find that the text writing in pdf is expensive. That's why I need to know how I can improve the performance. Are there any fonts for which pdf generation is less expensive, or is there some setting or tip that can make this process somewhat better in terms of performance? secondly in case of images the ImageElement generation is very expensive when writing that element to PDF. Is there any way to reduce the processing?

I found a way to reduce the ImageElement generation processing by resizing the image using flex and by then passing the small image's bitmap data to the image element. It works fine, and i have reduced the time of execution to a good extent. is there any way to tell PDF to work in chunks or divide the work in such a way that it may take more time to complete but won't block the GUI while the PDF is being generated?

View 2 Replies

ActionScript 3.0 :: Improve Performance By Using Multiple Air Apps?

Feb 17, 2012

I have a program that is decently complicated in one area and the rest is simple. The complicated stuff is data crunching, pretty much. Would I get an increased performance by doing the data crunching in a second app and just having it send the couple bits of info I want from it to my other app that would be the front end of the program? Or is this a dumb idea? I know air doesn't by default multi thread, so I was just trying to think of a "work around."

View 1 Replies

Flex :: Improve The Performance Of The SQLite Database?

Apr 26, 2011

Background: I am using SQLite database in my flex application. Size of the database is 4 MB and have 5 tables which are

table 1 have 2500 records
table 2 have 8700 records
table 3 have 3000 records
table 4 have 5000 records
table 5 have 2000 records.

Problem: Whenever I run a select query on any table, it takes around (approx 50 seconds) to fetch data from database tables. This has made the application quite slow and unresponsive while it fetches the data from the table.

How can i improve the performance of the SQLite database so that the time taken to fetch the data from the tables is reduced?

View 3 Replies

ActionScript 3.0 :: Improve Performance With Embedded FLVs

Aug 6, 2009

I've been building a project that is essentially a mashup style editor. You pick from a series of clips, arrange them in order, and then can play them back. Originally it was a series of FLVs that would play one right after another, one stops, next one starts, but this wasn't seamless. So I switched to embedded FLVs inside of SWF files.

Locally this performed better, the videos were more seamless, no gaps where the video disappears because the FLV isn't ready to play, but online it brings the flash movie to a crawl. In total I have 56 video files, either FLV or SWF. There are 4 "tracks" that play simultaneously. Each track is made up of multiple clips. I'm preloading the videos so they are ready for playback when the time comes. The videos are alpha transparent.

View 0 Replies

ActionScript 3.0 :: Improve Real Time Graph Performance?

Mar 20, 2011

I'm working on a simple real time graph. The data is polled every 50ms, and each poll translates to a line one pixel wide, (data_point) pixels high. The graph scrolls such that new data is on the right, and the oldest values eventually fall off the left.

My solution is embarassingly brute-force, in that I just use theMC.graphics.clear() and a loop of lineTo()s for every graph refresh. While this displays correctly (and I can control the refresh rate to mitigate the CPU burn), it should be painfully evident why I want to move away from this method.

I want to programatically scroll or pan the entire graph one pixel to the left (and drop the leftmost line), and then just draw one new line on the right, but I can't figure out where to start. Assuming such a thing is possible in AS3, would someone be so kind as to point me in the right direction?

View 2 Replies

Actionscript :: Improve The Performance And Reduce Code Size?

Jan 25, 2011

There is so many ways to improve the actionscript performance and reduce code size. Let share what tricks you can come up with.

View 1 Replies

ActionScript 3.0 :: Improve Graphics Drawing Angle?

Dec 28, 2009

I have a code, that draws a horizontal line, then it turns into a slope, and at the end of the slope it draws a circle. Here's a code:

Code:
var xspeed:Number = 1; // defines increments for x of slope
var yspeed:Number = 2; // defines increments for y of slope
var hspeed:Number = 5; // horizontal line increments

[code]....

Create document 800x700 and put this code into main timeline. Now test movie As you can see, everything works great. But there is a problem. The circle is being drawn at 0 degree angle. But I want the circle to match the angle of the slope, so it looks like the slope and the circle are both at the same angle.

View 3 Replies

Actionscript 3 :: "destroy" The Camera Object For Improve The Application Performance?

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

Actionscript 3 :: Use Adobe's "Stage3D" To Improve The Performance Of My 2D Applications And Games?

Jan 18, 2012

I've been doing a little bit of reading about Stage3D, which will be a new API used with Flash Player 11.Will this API improve the performance of 2D rendering (Vector) in any way, or will the library be used primarily for rendering 3D?

View 3 Replies

Flex :: Improve Datagrid Performance When Using Itemrenderer With In Datagrid?

Jul 31, 2009

For poor performance reasons, the DataGrid will cache checkboxes and reuse them for different rows. If you have 50 rows, it won't create 50 checkboxes. It will create as many checkboxes at are visible, plus a few more for padding, and then reuse them as you scroll. This is why you need to explicitly manage their state. How can improve it ? How can fixed checkbox value ? i used checkbox like below But checkbox doesnot remembering the values

[Code]...

View 3 Replies

Animation Containing Images - Swapping Graphics Symbols

Jun 6, 2009

I've created a small animation containing a few images which i have converted to graphic symbols so I can alpha-tween them. I tweened the first image then copy/pasted the frames to do the next using the swap symbol function. When swapping the symbol I selected the desired symbol and pressed okay but nothing happened - I then dragged the desired symbol out of the library and onto the stage then deleted the previous symbol. As soon as I did that the new symbol I had just dragged out switched back to the previous symbol. [URL]. I have CS4 V10.0

View 1 Replies

Flash 8 :: Creating Vector Graphics For Import?

Aug 24, 2009

I've done some searching and can't find a good answer on workflow for importing vector graphics in Flash 8.I created a layered Photoshop file and opened in Illustrator to save in .eps format. I'm using Flash 8 and Illustrator CS3. I've tried many options (including trying to simply create my buttons in flash), but can't seem to get the buttons to import properly for scaling purposes into Flash.

View 3 Replies

Professional :: Creating Duplicate Symbols - Linkage

Mar 2, 2012

I have created this madly complex menu rollout with buttons, tweens lables with dynamic text- you name it..... now I want to duplicte this symbol and change its colour to make a new menu tab, but when I try to do this (by going into it and duplicating each nested part- I am getting a linkage error- **Warning** The linkage identifier 'Symbol1' was already assigned to the symbol 'Symbol 2', and cannot be assigned to the symbol 'Symbol 1', since linkage identifiers must be unique.

View 2 Replies

IDE :: Reposition Symbols On The Stage W/out Creating Motion?

Feb 9, 2010

I am using CS4. I have my Flash all setup and running perfect now w/ motion tweens etc.But I am trying to reposition some of my symbols on the stage (to get them into better alignment with other symbols), and every time I do this the move is recorded, and when I play back it shows the motion of my position change on my tween.Is there a way to simply move my symbols w/out losing their current tween, but not creating a new motion effect?

View 1 Replies

ActionScript 3.0 :: Creating MovieClips (and Other Symbols) Without Custom Classes

Oct 24, 2009

I have a designer who has created a set of movie clips that I want to create instances of using ActionScript, but all I have is the name of the MovieClip as it's stated in the library (not the instance name).

Is there any way to create instances of the MovieClips using just their name? Or do I have to create separate classes for each?

View 3 Replies

ActionScript 2.0 :: Creating Font Symbols With Specific Characters?

Jul 16, 2007

For this project I'm working on currently I've had to create a Font Symbol and select 'Bold' in order for the 'Bolded Font' to display in my dynamic text box.I'm just wondering, is there a way to only select uppercase A - Z to be embeded with the Font Symbol, rather than the whole font?Note I had to create the font symbol as this is the only way to attach the 'bolded' version - Else I would be using the 'Embed Font' button and selecting which characters I wanted.

View 3 Replies

Vector Graphics - Creating FXG For Flex?

Aug 9, 2010

I need to create flash content dynamically- towards that need to build images. I need help on two points

a) are vector graphics always better than raster graphics on size/ do vector graphics take longer to render

b) do we have open-source tools to create fxg files to import into flex builder

View 3 Replies

ActionScript 3.0 :: Creating Visible Buttons With Graphics?

Oct 30, 2010

Everytime when i want to create invisble button for banner....i run into same problem and don't remember how i FIX it.Now I clicked on FILL COLOR then i just can't create a RECTANGLE because it fill the retangle with color.I tried for NO STROKE n NO FILL then it won't created a RECTANGLE.I created the layer for  BTN. Select the Rectangle tool in the Tools panel.Now NO STROKE then what do i have to do with FILL COLOR ...

View 3 Replies

Professional :: Creating Visible Buttons With Graphics?

Oct 30, 2010

After created the button with graphics.On Button Layer...UP show circle, OVER show blank,DOWN show square, HIT show black circle.Can you tell me it is OK because after I add layer for ActionScript still getting errors.I want to make sure i did right up to this point.

View 1 Replies

ActionScript 3.0 :: 1119: Access Of Possibly Undefined Property Graphics Through A Reference With Static Type Flash.display:Graphics.

Oct 8, 2009

i am trying to receive in my function as a parameter either a shape or a sprite and then access their graphics property, but this gives me an error:

Code:
public static function makeRect( obj:DisplayObject, ...
var g:Graphics;
if(obj is Sprite){

[code]...

//1119: Access of possibly undefined property graphics through a reference with static type flash.display:Graphics.

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

Improve Font Appearances In Flash?

Feb 24, 2010

I am using Helvetica Neue 43 Light and it looks great as Dynamic Text without embedding the fonts. It is nice and bright, sharp edging, etc.

I notice though, that on other computers, the Helvetica Neue font is displayed as Times. I am presuming because these other computers do not have Helvetica Neue installed on their computer system.

If I embed the fonts, it looks the same as static text or text that I have broken apart. The fonts are thicker and has blurry edges.

Is there any way of getting around this and have my Helvetica Neue looking sharp and crispy like dynamic text without embedding the fonts.

View 3 Replies

ActionScript 2.0 :: Improve SEO For Flash Websites?

Oct 8, 2008

I would like to know if anybody could help me to learn more on improving SEO for flash websites as it is not as good as for html websites (if i am not mistaken).I have heard something about xml that can be used to improve your SEO for all your flash websites.

View 1 Replies







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