Flex :: Get A Vague "Socket Timeout." Error On Occasion When I Am Loading My Site?
Jan 7, 2010
I get a vague "Socket timeout." error on occasion when I am loading my site. I make various HTTP requests for PHP data and also am using a Loader() class instance. Can anyone shed some light on where this error might be coming from? I wish there was more of an indication of where the error stemmed from...
Here is my code that I am using.There are multiple problems going on, but the most important is that catch{} catches an error on first load. I have a fade in function that only works if the loader is fully loaded and I know that all of my URL links work, so it can't be that.
public function loadImage(url:String):void
{
this._imageURL = url;[url].......
View 1 Replies
Similar Posts:
Aug 7, 2010
I need to load a dictionary into a game I'm making. It resides in a very large (on the order of 2.81 MB) XML file. While trying to load it, I get an error stating that the script has run for more than 15 seconds. Is there any way I can change the default timeout to allow the file to load?
View 5 Replies
Sep 29, 2009
Flex HTTPService giving timeout error as web service take more time to response. Due to large voueme Is there any work around to handle overcome the error
View 2 Replies
Feb 3, 2010
I got this error and I am not sure what it's about. The last thing I remember doing is adding a clearInterval() method to clear some setTimeOut() intervals varibles. besides that I am not sure what it could be. Not asking for a solution. But if anyone know's any possibilities of what it could trigger that error, maybe that
View 2 Replies
Dec 3, 2010
I am running a socket server using PHP. The socket server runs fine because I can connect to it using PHP.Now, I have a flash application that is trying to connect to it:
this.socket.addEventListener(Event.CONNECT, onSocketConnect);
this.socket.addEventListener(Event.CLOSE, onSocketClose);
this.socket.addEventListener(IOErrorEvent.IO_ERROR, onIOError);[code]....
When I run the application locally, it works! However, when I upload it to my server I get a sandbox security error (#2048). The flash app is actually hosted on the same server as the socket server, and there is cross domain policy file in place.
View 3 Replies
Apr 27, 2010
i got a problem with 'Security error',it happens when i try to connect my XMLSocket (Flex) with my Socket (Java)i have a domain:
alucardeck.mine.nu
i startup my apache tomcat 6.0 and in ROOT folder i have:
policyFile.xml and crossdomain.xml
(i had a doubt about what is the correct filename so i created both)both files contains:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>
well, yes, you can access using the default port 80, as it should be.(but probably my server will be down when u try to access it)so here is what i do: i run my Java server application.there i open 1 socket in port 19809.(i already tried with port 843 too) then, i run my Flex application: [URL]also i tried to run it in ROOT folder..the XMLSocket class is instanced like this:
xmlsock = new XMLSocket();
// add all listeners
Security.loadPolicyFile("http://alucardeck.mine.nu/crossdomain.xml");
// also tried "xmlsocket://alucardeck.m....
[code]....
i also notice when i start my Java Server application with 2 sockets listening ports: 843 and 19809, i notice Flex first try to connect to 843 and then 19809, and in both sockets i reply with that String from before.
View 1 Replies
May 20, 2010
Ok what i have is a site made from 1 flash file where i am loading external swf files for my picture galleries. now what is happening is in Flash, dreamweaver and when i test the site, everything is working perfectly, the problem is coming when i go into internet explorer go to the site and click on the flash button to go to the picture gallery, that is when it is giving me a Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.
View 3 Replies
Jun 29, 2011
I'm creating a client-server game. My client is a flex based game, and my server is erlang server. At the beginning, when I test directly my flex client in flash player, I can establish a connection easily to my erlang server through socket connection. And both can exchange data with no problem. The problem rise when I deploy my flex app at Apache http server, and running it using a browser by calling [URL] my flex socket sends message requesting for a crossdomain policy to my erlang server. So I create an xml message that represent a crossdomain policy, and send it back to my flex app as a response for that request.
Yet still I can't establish any permanent socket connection between my flex client and my erlang server. I know this because I add listener on my flex socket that will modify its internal state to CONNECTED, if a connection between client-server has established.
View 2 Replies
Jan 21, 2010
I have been getting the following error occasionally when running my flash file.Error #1502: A script has executed for longer than the default timeout period of 15 seconds.at Sr_fla::CenterTemperature_10/frame2()After the error occurs I can dismiss it and the error will not reoccur unless the flash file is closed and reopened - even though I am running the same code over and over.I have traced out all of my loops and feel confident there is not and infinite loop.I read a note on the forums that mentioned this error can occur when a large calculation takes place.I am doing some semi-complex calculations. Maybe that is the cause. Below I have posted some snippets of code from my work. Essentially I have a script which tests a variable (CenterTemperature) to make sure it is within certain bounds.Then a looping movieclip reads the variable and scales another movieclip accordingly.[code]
View 2 Replies
Jun 9, 2011
I have an application that connects to a binary socket server running on port 2234. I use the python policy file server, which I downloaded from [URL], which runs on port 843. If the client app is trying to connect to a socket I can see that the server is receivng the request for a policy file and that it sends it to the client. However, in the client, I get a security sandbox error. How is this possible? And is it possible to check whether the client really received the policy file? BTW, here is my policy file:
<?xml version="1.0"?><!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd"><cross-domain-policy><allow-access-from domain="*" to-ports="*" /></cross-domain-policy>
View 3 Replies
Aug 20, 2010
I'm moving a Flex 3 site to Flex 4, but when I run the application, it attempts to download a .swz file from Adobe, and gives the following error:
*** Security Sandbox Violation ***
Connection to http://fpdownload.adobe.com/pub/swz/tlf/1.1.0.604/textLayout_1.1.0.604.swz halted - not permitted from http://localhost/Fl/CityGIS/main.swf
Error #2048: Security sandbox violation: http://localhost/Fl/CityGIS/main.swf cannot load data from
[code]....
Following this is an attempt to download the same file from localhost.Is there a way to configure the SDK to get these files, or an issue with the configuration of my application?
View 3 Replies
Nov 28, 2010
I have a swf that i cant change (i dont own the code and its copyrighted). In some cases, Im getting error 1502, after 30 seconds executing the file.Is there a way to change or disable the default timeout period? Remember that i can´t edit the .fla
View 3 Replies
Sep 15, 2011
I have implemented a basic login screen and its working ok except that it's giving me this error and is taking long to execute:
Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds. at login_screen/Checklogininfo()[login_screen::frame1:34]
Script is the following:
login_error_lbl.visible = false;login_ok_btn.addEventListener (MouseEvent.CLICK,Checklogininfo);
function Checklogininfo (event:MouseEvent):void{ while ((User_name_txtbox.text != "xx") || (Password_txtbox.text != "y")){ login_error_lbl.visible = true; /////////////////////////////////////////this part of the "while" is taking very long to execute User_name_txtbox.text = ""; Password_txtbox.text = "";
} this.visible = false;}
View 8 Replies
Dec 10, 2010
So i am playing around with some exmaples that come with the tuio as3 library and i am getting an error on launch that i have never encountered before and don't know how to fix.it compiles with no errors however on launch i get this output:ioErrorHandler: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2031: Socket Error. URL: 127.0.0.1"]
View 1 Replies
Feb 22, 2010
How do I limit my amf sessions to flex over pyamf?
I have set up a pyamf gateway to that serves value objects that originate from a django admin panel, through sqlalchemy to my authenticated flex client. It's working great, however there is a problem. My sessions are persisting and clogging up the server, so after about 20 or so AMF sessions are authenticated, it refuses any more until I restart the server.
View 1 Replies
Jun 16, 2011
I'm trying to write the following 16bit WAV header data into a 16bit bytearray..? Using actionscript 3.
52 49 46 46 54 00 13 00 57 41 56 45 62 65 78 74 5A 02
What i'm doing is trying to pass the correct bytearray to this mp3 encoder (http://code.google.com/p/flash-kikko/) to get it to write out an mp3. If i use their example, i can open a 16bit WAV file via filereference and pass in that bytearray to the encoder to export an mp3... but i wanna create my own bytearray and pass it in and create the mp3. Using HxD, i copied the header and footer of that same 16bit WAV file and pasted it into flash as a bytearray but when i pass it into the encoder, it freezes the compile.. and i get the error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.
View 2 Replies
Dec 17, 2009
Using flex 3, how do i set a timeout for a NetConnection?
code sample:
nc=new NetConnection();
nc.addEventListener (NetStatusEvent.NET_STATUS,checkConnect);
rtmpNow="rtmpe://host/test/test1";
nc.connect(rtmpNow,fuid,gameName);
View 1 Replies
Oct 25, 2010
I've a problem, I'm using an AdvancedDataGrid. It loads about 3000 records with about 20 columns. I constantly get Flex execution timeout because the grid executes a lot inside LayoutManager. How can I make it asyncronousely or faster at all?
View 2 Replies
May 15, 2011
my flex application sends a few concurent requests on startup. Sometimes it takes a lot of time to fetch them all so I've set them requestTimeout param to 5 secs. Additionally, I've defined a method that handles fault events. I'd like to resend a request when timeout occurs.It doesn't work though. Could you take a look at the code?
protected function fatalErrorOccuredInfo(event:FaultEvent):void
{
// get the operation
[code].....
View 2 Replies
Sep 5, 2010
I have this Socket (not XMLSocket, just Socket) client. I also have a custom PHP script on my server, that listens on port X. My client tries to connect to it.Everything works fine, the security and communication, sync and whatever else. But - the Flash Player (AIR runtime actually) shoots an error when trying to connect, but ONLY when the server is not running... the error is actually handled by try catch (IOError), and even weirder, the line that is specified in the output as the error line is the line where I just CREATE the Socket...?
Output:
Error #2044: Unhandled IOErrorEvent:. text=Error #2031: Socket Error.
at ---.server::Client()[/DevProjects/Libs/ASLibs/---/server/Client.as:167]
at Function/<anonymous>()[---_fla.MainTimeline::frame1:430][code].....
when I comment out the line where I actually connect using Sock.connect(...) - it does not throw the error, but it obviously does not work... Also, the connect part is also in try catch (IOError) block...
View 1 Replies
Apr 22, 2010
Is there a timeout on the connection made by URLLoader.load? If there is, what's its value, where is it documented and can it be changed? Also, what event (if any) gets dispatched if the timeout occurs? Is there a difference between AIR and browser application in those regard?
View 2 Replies
Mar 26, 2010
I'm using Flash Builder 4 Beta 2. I have it connecting to a PHP service. The way I set this up was using the wizard, so I didn't actually write the code to connect to it.[code]...
One of the functions that I'm calling fetches users from a MySQL database. There are about 30,000 users right now. The service seems to timeout when fetching more than around 22,000 rows, I get the "Channel Disconnected before an acknowledgement was received" error. If I call the PHP script from a browser, it fetches them all with no problems at all, however. I have tried increasing the timeout in the PHP script (which didn't work), but obviously this isn't the problem since the browser is able to pull them up with no problems.
View 1 Replies
Jan 20, 2011
We have a Flex, Blazeds & Spring based Web application. The requirement is that if the browser is idle for 30 minutes, we have to popup an error message to the user and then redirect to the login page.
View 1 Replies
Oct 22, 2010
I'v been looking and below is my code.
import flash.net.Socket;
var mySocket = new Socket
mySocket.connect("127.0.0.1", 5331)
var sym:SimpleButton;
sym.addEventListener(MouseEvent.MOUSE_DOWN, symbtn);
function symbtn(event:MouseEvent):void {
mySocket.writeUTFBytes(1);
}
View 2 Replies
Feb 11, 2012
I have a simple IRC socket that is used to communicate with servers for a web-based IRC client. Unfortunately, attempting to connect to a network results in a security error. I read up on sandboxes and their appropriate permissions, and then used Security.sandboxType to get the sandbox of my socket, which came up as remote. After reviewing the documentation, I still don't fully understand how I can enable my socket to connect to a remote IRC server. I tried Security.allowDomain,
View 1 Replies
Jan 30, 2011
I'm trying to set up a collision so that when a bullet hits a wall it is destroyed. Here is the snippet of code I am using: PHP Code:
[Code]...
This method works great for when detecting a collision between other moving instances and the walls, but for some reason with the bullets I get this error message when they almost touch the wall and Flash freezes and I usually have to restart it: PHP Code:
[Code]...
View 2 Replies
Feb 21, 2011
I am trying to connect to a public resource using actionscript. I already have a PHP site set up to do this, but wanted to move it to Flash. From what I have read, Flash absolutely requires the destination location to have a crossdomain.xml file referencing the remote SWF. This seems absolutely ridiculous.
If I am correct, this means that public resources such as RSS feeds cannot be accessed using Flash? Is there any possible way to access a public file (like RSS) remotely from a SWF without having access to the destination server's crossdomain.xml file? I've tried using Socket and URLRequest, both giving the same "sandbox violation" error.
View 1 Replies
Oct 11, 2010
i've created a socket extension class. the pseudo code below tries to make a socket connection using the passed parameters. if there is an security error, such as the port number not being an acceptable port number, i want to handle the security error.
however, i can't catch the security error. a popup window appears with a description of the error and my errorHandler function is never called.
[Code]...
View 1 Replies
Dec 23, 2010
(Flex 3) I have a TextArea component which needs to hold the user's clipboard content. The TextArea does the job relatively well for most cases but when pasting a large amount of data, I can't seem to get the content in the component at all due to the script execution timeout.
I've done a fair deal on investigation to try and hopefully find how I could make this work. I found that the TextArea is using a IUITextField (which is in my case an instance of TextField at runtime) do handle the job of obtaining the pasting data and then throws an event when it is done.
I have found no way to take a look at the source of TextField as it is a class in the playerglobal.swc library.
Is there a way for me to maybe see the source of that class or is there something I'm missing in my approach to figure out a way to make this work?
View 5 Replies
Nov 19, 2011
When I send number (int)52 s.Send(BitConverter.GetBytes((int)872415232));, flash show me trace(socket.readInt()); 872415232 If i send 872415232, flash show 52.Why? And how it fix?
View 1 Replies