Question/problem
From site: "We needed a country combobox that used an array collection as its dataprovider, however would accept a text value (i.e. "Canada") and select the right item based on the text."
From site: "Here are the differences between the three properties. This will help you determine the appropriate property to use for your programs."
From site: "I have been asked several times for a simple example to illustrate uploading a file using ColdFusion with a Flex client. This example was designed to allow users to upload an image file."
From site: "In most projects there are tons of events that are dispatched, but that have no listeners subscribed to them. This shouldn't be an issue, but it turns out that the Flash Player deals with these events inefficiently. Luckily it's pretty easy to patch this for specific situations."
Solution to getting a "return value" in Flex from backend after using FileReference to upload a file.
From site: "With Actionscript 3 and Flashplayer 10 you can now use the new FileReference features. For example you download and upload a file with RemoteObjects ( Blazeds / LifeCycle ). In the early days you had to use a upload and download servlets."
From site: "Flash Player 10 changed the security settings on the FileReference.browse() method. Flash Player 10 put in some new security so that the only way to launch the file system dialog is though direct user interaction."
From site: "So in Flash Player 9, You couldn’t upload Files/save the files and have some sort of interaction with it without sending it to Server side scripts. Now, for example in Flash Player 10, a user can upload his/her word document and then be able to save it to his computer after he/she is done editing it without you having to store it on the server."
Question on weather it is possible to import and display an image in a Flex app (Flash Player 9) without sending it to the server first. Also asking weather it's possible to upload a file using RemoteObjects instead of HTTP service (URLRequest).
Hello,
I don’t think Paul’s question was answered and my questions goes in a similar direction.
Is there a way to get the image data from the FileReference object? Or is there another objet that would allow me to?
The reason is, I would like to covert the image data to a bitearray and send it with other information to AMFPHP as a remote Object.
I’ve been looking around for an example or tutorial that would come close to this but I can’t find one that actually show how to get the user to load (import) the image in my flex app. from a filebrowser like component.
Any help would be greatly appreciated.
Thanks
-Alain
Question/problem
Similarly, you’d have to use the FileReference object to have the user select a file from their operating system. Next, you would need to upload the file to a server to save the file and then redownload the image and get the image data that way (for the same reasons as above, Flash Player doesn’t allow for immediate data access without sending the data to the server).
You may want to ask the same question on a high traffic list like FlexCoders and see if anybody else has any clever solutions or workarounds.
Peter
Answer with no solution
A possible workaround to the problem of only being able to use HTTP service requests in Flex to do a file upload.
Question/Problem
Possible workaround
From site: "Jon and I have posted Episode 3 of the Drunk on Software video podcast. In this episode we talk about some of the real world performance issues with Flex’s ArrayCollection. We’ve also created a few demos which illustrate how in some cases ArrayCollection is 26 times slower than Array."
A workaround to the "multiple open copies error" in Flex Builder 3 when trying to open the Flex help contents in Firefox when it is already opened.
Option 2, if you want to keep something else set as your system default browser e.g. Safari, but would use Firefox for displaying Flex Builder help, you need to either edit or create a new external browser entry using a command structure as per comment 5 on the eclipse bug sheet. Essentially the following settings work…
From site: "...but how do we make sure that abstract methods have been implemented in subclasses as well? This post describes one solution (Mims has another) to this issue using the concept of type introspection in ActionScript 3.0."
A blogpost giving some examples of metaprogramming with custom actionscript metadata (i.e. creating custom metadata tags like [Bindable]) in Flex.
A thread talking about making use of data binding of ArrayCollections (model <> view) to make everything update automagically.
Here Cliff is saying that sending a reference of an ArrayCollection from the proxy to the view makes everything update automagically.
But when you overwrite or make a new ArrayCollection in the proxy, you need to send a new reference of this ArrayCollection (via notification) to the interested actors.
Question about using databinding (two way) or notifications for an arraycollection between model and view.
Question about using databinding for an arraycollection from the model to the view or make a copy of the collection and use notifications to update the model when the view changes.
Answer indicating that it's better to use databinding.
Forum thread about data binding in the model (PureMVC).
Hmmm it seems I understood this wrong. Here Cliff is just saying that it's not good practice to bind the model directly in the viewComponent because then the viewComponent would be to tightly coupled to the model. This should be done in the mediator. So data binding from the model to the view is OK but the binding itself must be done in the mediator.
Data binding in the model is not good practice!
Forum thread about view component and mediator coupling and the best way to do this (loose vs tight)
Question about the correct way of accessing viewComponent properties in the mediator. Send these with an event or access them from mediator?
Answer from Cliff, saying that more loose (so sending with event) = better, but may be overkill. It all depends on the complexity of viewComponent.
19 items | 55 visits
This list is to organize all gathered information on Flex and related things (PureMVC), from forums to official api documentations, into one convenient place thus forming a complete knowledge base to frequently asked questions.
Updated on Jan 23, 09
Created on Sep 08, 08
Category: Computers & Internet
URL: