Actionscript 3 :: Loaders Silently Fail On Error Prone Connections?

Jul 30, 2010

Our Flash app has to load 50 or so files from a remote destination. Under normal network conditions, this is no problem. However some of our users started to report that the application "stopped working" during the loading phase. After some tests where we decreased the network quality to a point where 1 out of 3 packets were dropped in bursts, we managed to reproduce the error reports. Looking at firebug, it appears as if a few of the files (1 to 3 out of the 50) begin loading but never complete. No errors are raised in ActionScript and there is no apparent pattern in which files fail to complete.

Has anybody run into situation before and found a cause and or fix to deal with these situations ?It's not too hard to write something that manually verifies if loaders stop loading and restart the loading process, but I was wondering if we're simply not listening to the right error events (right now we listen to progress, complete, and IOErrors) or if there are other solutions ?

View 5 Replies


Similar Posts:


ActionScript 3.0 :: Parallel Loaders Fail To Fire Some Event.COMPLETE

Oct 19, 2011

I want to dynamically load several png images from 6K to 2,5M. I create the loaders in a for loop and start them all at the same time, and listen Progress, Complete, IOError and SecurityError on each loader. The problem is the COMPLETE events are not always fired, even if Progress events show all images are fully downloaded.
 
I tested with Firefox and Chrome, I load 4 images 2.5M, 2M, 1M, and 6K, then I just get 2 or 3 COMPLETE events, sometimes the 4 are fired with Chrome. Did not find any workaround. I tried to listen ProgressEvent and call the completeHandler when bytesLoaded == bytesTotal but the loaderInfo.content is null (and bytesAvailable =0) so I can't get the Bitmap.
 
1) Is there a known limitation in the number of simultaneous loaders, from flash player or browsers ? Does Adobe recommend to have queued loaders instead of simultaneous ?

2) Is there a way to get the loaded Bitmap when COMPLETE is not fired ?

3) I don't keep the loaders in a property of my class, and use weakReference for the listeners : the issue can come from my code ? (but the ProgressEvents are received until the download is complete)

View 4 Replies

Media Server :: Closes Connections And Rejects New Connections?

Feb 23, 2012

I have been running FMIS 3.5 for about 18 months, and recently it started acting up even though I have not made any changes.  After a while (sometimes days, sometimes hours), it starts rejecting new connections, but it allows existing connections to keep working.  If I refresh my app, then I can't reconnect.  The license I have is unlimited.  Can anyone shed some light into why this is doing this and what I can do to fix it?  Sometimes it happens when only a couple dozen people are online, and today it did it about 4 times with over 1500 people online.

View 1 Replies

Actionscript 3 :: FlexUnit4 - When Use Fail() In Try-catch Body Fail Method Is Just Ignored

Jun 23, 2010

I"m a bit confused because FlexUnith 4's behavior. When I use fail() in try-catch body fail method is just ignored.

[Code]....

I suppose this one should fail as there is no way around it, but it succeeds and turns green. Whatam I doing wrong? When i put fail() before try-catch block it fails as it is suposed to. BTW using Flash builder 4.

View 1 Replies

ActionScript 3.0 :: Setting Error Message When LoadXml Fail

Mar 22, 2009

I need to have an error message inside a textbox when the xml is not loaded: My code is simples and is working:

[Code]...

How do I check if the loadXml worked and if not show an error message inside my statusvar textfield.

View 2 Replies

Actionscript :: My Compiler Fails Silently

May 1, 2009

I have a large FLA (about 13 MB) which used to compile fine.

Recently, when I try to publish it, the AS 3.0 files are not getting compiled (Generated size report says 10 bytes for AS3 code) and the swf just keeps blinking (due to the unavailability of the class code for the components). When I tweak around a bit with the class path (and finally restoring it to where it was), sometimes it works

Is there any reason, why the compiler would silently fail. Does flash have any cyclic dependency problems (like in old include statements in C). I somehow see this as a compiler crash. I know there might something wrong with my code but it doesnt show any error.

View 2 Replies

ActionScript 2.0 :: Get The Url Loads Silently In The Flash?

Sep 20, 2007

i've made a flash page and I want when a user view my flash a url loads in the flash silently i've tryed getURL method but when the URL loads in the flash the page changes but I don't want the page change .think I want to log user IP by loading a php or sth like that.

- I don't want to use iframe outside of the flash like getURL("http://myurl","htmlframe");

- I don't want to to solve it in html codes (OUT of the flash).

I just want the url loads silently in the flash.

View 8 Replies

ActionScript 1/2 :: GetURL Fails Silently In Browser?

Nov 28, 2006

I have a very simple Flash app that is basically just a set of links for a company home page. I've used getURL to direct the users to a number of web sites (e.g. Google, a train timetable website, a telephone directory website - and so on). It works fine when I run the swf directly on my test PC. However, when I run the html file (produced by the Flash Publish function), rather than the swf file, the app works but nothing happens wjhen I click on the links. It is as if getURL was being ignored.

