Flex :: URLStream & OSX Laggy?

Dec 8, 2009

I'm using URLStream to download 30-80mb files over HTTP. It downloads fine on Windows XP, but is extremely laggy in OSX. Anyone had similar issues? Here's some snippets of the code.

[Code]...

View 1 Replies


Similar Posts:


Actionscript 3 :; URLStream Throws Error # 2029 In Flex AIR App?

Nov 2, 2010

In my AIR app,I am trying to implement a file downloader using URLStream.


public class FileDownloader {
// Class to download files from the internet
Function called every time data arrives[code].....

I simply create an object of the above class and passing the url and the file and call the load function. For some files I get the following error.

remotePath: http:[url].....error while writing bytes from...Error:Error #2029: This URLStream object does not have a stream opened.Which means the error is from the file stream(fileAccess) that I am using. I am unable to figure out why this could be happening. If I try to open the url http:[url]... in the browser, it opens properly. This happens randomly for some files.

View 1 Replies

Flex :: Using NetConnection And URLStream To Send/receive Data At High Frequency

Jun 17, 2009

I'm writing a Comet-like app using Flex on the client and my own hand-written server.

I need to be able to send short bursts of data from the client at quite a high frequency (e.g. of the order of 10ms between sends).

I also need the server to push short bursts of data at a similarly high frequency.

I'm using NetConnection.call() to send the data to the server, and URLStream (with chunked encoding) to push the data from the server to the client.

What I've found is that the data isn't being sent/received as soon as it's available. For example, in IE, it seems the data is sent every 200ms rather than as soon as NetConnection.call() is called. Similarly, URLStream isn't making the data available as soon as the server is sending it.

Judging by the difference in behaviour between the browsers, it seems as though the Flash Player (version 10) is relying on the host browser to do all the comms. Can anyone confirm this? Update: This is very likely as only the host browser would know about the proxy settings that might be set.

I've tried using the Socket class and there's no problem with speed there: it works perfectly. However, I'd like to be able to use HTTP-based (port 80) connections so that my app can run in heavily fire-walled environments (I tried using a Socket over port 80, but that has its problems).

Incidentally, all development/testing has been done on an internal LAN, so bandwidth/latency is not an issue.

Update: The data being sent/received is in small packets and doesn't need to be in any particular format. For example, I might need to send a short array of Numbers, and this could either be encoded in AMF (e.g. via NetConnection.call()) or could be put into GET parameters (e.g. using sendToURL()). The main point of my question is really to see whether anyone else has experienced the same problem in calling NetConnection/URLStream frequently, and whether there is a workaround (it's also possible that the fault lies with my server code of course, rather than Flash).

View 2 Replies

Professional :: Custom Selection Box Laggy?

Sep 20, 2011

I've made a little program that enables you to resize a box on the screenIt's made up of 4 squares and when you move one sqaure the others move so that it still forms a box But when i move the square moderately quickly the box's all seem to lagHere is my code for moving one box

var tl:Sprite = new Sprite();
var tr:Sprite = new Sprite();
var bl:Sprite = new Sprite();

[code].....

View 3 Replies

Professional :: Viewing Exported .mov File Extremely Laggy?

Mar 26, 2011

I'm using Flash CS5 and am currently working on an animation/advertisement as part of my final exam in Applied Art. This is a relatively large file consisting of internally animated Graphics and Movie Clips. When playing it in the .SWF player it seems to play fine with no extreme lag accept for a single second at the beginning but when exported to a .mov file it plays extremely slowly causing the frame rate to decrease considerably.I need to upload this onto my youtube channel when it is done as the link needs to be sent to the examiner. All this may have something to do with the fact the .mov file, although unfinished, already weighs 75.6MB at 30 seconds of work.

View 3 Replies

Flash :: Long Polling With URLStream?

Jun 27, 2010

I'm trying to open a connection to a URL that will periodically send over a JSON object. I know that I need to use URLStream and some event callbacks, but I'm in the dark when it comes to knowing how streams of data "work," or the general flow of operations. Assume I know how to open the connection and send the correct request headers. First, some relevant code:

[Code]...

View 1 Replies

