Optimize My Homebrew Flex Game?

Jan 5, 2011

I have a question about making flash games in Flex.Right now I am developing a 2D fighting game, here's the link[url]...

However, I am not sure how efficient I programmed the main loop.

Since I have never read a tutorial or seen any other Adobe Flex games out there, I didn't know how to implement them. I have a Timer instance that calls an update function every 24 frames, which updates all of the game objects and views. [code]...

View 1 Replies


Similar Posts:


JQuery :: How To Optimize Flex Image Slideshow

Feb 17, 2012

I have a web page with an image slideshow. JQuery calls a Flex app with a list of jpg images to load and display. Can Flex load and display the first image and then continue loading the rest of the list or can Flex only do one thing at a time (i.e. load all the images and then start the slideshow)? There is a significant delay while all the images load and I need to sped up the slideshow.

View 1 Replies

Flex :: Does Compiler Automatically Optimize Embedded PNG Assets?

Jun 29, 2010

I was trying to further reduce the filesize of a SWF file by optimizing the embedded PNG graphics (using ImageOptim tool). To my surprise, this didn't yield any effect, so I created two test Images:

Original (433883 bytes)
Optimized (273723 bytes)

When embedding either of these assets in a simple ActionScript project, the compiled SWF is ~274kb in size. Which raises the question: Does Flex optimize embedded PNG assets during compile-time? If yes, is there some documentation about the optimization going on? It can't be because of the SWF compression alone, because zipping the images doesn't reduce filesize at all.

Here's the Code for completeness:
package {
import flash.display.Sprite;
public class SizeTest extends Sprite {
[Embed("/assets/original.png")]
private var ImageAsset:Class;
public function SizeTest(){
}}}

View 2 Replies

Flex :: View State Transitions Optimize For Mobile?

Jul 26, 2011

I have decided to go the route of using ViewNavigator and having one view with 3 states. Each state is a "page". It runs just fine on the desktop but when compiled for mobile, the transitions between the pages is really laggy, even for the Samsung Galaxy S. The phone has the 2.7 runtime and I recompiled my application with ADT 2.7, still no performance increase.

I have also tried cacheAsBitmapMatrix on all 3 pages, which are all contained in a VBox and that hasn't shown any significant performance bumps. All I'm changing is the y component of the VBox for each transition.

EDIT: I have done some more research and I am now to the point where I have hardware acceleration turned on and cacheAsBitmap = true and cacheAsBitmapMatrix = new Matrix(). I am also using Stats.as to see the FPS. I notice on my state changes I go from 25 FPS to 2 and then it goes back up again.

View 1 Replies

Flex :: 2d Game Engine For Race Game Built To Webpage?

Nov 19, 2009

I think Flash/Flex is a good aproach for this case.We need to build some like the following

View 2 Replies

ActionScript 2.0 :: How To Optimize .fla

Jan 3, 2008

im working with games ryt now, im animator, my knowlegde in scripting is basic, im just curious with my project right now, i need to provide the .fla the problem with my .fla is to big, 200mb, is there any way to reduce the .fla without editing the inside of .fla,

View 4 Replies

IDE :: How To Optimize Images

Jun 18, 2009

I do many photography flash sites. I usually bring in all the images and then select each one, click their bitmap properties and adjust the quality individually.

View 2 Replies

ActionScript 3.0 :: How To Optimize For Loop

Jul 8, 2009

Think of it as a calendar that picks up the item specified in the given date or something similar to that This sample code works, but does look like it's looping way too many times and potentially kill the system if you have many item in the k_arr...

[Code]...

View 8 Replies

ActionScript 3.0 :: How To Optimize Loaded XML

Feb 4, 2010

When using to load XML file, I have used Event.COMPLETE, Event.Progress, IOEventListener. Since listeners take up memory ressources.

I was wondering if it's a good way and habit to optimize after it has been completed locaded by removing them.

[Code]...

View 6 Replies

ActionScript 2.0 :: Optimize A += 1 So It Counts Over And Over Between 1 And 6?

Oct 4, 2002

All variables start offset by 1 (a=1, b+2, c+3, etc..)I want the values to all start over when they reach 7.You can see the lower half of code displays these images, basically rotating around a circle.What is most efficient way to script? I assume an array.