I have tried this using swf files saved in Flash 8 or Flash 7 versions, and in IE 6 and 7 browsers. The purpose of the app is to provide the users with links, but as none of the links work it is pretty useless.

View 5 Replies

Actionscript 3 :: Document Class Silently Fails

Jul 21, 2010

I have this weird issue while compiling my .fla file : it won't use the Document class. Here is the document class. (note that the parent class EditorPlugin extends Sprite).[code]...

View 1 Replies

ActionScript 3 :: Flash - AMF Zend Fails Silently

Jun 1, 2011

I'm trying to connect to a Zend-PHP service within a pure ActionScript program. I've managed to use the service successfully using Flex. (But Flex mobile apps are bloated, and typically 10x bigger than pure ActionScript apps - which is why I'm trying to write it in Pure Actionscript). I'm trying to access the PHP/Zend service that I downloaded, and used in the following tutorial:- [URL] The PHP code that I'm connecting to is available as a download from this site - as well as instructions about how to use it in Flex. And this is what I've written in ActionScript:-

[Code]...

View 2 Replies

Javascript :: NetConnect Fails Silently In Flash When Called From SilverLight?

Apr 30, 2009

I'm trying to write a Silverlight control that hosts a Flash camera and microphone (since Silverlight doesn't support these things natively, worse luck). I've written a short little Flex application ("WLocalWebCam.swf") which handles the camera, and exposes two external methods: connect(uri:String, streamName:String), and disconnect(). I can call these successfully through JavaScript as follows (simplified to remove error handling, etc.):