ActionScript 3.0 :: URLStream Bytes Available Returns Incorrect Value

Aug 2, 2010

I am trying to upload and download a file from the server. After uploading if I Try to download the file it is not downloading. URLStream.bytes Available returns incorrect value. If I close the AIR application and try it ,it will work perfectly.. Why URLStream.bytesAvailable returns incorrect value just after uploading..

View 0 Replies

ActionScript 3.0 :: URLStream Object Does Not Have A Stream Opened

Dec 14, 2009

I successfully built a XML gallery; everything seems to work fine. But everytime I click on a thumbnail, I will get the following error:Error: Error #2029: This URLStream object does not have a stream opened.I researched on this error, and it seems this error involves sounds. Something about trying to load something that's already fully loaded. Therefore, I'm confused since I don't have any sound in my gallery. On top of that, the gallery works just fine but this error keeps popping up in Flash.[code]

View 1 Replies

Flash :: Pause / Resume Downloads With The URLStream Object?

Jun 27, 2009

Is it possible to pause / resume downloads with the URLStream object?

View 2 Replies

Flash :: Comet-style Long-Poll In AIR Using URLStream

Sep 26, 2011

I'm attempting to connect to an existing Comet-style long-poll service using an AIR app. The service expects a client to make a GET request with a Connection: Keep-Alive header. This request will remain open for long periods of time so that the server can push data through. In my app, the connection is terminated with an IOError after 30 seconds.

