Flex :: Adobe - UI Processing Data And Displaydata In One Thread?
Mar 10, 2011
As I know. Flex/AS is single threaded.I want to write an application that talking to server side, also display the data streamed from server.Since Flex is single threaded. I am not sure how could I do this.Better not involve something like "implement your own multi-thread model"
View 1 Replies
Similar Posts:
Jun 8, 2010
I want to extend AdvancedDataGrid to show a Waterfall Chart in one of its columns.
To do that I already created custom cell render that shows bars as I need.
Now I have a little challenge: I have to pre-process data to show my Waterfall Chart properly. I have to do it before my grid is show. So, I assume that I have to extends AdvancedDataGrid and overwrite some methods.
View 1 Replies
Jun 29, 2011
I have an actionscript function which is supposed to launch a panel and then fill in Networktopology data inside it.As, network data is too large that it consumes much time and makes browser hang!Even I tried to display busy cursor which also stopped spinning when data was being processed.How can I ensure processing large amount of data does not hang the browser.
View 3 Replies
Jul 14, 2009
I understand the Flash and AS3 is single-threaded, at least at the user level. I would like to understand how asynchronous data loading is handled by the Flash player.
For instance, if I run CPU-intensive code that runs beyond the normal frame (lets say it runs on ENTER_FRAME, and consumes 1/4 per call). Does this leave any CPU cycles to load data from a URLLoader?
If http loading is truly synchronous, right down to handling the TCP/IP stack, one would get horrible performance. In Windows programming, I can do http access asynchronously (in which case the Windows libraries are doing either input on a separate thread, or doing hardware-level interrupts to handle the data -- I provide an asynchronous callback that may be on its own thread). Or, I can do synchronous download, in which case there will be hardware buffering, but my application is actively waiting for each buffer of data to be delivered by the hardware/OS combination.
URLLoader is asynchronous, but what does that mean? Does it mean that I can run the CPU and still download data? Or, will my download speed slow to a crawl if my Flash application is under heavy CPU load? Understanding how this works will help me design my product better, which both uses a lot of CPU, and downloads a lot of data (to the bandwidth limit of the network, if possible).
View 2 Replies
Nov 12, 2011
I am writing a simple Tcp server in Unity and have my Flash application connects to it.I found a great tutorial on threaded Tcp server online, and my flash app connects to it nicely. However, I am not able to send data outside of the listening thread to the connected client. I tried to create a global reference of the Tcpclient obtained inside of the thread. However, that reference (sclient) only works inside of the listening thread, printed Null to console outside of the thread. There must be something I can do to retain the TCP client reference for later use or access it from outside of block thread.
[Code]...
View 2 Replies
Nov 30, 2011
All I want to do is have an input text box where the users type a number, then Flash to perform a simple calculation and then display the answer on screen. For example; output = input *2 so if the user entered "5" the value displayed on screen would be "10".
I found this tutorial which is exactly what I am trying to do: [URL] but cant get it working correctly for some reason and just gives a "NaN" result (looks like an old version of flash)
View 2 Replies
Nov 12, 2010
I am building an offline [URL] application in Adobe Flex. Can we use [URL] Rich Text Area fields in the offline application? I do not see the field returned in a query.
View 2 Replies
Nov 12, 2011
I am using an component, and currently have a dataProvider working that is anArrayCollection (have a separate question about how to make this an XML file... but I digress).Variable declaration looks like this:
[Bindable]
private var _dpImageList : ArrayCollection = new ArrayCollection([
{"location" : "path/to/image1.jpg"},
[code]....
View 4 Replies
Mar 30, 2011
Ive read a ton of online tutorials about this and cant seem to get a definite answer...
View1.mxml
navigator.pushView(views.view2, {response:"BLAH"});
View2.mxml
[code].....
View 2 Replies
Jun 22, 2009
Whenever I debug my AIR app it keeps suspending at a certain line of code...it doesn't give me a reason why, it just says Main Thread (Suspended) No error, no breakpoint at this location either. If I comment out the code so that, that line does not execute, it just does the same thing on a different line of code.
[Code].....
View 2 Replies
Jan 22, 2012
I am aware that Action Script does not provide multithreading so when writing flex application we are limited to work on one thread. which is ok for rendering my UI.
However some questions arise when preferring flex over silverlight:
As a UI layer single thread is good enough but is it fair to assume that for Aync httpservice like operations in flex , internally it would use some worker threads to manage the async operation and then come back to the main thread ? it looks like it does since my UI does not freeze.Can the flex/flash player deal with multiple httpservice calls in parallel ? ( e.g more than one section of the UI loading data at the same time.)How about the animation stuff ( e.g the parallel animation ) - does flash player internally leverages some threading for accelerating graphics or is it all done on the UI thread ?
View 1 Replies
Jun 4, 2009
I am a new flex developer.I would like to know about the LCDS. What it does?How to configure it?Do I need to know Java? Can I get some sort of tutorial pdf for it? I have it on my system. I need to know about it.
View 4 Replies
Jul 5, 2010
I want to write some data stored in a string variable into a text(txt) file.
View 4 Replies
Feb 24, 2012
I need to delete all the application data directories on the exit of an application:
/data/data/air.<appID>/cache/.AIR
/data/data/air.<appID>/cache/webviewCache
/data/data/air.<appID>/databases
But I get each time the "directory not found error"
This is from my application descriptor:
<id>test01</id>
<filename>test01</filename>
<name>test01</name>
I know also this is not a best practice, but for security reasons I need to delete all the stagewebview cache and autofill form data.
View 3 Replies
Aug 12, 2009
I am using an component, and currently have a dataProvider working that is an ArrayCollection (have a separate question about how to make this an XML file... but I digress). Variable declaration looks like this:
[Code]...
View 1 Replies
Oct 27, 2009
i want to make a simple chat with flex as3 and red5 media server
my idea is that i send from the swf a message to the server and the server sends it to all the swfs (including the one that sent the message)
i just don't know how to to send and receive and how to receive from the server
View 2 Replies
Sep 27, 2010
I have a vertical tab-bar with 4 items with different sub tabs. All the four items use data from a single xml file, which is a big file. When the user clicks on a tab, while the data is being loaded this error is shown. TypeError: Error #1009: Cannot access a property or method of a null object reference. I want to disable all the tabs while the xml file is being loaded.
View 3 Replies
Sep 16, 2009
Does anyone know if adobe flash player cache data is available to other users on a system? For example: A user logs onto Windows XP, then uses my adobe flex application... and in the process of doing so downloads the signed flex lib... He then decides to mow the lawn and log off. At about 3pm the same day, his Mum can't hear the TV over the sound of the mower, so she decides to log in using a different XP user account. She proceeds to use the very same flex application. Does she also need to download the flex lib again, or would the data already be cached in the flash player?
View 2 Replies
Jul 24, 2009
A groups of friends are working on a little game that would listen to the microphone as part of the interaction. We've tinkered with processing and flex. What we'd like to know is if anyone has succeeded in:
recording from the microphone using a web app
performing an FFT on this microphone data
In the case of flex, according to the docs "Because sound data from a microphone...do not pass through the global SoundMixer object, the SoundMixer.computeSpectrum() method will not return data from those sources."[1]
View 2 Replies
Apr 11, 2012
I'm using Flash Builder 4.6. As a simple example, say I have the following application:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:sdk="services.sdk.*">
[code].....
View 2 Replies
Aug 12, 2009
I have following problem: My webservice application returns xml data in following order:
<my_claims>
<claim>
<opponent>Oleg</opponent>
<rank>2000</rank>
[Code]...
View 3 Replies
Mar 21, 2011
Multiple axis creation via MXML works fine:
http:[url]...
But when I'm trying dynamically create horizontal and vertical axis then I'm getting extra axes. I believe this is Adobe bug. How I can fix this behavior?
<?xml version="1.0" encoding="utf-8"?>
<s:Application
minHeight="600"[code].....
View 2 Replies
Aug 6, 2009
I've been working with a 3rd-party multiplayer engine for a game I'm developing. A lot of messages get sent during certain times (loading, etc) to the point where it is possible that multiple messages may be sent per gameloop. To solve this problem, I am attempting to create a delayed message processing scheme. this function is invoked every time a new message is received:
Code:
// called by the Client
public function PushMessage(gameMsg:GameMessage):void
{
messageQueue.push(gameMsg);
}
And at a point in the gameloop, I want to process these messages and clear the message queue. The only problem: there is no assurance that the messageQueue won't be modified during that time. The messages in AS3 are basically interrupts (possibly overlapping), and I can't find any way to temporarily disable event dispatching for a specific EventDispatcher-derived class.
So at this point I can think of only two options. The first is to write a mutex using a Boolean and setTimeout. I do not want to do this for obvious reasons (bad! BAD!). The second is to give up on a delayed processing model.
View 6 Replies
Oct 30, 2010
Is there a way to process a picture > 4096 x 4096 px in pixel bender? Or any other technique?
View 3 Replies
Sep 20, 2011
I'm creating some image uploader in Flex with client-side image processing. Processing consists of two steps:
1. Resizing (solved)
2. Converting resized image (represented by ByteArray in PNG32 with alpha-channel) to gray-scale PNG with bit-depth = 2 and no color-palette. Is there any existing library that is capable of second step? Something like libpng for C++, maybe?Edit:It seem I stumbled upon rarely encountered problem. However my descision was to create an AS3 class that is capable of converting bitmapData to 2bit grayscale PNG. I used standart PNGEncoder and PNG format specification (which is not so good as I expected) as basis.
View 1 Replies
Jan 19, 2011
I'm beginner in Flex 4. I'm trying to pop up a Flex WindowTitle custom component, and after the user choose some values, the parent window must be refreshed.I'm showing the modal window, the user can't interact with other components, but the problem I detect is the execution of the program flows, even I choosing to show the Input window as modal, the next methods to refresh the page is called before the user close the modal page. I don't know if flex or ActionScript works different from Java, where I used to code. see the comments on the code example:
<fx:Script>
<![CDATA[
import mx.controls.Alert;
[code].....
View 1 Replies
Nov 20, 2010
When I test my deployed app in a browser the popup window continues to be displayed even after it should be closed. Everything works as expected when debugged in Flash Builder 4.
Following is currently what's happening: the request is sent to my restful web service, which processes the request, (seemingly) the ResultEvent is called which in turn dispatches the profileEvt dynamic event that changes the view state. However, the popup window does not get closed and the applet gets 'stuck.'
Below are the flex applet web service event listeners/handlers:
webService.addEventListener(ResultEvent.RESULT, function(event:ResultEvent):void
{
var rawData:String = String(event.result);
var profileEvt:DynamicEvent = new DynamicEvent("profileSaved", true);
[Code].....
View 1 Replies
Jan 25, 2010
When and where will see (ore already can get) Adobe® Stratus 2 examples (with source) on "Swarming", Live Application-Level Multicast, Distributed Data Storage?
View 1 Replies
Feb 12, 2010
I have some shared code between an Adobe AIR App and an Adobe Flex App.
On one line of this code, the program must behave differently depending on if it is running within the Air runtime, or the Flex runtime.
How can I programmatically detect the difference?
View 1 Replies
Aug 8, 2010
how to add a file to a hread?editing a small falsh animati
View 1 Replies