ActionScript 3.0 :: Slow Response In Game

May 13, 2011

I have created a Mahjong solitaire game in which 144 tiles are laid out on the stage, variably stacked up to four levels. You find two matching tiles that have free sides and have no tile sitting on top of them, click them both, and they are removed. Object is to remove all of them.

My problem is that I'm getting about a one second lag when I click the second of two matching tiles. I'm pretty certain that the bottleneck is in the functions that get called when any tile is clicked, that determine if it's free on one side and above. I have never "stepped through" or otherwise debugged before. Is there a way for me to step through my code and get some indication of what the specific problem is?

View 1 Replies


Similar Posts:


Flex :: Get Extremely Slow Response Some Php Script

May 12, 2011

I am fixing up a php script to receive a byte64 encoded image and store it to database

Here is my problem the script takes very long time, sometimes up to 5 minutes, to respond when flash calls the script(via a post request)

(i test it with a very small image)

if i remove the byte64 encoded data from the request it loads fast, and if i call the script from the browser with no data it is fast

i tried removing all php script from the script file so no php is run, and with data it is still slow.

View 2 Replies

ActionScript 3.0 :: RemoteObject Slow Response Time On Sub-sequent Calls

Jul 20, 2011

Calling RemoteObject service for creating new record. On success of method I am adding new record in existing list collection. Functionality is working fine however for subsequent calls of adding new record response time of the services is increasing. For first call it takes 3-4 seconds while for 5 on words it takes 10 secs and so on. If I remove addItem(obj) line in below code in green, response time is quiet stable 4-5 seconds.

My code is as below

for each (var item:Hierattrmetadatanode in arrHierarchyData)
{
//Add new Item
if(item.hierattrmetadatanodeid ==

[Code].....

View 0 Replies

Delay Server Response In Multiplayer Game?

Apr 20, 2011

I'm making a multiplayer flash game where at a 'table' more than two players will be playing. Its turn based. Using zendAMF can the server response be made to wait till the player whose turn it is has made his move, so that it will appear to be real time?

I don't want to use polling since I read that it is not a very good practice. Instead can this method work? Lets say its player A's turn and the other players B,C,D are waiting. Their flash clients send a request to the server to get any updates. Instead of responding immediately can the server wait till player A has made his move and then send its response containing player A's move details to other players B,C,D?

Edit: Added image.Found the name of this method. Its called Long polling. So can Long polling be done with PHP webserver running apache and using a flash client which sends the requests?This is how the other players waiting players B,C,D are expected to be treated.

View 1 Replies

ActionScript 3.0 :: Slow Game After A While

Mar 1, 2011

I'm making a game with as3, it is very simple, but when I almost have finished the first "beta" of my game i realized that it become slow later a while playing the game (2d) is only a ball (player) that shot mini balls against enemies that run to the player.I have trying a lot of time to solve my problem by myself, but i couldn't.Only i can realize that the problem is about the creation of the enemies and mainly about the creation of the shots, this is created by a class called "scene" that through a addEventListener (Enter_frame), create and move this objects. After a while, when the game has created a lot of enemies and shots, the game begin to become slow; i delete the object and the variables with remove child and delete(), respectively but the problem continues.[code]

View 1 Replies

Adobe - Slow Down A Flash Game?

Apr 26, 2010

Basically the objective is to click on certain targets, which upon doing so would destroy the target and garner you points. I've written a macro to help me until the point where its impossible to even see the target more than a mere flicker, (maybe even less than that, i cant see it with my eyes). But its possible because i believe others have done so. (Maybe on slower comps?)

Anyway the question is, how would it be possible to slow down the flash game?
I've thought of a couple of ways that could work but i'm not sure how to implement them.

1. Slow down the cpu speed? (smth like that? how?)

2. As the game progress the time the targets appear and stay up is reduced. Maybe theres a variable controlling all of this, isit possible to modify the address of this variable? freeze it or smth?

View 2 Replies

ActionScript 3.0 :: Slow Motion For My Game?

Oct 6, 2010

Am doing a fighting game and i want to make it in slow motion if CTRL key is pressed.. http:[url]...I saw similar effect in another game..

View 6 Replies

ActionScript 3.0 :: Game Running Slow In A Browser?

Oct 17, 2010

my game running very slow in all the browsers but its OK as a standalone application.

View 3 Replies

Haxe/Flash Game Loop Slow Down Over Time?

Mar 29, 2012

I have a game loop written in Haxe/Flash. For some reason it slows down over time. At first it runs reasonably, but my laptop fan starts spinning up and it gets slower and slower. Why would this happen?

import flash.display.StageDisplayState;
import flash.display.StageScaleMode;
import flash.display.MovieClip;

[code].....

View 1 Replies

ActionScript 2.0 :: The Flash Game Runs Too Slow In A Browser?

Feb 28, 2006

I have made a plattformgame in flash, and after I had published it I tested it (local) when it was embedded in a browser, and it hacks and laggs! But when I play it in the flash player it works just fine.

I removed all the heavy graphics, lowerd the fps to 30fps and removed all the code so now its just the bassis left (gravity, collision, key checking etc. and yes u should bounce on the walls giving a wall jump effect).[URL]

View 4 Replies

Flex3 - Flex HTTPService SOAP Response Cannot Be Decoded Raw Response?

Feb 6, 2010

I am trying to connect my flex app to a CFC I have which calls a method. It's to test a login control, and when i put the correct credentials in, it comes back with the error: "SOAP Response cannot be decoded. Raw response: ".

[Code]...

View 1 Replies

Flex :: Flash Computational Engine For A Connect-4 Type Game Be Too Slow?

Mar 20, 2010

I was just fooling around in my spare time and have made this cool interface and game-playing code for a Connect-4 type game, written in Flex and playable by 2 human players in Flash. It accurately detects wins, etc. I'm smart enough to know that I've done the easy part.Before I dig into an AI for game play, I wanted to ask if this is the kind of thing that can really be handled computationally by a Flash plugin. It seems to me that for every turn up until the end there are 8 possible moves, 8 responses to each move, etc. So wouldn't a perfect engine have to be able to potentially see 8^8 moves (over 16 million), and a fairly good engine see up to a million? I don't know game coding so this is new to me. What's a reasonable move horizon for such a game to be able to see?

View 1 Replies

ActionScript 3.0 :: Game App Runs Fast In Simple Loader And Slow In Other Loader?

Apr 28, 2010

I'm feeling a bit low now as I have been suffering this for months. A simple loader loads my simple game and runs VERY FAST on even slow pcs BUT when I build this other loader, it goes quite slowly and I don't know where the app is going wrong. WHERE is the processing consumptoin coming from out of my app.

[Code]...

View 1 Replies

ActionScript 2.0 :: Getting XML From A PHP Response?

Apr 17, 2010

I have code that was written in Actionscript 3.0 that sends a request for information to a php file which sends a XML response back.

Now I'm trying to adapt an old program using Actionscript 2.0 to send a similar request to the same php file and I'm unable to get access to the XML string :

I opened up the debugger and I see my XML data on the names column under the this pointer, in the locals tab. My data is there but is inaccessible to me. Something has definitely gone wrong

Here's the code to begin the request

Code:
{
reply_lv = new LoadVars();
send_lv = new LoadVars();
// load these vars

[Code].....

I tried to fill in IsLoggedInCallback with a bunch of code to extract the XML but it was all garbage and I felt it wouldn't be much help if I left that code there.

View 2 Replies

C# :: Response.Redirect Causes Download Of The Swf?

Feb 20, 2010

I have a flash image slider with a button below each image. When i press that button, the user is redirected to a new page where i add that image product to my cart.

The problem is that after doing the adding, i want to redirect the user back to the initial page.

[Code]...

View 1 Replies

How To Get Response Header (Flash)

Apr 28, 2010

I need to make any request to this url and get Http Rewspons header (like this one:HTTP/1.0 200 OKContent-type: video/x-flvCache-Control: no-cacheI do not need reponse body at all. After I get header need to emmidiatly close connection to that url (so stop to obtain data from it)

View 1 Replies

Actionscript 3 :: Parsing An XML Response

Jan 19, 2011

i have this response from a socket server:

[DataEvent type="data" bubbles=false
cancelable=false eventPhase=2
data="Segunda vez"]

How can i parse this info?, for example if i want the data value.

View 1 Replies

ActionScript 3.0 :: Flash Is Not Getting Response From PHP?

Dec 19, 2010

I'm doing a form for a website but flash is not getting the response that is suppose to from the php file. When i go to the php file with

Code:
navegateToURL

the browser shows the the correct values, which means that is getting the info from the as3 class correctly. The problem is getting the response back to let the user know that everything is done.

View 7 Replies

ActionScript 2.0 :: Flash8 SendAndLoad Not Getting Response

May 28, 2010

I'm having trouble with a sendAndLoad-script:

Actionscript Code:
listener.onComplete = function(file:FileReference):Void{filename = file.name;var sender_lv:LoadVars = new LoadVars();sender_lv.filename = filename;var reciever_lv:LoadVars = new LoadVars();reciever_lv.onLoad =

[Code]......

It uploads a text file to my server (I'm running the .swf file locally) and it works. But I need to load the contents of the file into my program, and when I do the special norwegian characters "� � �" turns into jibberish. So I wrote a script to change the encoding, but when I send the filename to the .php file, I don't get a response.

View 1 Replies

ActionScript 3.0 :: Receiving Response From Php Script

May 25, 2010

I have built a simple contact form that sends t an email address via a php script. This works fine, (message detalis are sent as URLVariables, which are the data property of a URL Request whose method is set to POST). The PHP script returns a boolean value to confirm that the details have been successfully forwarded to the mail server:

[Code]...

View 1 Replies

ActionScript 3.0 :: Response Checking System?

Feb 16, 2011

I need to create a function which checks for the existance of a word within an answer... and if the answer contains the'keyword' then it is deemed as correct..For example, if my keyword is 'dalton' I would like to accept any answer which contains 'dalton', for example :the four daltons, Daltons Weekly, the dalton, whatever else dalton might say..

View 2 Replies

Java - Modifying AMF Response At Runtime?

Dec 2, 2009

I have built a simple flex application (using BlazeDS) which displays "Person" details by invoking a java service using flex remoting. So, my Person class looks something like this:

class Person {
public int age;
public String name;
}

As a java developer, here is my understanding: When I run the front flex app in my webapp, an RPC call is executed and BlazeDS does the hard work of invoking the right method, obtaining the result as an object, converting the object to AMF format (serialization). And, then the web/app server sends back this response to the requesting app over http. The flex app now does the task of deserializing the object received in AMF format and somehow make use of it.

Here is my question: I would like to modify the response before it reaches the Flex application by modifying the attributes of the person object. I have a Filter in place to do this. However, I am not sure as to how I would deserialize the AMF stream, modfiy the object, serialize the object back into the stream / reconstruct the stream somehow.

Is there a way to doing this? Where should I start? If the question was too confusing, here is a shorter version: How do I modify the response stream of content type AMF-X, before it reaches a flex app using a java filter?

View 3 Replies

Flash :: Possible To Request Gsessionid Without A 302 Response?

Dec 22, 2009

I'm writing a google gdata API client in Flash/AS2 (sadly, moving to AS3 is not an option at this time). Logging in via ClientLogin works fine but subquent requests will return a 302 redirect that includes a gsessionid I am supposed to include with future requests to avoid the 302s.

Flash/AS2, AFAIK, does not allow me to actually query an http error response body in any way, so there's no way for me to actually see this gsessionid after the 302 is returned. Is there a gdata api call which will return me a valid gsessionid inside an HTTP 200 response if I already have a valid GoogleLogin auth token, or is this not possible without a man-in-the-middle proxy?

View 1 Replies

Flash :: Handle Server Response In AS3

Mar 9, 2010

I have an asp page that loads a response " user=exists " everytime I try to update a database record (when of course the record already exists!) How can I handle this response with AS3 in Flash?

View 1 Replies

Actionscript 3 :: Responder To Get A Response Before Going To The Next Statement?

Sep 23, 2011

I feel like I must be doing this wrong. I've got a function that is supposed to construct a query based on an API's description of available fields. Here's what I've got:

var query_fields = getQueryFieldsFor(sobject_name); Need query fields for the next statement, which actually does the query

public function getQueryFieldsFor(sObject:String):String{
//helper function to get queryfields for given sobject
var queryFields:String = '';

[Code]...

I know this doesn't work, and I think I understand why. However, I keep running into this type of issue and I believe I'm just thinking about it/designing it wrong. So what's a better pattern here?

View 1 Replies

ActionScript 3.0 :: Get Response Body When URLLoader Gets 404?

Jun 21, 2009

I m using URLLoader to send a post request. The server returns HTTP code 404 in case the parameters are wrong, and puts the error message in the response body.Get resoinse body when URLLoader gets 404

The problem is that if the response has code 404, the IOError listener is called and I can't see the body of the response.

Is there a way to tell the URLLoader to ignore HTTP codes and always call the Completed listener?

Or maybe there is a way to get the response body in the IOError listener throw the IOErrorEvent? I couldn't find such a way.

View 2 Replies

ActionScript 3.0 :: Get Nodes Of An Xml Server Response?

Aug 3, 2010

I'm using the twilio API [URL] and AS3 to make a post to the server. The server responds with an xml, which you can see on the link above.

How can I access the individual blocks of the response? I currently get all the xml with the 'sendCompleteHandler' function.


The code:

ActionScript Code:
private function dial () : void
{
send_variables = new URLVariables();

[Code].....

View 0 Replies

ActionScript 3.0 :: Sound Played With Each Response?

May 2, 2011

I have a multiple choice quiz that needs to have a sound played with each response. So if the user selects the correct response, they get the ding sound. If the user selects the incorrect answer they get a buzzer sound.

[Code]...

View 1 Replies

ActionScript 3.0 :: URLRequest Caches Response?

Oct 23, 2007

I'm writing URLRequests to the server (to return XML). The code works fine. I'm able to retrieve and use the XML. The problem is that (at least in the development environment) the Flash player caches the response. The result is that subsequent requests of the same URL don't hit the server. This is a problem as I'm developing the server side scripts and they're not perfect the first time :-). Is there a way to: 1. clear the cache, or 2. tell Flash not to cache results?

View 5 Replies

Android :: Cross Platform Game - IOS : Develop A Very Simple Game For Iphone/ipad?

Mar 7, 2012

I am going to develop a very simple game for android and for iphone/ipad I have the option to develop it in cocos2d or in adobe flash air (i am not a developer, but i have 2 developers who are offering me the service)I have a developer that states that cocos2d is better and other one that states that adobe flash air.I want it in cross platform.the cost offered by both developers is the same..i have heard that adobe air has the flaw that it is very slow, is this real? if you had the 2 options which will you use to develop your game and why?

View 1 Replies







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