Flex :: Why Doesn't ActionScript Currently Support Threading
Jun 15, 2010Why doesn't Flex/ActionScript currently support threading?
View 5 RepliesWhy doesn't Flex/ActionScript currently support threading?
View 5 RepliesDoes Flex 3 support threading? If so, are there any examples or links I could look at?
View 3 RepliesWhy doesn't the Flex framework's mxml language support a constructor for components or accept constructor arguments for components? It's as far as I know not possible to declare an ActionScript object in mxml if it takes constructor arguments. I'm curious about the reason. Is it a design choice by Adobe or related to how declarative languages work? For example, why not allow:
<myNameSpace:MyComponent constructor="{argArray}"/>
Just moved my Flex app onto Ant with a basic ant script and I am getting this stupid error: mxmlc doesn't support the "file" attribute. I looked through docos and it seems that my code is right, so hows it going.
<!-- load previously defined configuration properties file -->
<property file="build.properties" />
<!-- points to our flexTasks.jar we copied to the libs folder to distribute with the project -->[code]...........
I know that flex does not support multi threading however, I would like to clear a doubt.I have two events that call a same function. Suppose the two events occur at the same instant (or in quick succession) will the handler be called twice, one after the other or there is a chance that if the handler function is taking too much time to execute the same handler can start executing simultaneously.
View 3 RepliesDoes it run in a separate thread or the main loop? If the latter, does that mean that the Timer might not be called if the main loop is in a long-running action?More generally, what can you tell me about threads running in ActionScript? My once-a-minute Timer is called if an event-handler runs for minutes, so it is not the case that all ActionScript runs in one thread.
View 1 RepliesI want to download a video on mobile device through flex framework. For that reason I need to have support of multithreading so that I can download video in background. Unfortunately, Flex doesn't have multithreading support. I am quite new with flex environment.
View 1 RepliesI have flash file which accepts data from Javascript using swfObject.js and displays it dynamically(using addVariable). But the problem occurring is it doesn't support all browsers. I have IE 6 and Mozilla Firefox 3 with Flash player version 10 installed in it. I am not able to run the file on it. I can't understand why as
the code written in as3 and in javascript is right.
I seem to have a problem with my email validator. I have on my stage an input textfield with a variable of email. After echt keypress it validates the email. I found the following script:
[Code]...
Why doesn't ARM 11 or earlier support Adobe Flash player (Android version)?
View 2 RepliesI'm trying to build a simple HTML to Flash communicator for an uni project, it's working fine in Firefox, but I keep on getting an "Object doesn't support this property or method" error in IE. The line it says the error is having is document.getElementById("flashTest").sendValFromHtml(form.connection.value, form.location.value, form.postcode.value);
[Code]...
i don't understand flash plugin only support .swf file,not support .flv file? always require load a swf file for play flv file, for exampes:
<embed type="video/x-flv" src="http://www.my.com/test.flv"></embed>
must be use a swf for play
<embed type="application/x-shockwave-flash" src="http://www.my.com/player.swf" flashvars=""></embed>
Hi..my friis Multi-threading or Background process possible in Flash(as3)..?
View 1 RepliesI created a new class with private vars and public get properties.When I create a new instance of the class, it loads text files content to the private vars - it probably takes a bit of time to load it.After the new instance created, I try to get the value of the private var with the get property:
var item1:MyItem = new MyItem("0001");
trace(item1.ItemName);
Well, The output is blank.The string that ItemName points to is not undefined, it contains data.So, it's like a timing issue, and ActionScript is probably running the code using background multi-threading, so it's calling the trace command before it finished to run all methods in the MyItem c'tor (methods that load the text file data into the String var that ItemName points to).
Is there any way to force ActionScript avoid using this unwanted "background multi-threading", and run the code normally (by the order of the commands)? I mean like "Don't run the 2nd command until you finished running the 1st one".
I'm working on a project in flex and I have a few questions pertaining to performance. First off I know that I cannot write multi threaded programs but I understand the internals of the flash player are multithreaded1. when i call ActionScript Code:loaderObj.load(new URLRequest("ljdsfglsdhflsd")); will flash player make a new thread for that?2. I am also interested in making a custom Event class will the listener (which i assume is a loop that runs once per frame or more) run in a different thread. I want to minimize CPU usage as much as possible in areas I can.
View 0 RepliesIs there a way to open RAR / zip / 7z in AS3? Is it easy to use compression library in C with Alchemy?
View 3 RepliesI have a Flex object which collects a DTO from the server. All the fields arrive filled in correctly except for the one that is a HashMap. It arrives as null.I've tried giving it a type of both ArrayCollection and Dictionary, but that hasn't fixed it.Does anyone know if there's an inherent incomaptability between Java HashMap and Flex?If not, what might I be doing wrong here? I'm looking at my jboss console and I see the data being populated correctly in the server side before delivery to the client.
View 3 RepliesI have a flash conversion function that I call like this:[code]...
View 1 RepliesDoes Flex 4 support put request?
I know that Silverlight 4 support put request using its client http stack.
I need to create an application that will use Flex on the client side and PHP on the server side. In my application I will need to have transactions opened for a long time (maybe 1, 2, 3 minutes). Can you give me any toughts on what PHP-FLEX fraework to use? I even found something like AS3FlexDB but it seem to not supporting transactions for a long time.
View 1 RepliesI was about to start with a chat application like this one. I was wondering how to do it on Eclipse. Does Eclipse support Flex development? Is there a plugin or a tool which I need to download for Eclipse? I installed Flash Develop on my machine, but I am getting some issue in unzipping the zip file for Flex SDK which I can't figure out why. Thus I was thinking of switching to Eclipse.
View 2 RepliesSome places in my flex app, I use ResourceManager.getInstance().getString, and other places I use mxml @Resource tag to retrieve resource properties dynamically loaded from ResourceManager. resourceManager.loadResourceModule(resourceModuleURL); But only strings from ResourceManager.getInstance().getString show proper locale based values, while the @Resource tag only returns values from en_US resource. I guess it is because en_US is what I compiled with (-locale=en_US ). So I am wondering if I am using a dynamicly-loaded resource, do I have to abandon the @Resource tag and use ResourceManager.getInstance().getString ?
View 1 RepliesIf your Flash app is in the middle of some code, such as a method, or the AS on a frame, and it gets a callback from an asynchronous event, how does it handle that? Is execution halted on the current code to handle the callback? Or does the currently executing code finish first?
I can't seem to find any white papers or documentation on the threading behind Flash.
I'm looking for something that will support image rotation, multiple image layers, cropping, etc., and allow the client to customize which features are to be shown.
View 1 RepliesI need Flex code to support HTML5 File API. Because I need to support File API feature for those browsers that did not support File API. Do you have any code or link?
View 1 RepliesI have a DataGrid of objects, and I want to modally edit them; pop up a dialog, change the item, and if the user clicks "Ok", save the changes back to the original item, and if they click "Cancel", do nothing. It seems obvious that if I simply pass in a reference to the original object and change it using data bindings to the fields in the edit form, I won't be able to cancel my edits. How can I support that capability?
View 1 RepliesI'm planning on building a Flex based multiplayer game, and I'm researching what will be required for the server end. I have PHP experience, so I started looking at ZendAMF.
Now in this game, I'll need the concept of rooms, and real time updates to clients in those rooms, so it looks like I'll be using remote shared objects (correct, yes?). I'm not seeing where ZendAMF can support this.It seems to indicate that ZendAMF isn't going to do what I want. WebORB for PHP seems to be the only PHP based solution that does messaging, but on that page it doesn't mention "real-time" next to it like the Java based ones below it do.
I've been trying to find the right configuration for supporting both http/s requests in a Flex app. I've read all the docs and they allude to doing something like the following:
<default-channels>
<channel ref="my-secure-amf">
<serialization>[code]..........
I'm running with Tomcat 5.5.17 and Java 5.The BlazeDS docs say this is the best practice. Is there a better way? With this config, there seems to be 2-3 retries associated with each channel defined in the default-channels element so it always takes ~20s before the my-amf channel connects via a http request. Is there a way to override the 2-3 retries to say, 1 retry for each channel?
I am using text layout framework in my application. I am using textflow as editor to my application. As text layout framework supports multiple languages. I a m able to see the text in multiple languages. Now my doubt is, can I type in different languages? For example: As in word if we choose the font as Hindi then whatever we type it comes in Hindi.
View 1 RepliesThe sorting capabilities that are available in Flex assume that you have access to all the data, but I'm using a paginated datagrid (with custom code), the datagrid is binded to an ArrayCollection instance, on the next page call I change the data of the dataprovider and everything works ok, but for sorting I need to override the click or event better override the sort method of the arraycollection
All this is to be able to do a server-side sorting.