a += 1; if (a==7) {a=1};
b += 1; if (b==7) {b=1};
c += 1; if (c==7) {c=1};

[code]....

View 14 Replies

ActionScript 2.0 :: Optimize Code For Several Buttons?

Sep 4, 2009

So I have 10 buttons, and I would like them to all do similar actions, but I was wondering if it's possible to optimize the code somehow.

When you rollover the button I would like it to alpha IN, and then when you rollout I'd like it to alpha OUT. Lastly, onPress I'd like to go to a different keyframe in the scene.[code]...

View 4 Replies

Optimize An Image Before Importing It Into Flash?

Oct 14, 2010

Is it better to optimize an image before importing it into Flash, or letting Flash optimize it during the export?

View 2 Replies

ActionScript 3.0 :: Optimize Code For 100 Swfs Or More?

Jan 13, 2011

How can I make this code smaller adding 100 swfs or more.

var seccion:String="home";
var loader:Loader = new Loader();
function loadSection():void {

[code]....

View 4 Replies

Optimize Flash For Search Engine?

Sep 15, 2010

Is there is a way to optimize flash for search engines??

View 4 Replies

How To Optimize Frame Rate In Flash

Jun 7, 2010

I'm building an application in Actionscript using Flash assets, and my frame rate becomes very low (~7 fps) when I attempt to render 20+ assets on the screen, even though most of those assets are stopped movie clips. I've tried setting .cacheAsBitmap to true, which helps a bit, but not enough. What else can I do to get the frame rate up? I've noticed that some movie clips seem to impact it more than others, but I'm not sure how to alter them to make them easier to render.

View 2 Replies

ActionScript 2.0 :: Optimize The Tween Effect?

Sep 12, 2009

i want to know if there is any way i can optimize the tween effect i'm doing. below if the code:

ActionScript Code:
stop();
// import classes needed
import fl.transitions.Tween;

[Code].....

View 6 Replies

ActionScript 3.0 :: How To Optimize Graphics On Stage

Jan 3, 2010

I build games, which tend to run slowly when there are more than a dozen or so graphics being moved about the stage. I feel that my code is clean (I have researched code optimization) but not sure how I can make improvements with graphics. Currently, all graphics are created in Photoshop and imported to Flash as .png (I need semi-transparency, hence the .png format). I then set the image quality to low inside the library.

Every image usually resides within its' own sprite or movieClip. My games seem to slow down a fair deal when an image is introduced (such as a semi-transparent cloud drifting across the screen). Is there a special way to handle images when performance is an issue? I've only heard of stuff like cacheAsBitmap and other such fancy terms.

View 4 Replies

ActionScript 3.0 :: Optimize An Swf Loading Time?

Jan 31, 2010

i'm making a website and it has some parts with flash such as the background. You can see the site here: [URL] You will see that the preloading of the background is too long beacuse i have 4 images as background in the library. the images are 950 x 650 pixel jpegs that in the library use the Photo(compression). So when the swf is on loading it take a lot of time.

View 0 Replies

ActionScript 2.0 :: Optimize Last Section Of Code?

Sep 9, 2010

[code]...

This is all working fine. How can I further optimized the code (make it shorter) for last section?I created the loop for root.d and root.e of xml using for loop and while loop but then it does not add the xml values to the attachmovie text. I don�t know why?

View 5 Replies

ActionScript 3.0 :: Use Apparent To Optimize SWF Files?

Oct 16, 2011

I'm just installing Apparat, and I'm interested in using it to optimize my SWFs.

On its google code page some optimizations are listed out .. sliding window, flowgraph ... so is it possible to make use of these optimizations? how?

I have heard of the -reducer command, does it perform the optimizations? are there other commands you can use? or do you have to build apparat yourself and access it via scala?

View 0 Replies

ActionScript 3.0 :: Dynamic Variable - How To Optimize

Jan 27, 2012

I have this code:
ActionScript Code:
variables.ex1 = this["ex" + exerciseID].text;
variables.ex2 = this["ex" + exerciseID].text;
variables.ex3 = this["ex" + exerciseID].text;
variables.ex4 = this["ex" + exerciseID].text;
variables.ex5 = this["ex" + exerciseID].text;
variables.ex6 = this["ex" + exerciseID].text;
variables.ex7 = this["ex" + exerciseID].text;
But I want to optimize this. I want those variables "variables.ex1, variables.ex2, etc" are dynamic.

View 1 Replies

Actionscript 2.0 :: Optimize Last Section Of The Code?

Sep 9, 2010

XML.onLoad = function(loaded) {
if (loaded) {
buttonArray = [b,b1,b2];

[code].....

View 1 Replies

ActionScript 3.0 :: Optimize Class For Better Performance?

Aug 7, 2009

I've been working with AS3 now for a few months and am making good progress in it (I'm a AS2 transfer student). However, on a project I'm working on I'm having a little issue with performance within the browser. I was wondering if anyone had some tips on how to optimize the following code as I include this object about 600 times in my flash to make a waterfall (which causes resource drain in the browser)?[code]...

View 6 Replies

ActionScript 3.0 :: How To Optimize FLVPlayback Playback

Sep 22, 2009

got some FLVPlayback playback problems on IE7. Videos start after too much time. try and click on the right banners:

[URL]

Did you ever had some similar problem? Do you think that maybe there's some solution? Does FLVPlayback do a progressive download by default? Could raising the default bufferTime (0.1)

View 2 Replies

ActionScript 3.0 :: Use Apparat To Optimize SWF Files?

Oct 16, 2011

I'm just installing Apparat, and I'm interested in using it to optimize my SWFs.On its google code page some optimizations are listed out .. sliding window, flowgraph ... so is it possible to make use of these optimizations?I have heard of the -reducer command, does it perform the optimizations? are there other commands you can use? or do you have to build apparat yourself and access it via scala? I typed "reducer help" on the command line, and it seems that this program performs some of the listed optimizations:[code]

View 1 Replies

ActionScript 3.0 :: Rewrite And Optimize This Ridicules Code?

Feb 9, 2010

How I can optimize this Script?Actually I wanted to have a textPlace that in click on new button, it fade out and fade in.I find out there are some simple way but at last i realized there are lots of problem.for example if I edited symbol txtPlace in itself or If I animate textPlace in main timeline.finaly, I create a loop of fade in and fade out in timeLine.but still for the first button I have problem!i decided to make firs button shown in stage!but there is no way to see that page again!

tamasBaMaSH.addEventListener(MouseEvent.CLICK,clickTAMAS);tamasBaMaSH.addEventListener(MouseEvent.ROLL_OVER,overTAMAS);tamasBaMaSH.addEventListener(MouseEvent.ROLL_OUT,outTAMAS);
function clickTAMAS(evt:Event):void{MovieClip(root).gotoAndPlay("out4");}function overTAMAS(evt:Event):void{   

[code].....

View 1 Replies

Flash :: Optimize The Import Of Swfs In The Preloader?

Jan 31, 2010

I work on a big Flash project as the web backend guy that delivers all the files and assets to the main application SWF. Our last, really big packet of data are all the assets and sounds contained in swf files that are imported during the preloader.Are there any ways to optimize this process in any way? I'm really looking for ideas in any direction, no matter if its in the swf, the process of loading and so on. Also I look for solutions for the first time load (empty cache) and for consequent loads (prefilled cache).

View 1 Replies

ActionScript 3 :: How To Optimize Illustrator Artwork In Flash

Apr 29, 2010

I'm working on a flash project that incorporates a lot of artwork done in Illustrator CS4. I've been copy-pasting directly from Illustrator into Flash, and I add some animations as well. Final file is going to be a one single swf file which will be a part of UI for an application and .net will be the core for this. But now flash becomes unusable slow to respond for actions. My machine is a fast i7 with 6gb of RAM, so I don't think that's the issue. We are going to use this file with dual core atom processors. Does anyone have ideas for alternative importing techniques, optimizations within illustrator, anything at all that will make this more manageable?

View 1 Replies

ActionScript 2.0 :: Optimize Movie Clip Loader?

Sep 6, 2009

I have an image gallery with 50-200 thumbnails / category. I loaded them with an xml file and movie clip loader, but the problem is that I am not satisfied in the way that the gallery is moving. Is there a way to load them faster?[url]...

View 1 Replies

ActionScript 3.0 :: Optimize / Compress Flash Project?

Nov 18, 2010

I`ll be dealing with this few hours now, so I manage to optimize compiled swf file for only 5kb, and I need to achieve 15.

So, what are the options to prevent unnecessary file size?

View 4 Replies







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