Is this an undocumented limitation of URLStream? A restriction on adl (I've only been running my app through adl)?

The server does not send any "keep-alive" messages to the client but, unfortunately this is not something i have control over.

Update

To test this, I've set up a stripped-down version using a little php script (linked by leggetter below) and am hitting it from a simple AIR app. I'm finding that my connections are closed after 30 seconds whether I use URLStream or URLLoader. the PHP:

<?php
set_time_limit(0);
sleep(40);

[Code]....

If i adjust the initial sleep time in the php script to anything over 30 seconds, the IOError event is triggered. If I lower the sleep time, but the request continues adding data past 30 seconds, the onComplete event is called, but _urlLoader.data is empty.

The only way this process completely successfully is if the entire thing is over before 30 seconds elapses.

View 1 Replies

Actionscript 3 :: Streamed PNG Using URLStream Intermittent When Server Is Bogged?

Dec 14, 2011

In my case I need to be able to cancel loading as the user could possibly be scrolling through alot of images and the if not canceled it can take a few minutes to catch up to the scroll position.So after research the URLStream class seems to cure this problem and I found a good streaming class hereThis class works very nice except when there is heavy load on the server causing lag.When this lag happens the class will dispatch the complete event yet the image will not show.Watching the download with HTTPFox shows the image in fact does get loaded.

I assume there is some kind of delayed issue with the URLStream class and the author of this class tried to correct it using the setTimeout method. I also tried delaying the dispatching of the complete event using a timer and not dispatching until if( this.width != 0 ) was detected and this seemed to work much better.But it is still haunting me just not as often.

View 1 Replies

ActionScript 3.0 :: Check If A URLStream On A Loader Is Open Or Closed

Jun 30, 2010

I have to be able to cancel and kill a Loader process properly and many times. If I dont do this, it seems that the flash player (at least on mac) eventually crashes as some loader processes are flying about , strangling the CPU.

There doesnt seem to be a straightforward way to know this and just calling a Loader.close causes an error, if the stream is not open.

View 4 Replies

Actionscript 3 :: Internet Explorer Flash.net.URLStream Close() Method

Jan 15, 2012

Is anyone else aware of the fact that Internet Explorer (at least version 8) keeps downloading a file even if the close() method is called on an URLStream instance? Heck, it even keeps downloading if you close the tab displaying the site which called the load()/close() methods on an URLStream instance. Does anyone know of a solution to overcome this problem? More details: My preloader is loading a dozen of files and immediately closing the download streams with the purpose of checking each resource's file size. In Mozilla Firefox all goes well, exactly as expected, but Internet Explorer keeps downloading the resource even if the stream has been interrupted by the action script close() method.

View 1 Replies

ActionScript 3.0 :: Error #2029: This URLStream Object Does Not Have A Stream Opened

Dec 14, 2009

I successfully built a XML gallery; everything seems to work fine. But everytime I click on a thumbnail, I will get the following error:
 
Error: Error #2029: This URLStream object does not have a stream opened.
 
I researched on this error, and it seems this error involves sounds. Something about trying to load something that's already fully loaded. Therefore, I'm confused since I don't have any sound in my gallery. On top of that, the gallery works just fine but this error keeps popping up in Flash. Does anyone have information about this error and how to resolve this?
 
import gs.TweenLite;import fl.motion.easing.*;import fl.controls.ProgressBar;import flash.text.TextFieldAutoSize;var imgNum:int = galleryData.image.length();var spacing:int = galleryData.@spacing;var cols:int = galleryData.@cols;var rows:int = Math.ceil(imgNum / cols);var imgCount:int = 0;var gallery:MovieClip = new MovieClip();var detailImage:Loader =

[code]....

View 6 Replies

Actionscript :: Download Multiple Large Files And Saving Locally - URLStream Or URLLoader?

Feb 17, 2011

This is absolutely driving me crazy. While I'm a fan of the availability of asynchronous calls in AIR, I'm finding that being forced to use them for something that should be SUPER simple is a severe limitation. So severe that I may end up abandoning AIR and writing native Android and iOS apps instead of using the shared AIR platform.

OK, now that I have that off my chest, here's what I'm trying to accomplish. I have an app that, when deployed, is relatively small. But once deployed to a user's device that user will log in using a login name/password. Once they log in, content specific to that user needs to be downloaded and saved to the local device. Since the content varies by user I can't include it in the package for deployment.

But I cannot figure out how to accomplish this: say I want to download 10 files and each file is 2-3mb and I want to show a "Downloading, please wait..." view during the download. The application cannot proceed until all 10 files are downloaded. But since from what I've seen URLStream and URLLoader are both async I cannot figure out how to block the app from opening the "View available content" and say on the "Downloading, please wait..." view.

View 1 Replies

ActionScript 3.0 :: Error: Error #2029: This URLStream Object Does Not Have A Stream Opened?

Oct 31, 2009

I am working on sound.Error: Error #2029: This URLStream object does not have a stream opened.Error occured during the sound.close()

View 2 Replies

Actionscript 3 :: Compiling Flex 4.0 App On Flex 4.5/4.5.1 Flex Sdk?

Oct 21, 2011

where I can find info about compiling flex 4.0 sdk on flex 4.5/4.5.1 sdk.I am having troubles. compilation goes well on 4.0 but whe I compile on 4.5 or 4.5.1 I get blank swf.

Note: I have set flash player 10.2 for compilation and also as default.

View 1 Replies

Actionscript 3 :: Flex : Access The Implicit Event Dispatcher Of A Bindable Flex Object?

Mar 4, 2010

If I create an object like so:

class Foo {
[Bindable] public var property: String;
}

The class Foo has an implicit event dispatcher to handle property change events. How can I access that without making Foo explicitly extend EventDispatcher?

View 1 Replies

Flex :: Develop A Softare For 3D Object Compression (by Polygon Reduction) In Flex Using Papervision 3D

Jun 11, 2010

I wish to develop a softare for 3D object compression (by polygon reduction) in flex using papervision 3D. Could you please suggest me an efficient algorithm for the same?

View 1 Replies

Flex :: Reduce The Time Request Between Producer (Java) And Consumer (Flex) With JMS Message?

Jul 12, 2010

I have implemented application client-server with spring blazeDs message services using JMS message destination. The idea is a producer declared in Java send message using activeMQ and consumer declared in Flex receives them. I have configured the AMFChannel with a polling interval 0, but I have seen when the consumer subscribes to the destination in Flex, the time request can be of up to 3 seconds.

[Code]....

View 1 Replies

Flex :: Send Html Page With Application Installation Package In Adobe Flex?

Aug 26, 2010

I want to send a html webpage with my application in installation package,is it possible?

View 1 Replies

Flex :: Adding Flex Capabilities To An Existing J2EE Enterprise Application Project

Sep 17, 2010

I have an J2EE Enterprise Application Project in which I would like to add a few Flex screens. How do I go about adding Flex capabilities.

I have build Flex/J2EE applications from scratch but can't think of the best way to do this.

I am currently using Flex Builder Plugin for IBM Rational Application Developer 7.5.

View 1 Replies

Flex :: Actionscript 3 - Delete Node Of Type Object From Flex Tree Component?

Feb 11, 2011

I have a tree with nodes , and a delete button , first user select the node and click this delete button , I want this node to be removed from the tree , Its not XML , every node in tree is of type Object

{label:'folder',children:[{label:'file1'}]}

I tried delete myTree.selectedItem (but compiler wont let me do it) also tried myTree.selectedItem = null (just unselects the item)and also how can I access reference to parent object of myTree.selectedItem ?

View 3 Replies

Flex :: Output Database Information In A Text Input Field In Flex By Using RemoteObject(cfc)

Mar 16, 2011

im trying to output my database information in a text input field in flex by using remoteObject(cfc). The information is being provided by a database using a query and an array collection. I'm just unsure how i go about taking the queried array collection information and display it into TextInput Fields.

[Code]...

View 1 Replies

Flex :: 3 - Conflict Exists With Definition Friendlist In Namespace Internal Flex Error

May 11, 2011

in my variable i am getting error private var friendsList:VBox; "conflict exists with definition friendlist in namespace internal" what it is?

View 1 Replies

Flex :: Actionscript - Authorization Header Is Not Send For The Subsequent Request From Flex Application

Jun 15, 2011

I am trying to access html files protected by basic authentication. Below is the code to do that but I still get the authentication dialog. I checked the fiddler and found that for the first request authorization header is present but for the subsequent requests which is requested to load the .js, css & images the authorization header is not added. This is the reason I am getting the auth dialog.
Is there a way to add authorization header to the subsequent requests as well?

[Code]...

View 1 Replies

Actionscript 3 :: Flex - Selection In Flex Datagrid Does Not Pass The ValueObject To SelectionChangeHandler Function

Aug 11, 2011

I have a TabNavigator, and each tab is a Module. One of the modules is labelled Units and the full code of the module is posted in this post. There are several problems:

1) Forms are not populated with data from the datagrid selection.
2) Selecting a row and clicking delete gives the very-common error: TypeError: Error #1009: Cannot access a property or method of a null object reference.