function connectWebCam(webCamID, rtmpUri, streamName) {
var flashCam = getWebCam(webCamID);
flashCam.Connect(rtmpUri, streamName);[code].....

View 1 Replies

Flash :: Read Local Files "silently"'?

Sep 16, 2011

I'm developing an application and because of certain design restrictions I have to do it in Flash. This application communicates with another one done in c++, but just because I need a couple strings, so I thought it would be easy to write them to a .txt file and parse it. But the only way I've found so far is adding a browse event handler and select the file manually. That's no good for me, I need the file to be read automatically given a path, something like:

var data:ByteArray = fileRef['C:whateverPath'];
var loader:Loader = new Loader();
loader.loadBytes(data);

View 3 Replies

Flex :: Set Flash Crossdomain.xml To Allow Only SSL Connections?

Feb 7, 2011

How do I set the flash crossdomain.xml file to only allow https ssl secured connections? I have this but I think this will allow non secure connections too.

< cross-domain-policy >
< allow-access-from domain="*" secure="false" / >
< /cross-domain-policy >

View 1 Replies

C# :: .net - Socket Server - Concurrent Connections

Apr 23, 2011

I have made a socket server in C# for a flash game that I am developing, I got the code from somewhere and I am a beginner in c# and .net development . It works fine in practice when connections are made and the server functions correctly. Get 2 concurrent connections at the same time and we have a problem. here is the basic aspects of the socket server below: (alot taken out for obvious reasons) how can I alter this so that it can handle concurrent connections? Should I be threading each response?

[Code]...

View 4 Replies

Flash :: How Does Socket Connections Work On The Web

Oct 6, 2011

I am trying to debug a socket connection issue between flash in a web browser and flash in a client type program. The connection is closing properly in the web, so I would like to understand how the web side of things work. Right now I can load up a remote flash file in a web browser and that triggers a connection ESTABLISHED stat when viewing with netstats -fn. When I close the dialog which runs some javascript to remove the flash from the dom, the connection stats goes to TIME_WAIT. Does the act of removing the flash from the html DOM sever the flash connection which triggers a TIME_WAIT state? How does that process work?

View 1 Replies

ActionScript 2.0 :: Xml Sockets And Direct Connections?

Feb 1, 2005

i wanted to make a game in which you play head to head with other people.. but before i get ahead of myself here..how to establish a server which receives info from all connected flash movies , and then sends it out to all the ones witch i want to? basically i was thinking of making a chat thing 1st of all and then depending on how difficult it is move on to my game idea..

View 5 Replies

ActionScript 3.0 :: AIR Writing Sql Connections Into Classes?

May 7, 2010

is it possible to write a class just to connect to the SQLite database? As in, writing the class, and calling it in another class, so that I don't have to type everything out everytime I need to connect to the database.

View 2 Replies

ActionScript 2.0 :: Xml Sockets And Direct Connections

Feb 1, 2005

i wanted to make a game in which you play head to head with other people.. but before i get ahead of myself here..Any tutorials on how to establish a server which receives info from all connected flash movies , and then sends it out to all the ones witch i want to?basically i was thinking of making a chat thing 1st of all and then depending on how difficult it is move on to my game idea..

View 5 Replies

Media Server :: Max Number Of Simultaneous Connections?

Feb 16, 2010

How is it possible to determine in advance the max number of simultaneous connection for my FMS?

View 2 Replies

Media Server :: Phantom Connections In Console?

Jun 29, 2010

The attached image shows 17 client connections.  Unfortunately there are not 17 clients connected to that app.  In fact, I add users to a userlist shared object in application.onConnect(), and that shared object only reports 6 connections.  That is the accurate number of connected users.
 
Why the phantom connections?  Even if I unload and reload the app, the 17 client connections return.
 
How can my userlist shared object and the client connection number be out of sync? This situation seems to be related in some way to an FMS memory problem that is cropping up all of a sudden.  When I have larger numbers of connected clients - say 300, the client connections reported in the FMS console are ten times that - like 3,000 or more.  Then the application is unloaded by FMS for being a memory hog.
 
The app itself is simple.  It just stores each user in a user array and passes chat communication to and from these users.  The last time this main.asc code was changed was 2/8/2010.  No problems with it in the countless times we've used it since then.  Why the sudden phantom FMS connections, memory hog behavior, and constant unloading of the app?

View 2 Replies

ActionScript 3.0 :: Classes For Client-server Connections?

Jun 20, 2011

I am willing to make an online game client-server. That is, many clients are connected on the same server, and thus interact. The application used by clients is a swf (done in flash) and runs in a browser. My questions are: 1 - I can create the server in AIR? If yes, which of the classes are recommended to do this efficiently? 2 - What classes are recommended for clients (swfs) to communicate with the server efficiently? 3 - The transfer of data between the client and the server can only be accomplished through the TCP protocol?

View 2 Replies

Media Server :: FMS Connections Doesnt Disconnect

Aug 14, 2011

URL...I am running application instance that implements publisher/subscriber on video streams. Application code is very thin and can be removed completetly if required. In a specific time, randomly, disconnect messages stopped happening which causes the folowing:

1. Streaming service shows decrease of bw per second

2. Users count is increasing linearly.

3. No disconnect messages apears on access.0x.log

View 6 Replies

Media Server :: Sudden Drop In Connections?

Sep 7, 2011

I have FMS 4 and a videochat app (one-to-one), everything runs smoothly until about 750 users (it means about 1500 connections to fms), then I get a sudden drop in users connected to 300-400, no errors in the fms log and the cpu/memory usage is at about 25% just before this. I'm running Windows 2008 R2 Web (x64) and I've red somewhere that maybe this version of windows has some connection limit that could be the cause, but I've no idea of what could be happening.

View 2 Replies

Media Server :: Set The Maximum Number Of Connections Of FMS On The Same IP?

Apr 10, 2012

How to set the maximum number of connections of FMS on the same IP?

View 3 Replies

Flex :: Play MP3's From Socket Connections In Flash AS3?

Mar 7, 2010

How to play mp3's from socket connections in Flash AS3?

I have some simple programm which is listening to some port (TCP).

I connect to it using as3 sockets and it starts sending me mp3 data

How to play that data?

View 1 Replies

Create UDP And TCP Connections In A Browser-based Game?

Nov 13, 2010

I'm working on a game and want the freedom to choose between UDP and TCP connections in the future when I decide to add multiplayer. I'm not sure how something like this would work in the browser with security.

There are two scenarios I can think of for multiplayer. The first is that a player becomes the host of the game (in the browser) and thus would need to communicate with other players directly via TCP or UDP. This would save me on bandwidth costs.

The second scenario would be to have the web server host the game and pass messages back and forth to the clients again via TCP or UDP.

Do Flash or Java applets let me do something like this? If not is there an alternative I can use for the browser or am I stuck with moving to providing a game download and installation?

View 3 Replies

Flash :: Load Testing RTMP Connections?

Aug 23, 2011

I am using Wowza Media Server's webcam record capability in a project. It records the webcam feed over RTMP which is connected to via a flash file. It's all working fine, but I need to stress/load test the functionality to check how it'll scale up.

View 1 Replies

Flash - Flex Not Importing SQL Based Connections?

Sep 26, 2011

I'm trying to include a database un flex4 (flashbuilder) project, I don't see data and SQL packages in the import? What might be the reason? Should I add external library?

import flash.data.SQLConnection;
import flash.data.SQLStatement;
import flash.events.SQLErrorEvent;
import flash.events.SQLEvent;

Description Resource Path Location Type
1172: Definition flash.data:SQLConnection could not be found.
EyeVision1.mxml /EyeVision1/src line 28 Flex Problem

View 2 Replies

ActionScript 3.0 :: Reason To Set Max Simultaneous Loader Connections?

Jun 26, 2010

I'm learning on how to make que loader system. I'm loading in 30 images at once when the swf loads onto stage that contains moderate tween animations. I was wondering would I get better performance if I only allowed to load 5 images at once then next set 5 ect ect. rather than to load 30 images at once? I can't tell because my computer is very good so I can't hardly tell. Is this common practice?

View 2 Replies

ActionScript 3.0 :: Load A URL "silently"?

Jun 7, 2011

I said that it doesn't works cause I forgot to start apache, but it works so fine!

ps. I can't fine a buttom to close the topic, but my problem is solved! If is necessary to close the topic.

View 2 Replies







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