A trace on the valueObject unit within the selectionChangeHandler function gives NULL. Why? Note: In other modules (other tabs of the TabNavigator), I have DropDownLists populated with units. This means that the valueObject Unit is defined in the other modules. However, valueObjects should be private to modules, and not shared.

[Code]....

View 1 Replies

Flex :: Actionscript - Flex 4.6 - Custom Item Renderer - HTML Formatted Text?

Dec 7, 2011

ow do you display HTML formatted text in a Spark custom item renderer (Actionscript)?

Sample Code:

The html content in item.post_content displays as plain text in the IconItemRenderer messageFunction snippet below (which is just the default generated code for Icon Item renderer):

<s:itemRenderer>
<fx:Component>
<s:IconItemRenderer iconField="iconField"
iconWidth="64" iconHeight="64" labelField="post_title" messageFunction="getPost">

[code]...

View 1 Replies

Flex :: Show Data At Group Level In Flex Advanced Grid?

Aug 6, 2009

I am working on a grid example in flex using advanced grid control. I know we can easily group data by specifying the field name. At the group node level, other than the gorup name I want to be able to show data in the rest of the cells ( calculated data ) and I am looking for some dataRowBound event or similar to be able to hook some data in it.

Example: Grid displaying list of towns grouped by state. At the group level ( for each state) I want to show the total number of towns in each state. Here how can i show the total number in the town column.

View 1 Replies

Flash :: Flex - Access A Stage Instance Name From A SWF Embedded With The Flex Compiler?

Sep 10, 2009

I've embedded a MovieClip symbol with the [Embed] syntax into my AS3 project, which I'm compiling with the Flex 3 SDK. That MovieClip has instances of other clips within it that are placed on stage with instance names. I can't just access them by instance name like I would if I were compiling with the Flash IDE. How can I reference them?

View 1 Replies







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