Adobe - Ensure A Flex DataProvider Processes The Data Synchronously?
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
Similar Posts:
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
Nov 28, 2009
How to create multiple processes in Adobe Air program? Docs? Tuts? Algorithms? (for ex I have some design logic and some services client logic i want to run them in separate processes) (Air 2.0 is ok for me)
View 4 Replies
Jun 9, 2010
I have a project that was compiled with the Flex 3.2 SDK. One of my components is a combobox, which is bound to a property (called products) in the Cairngorm model. If I insert a new value into model.products, then the combobox immediately shows the new value. Works perfectly.
I then moved to the 3.5 SDK, and running the identical operation causes a problem. Even though the model has been updated (I have verified that this is definately the case), the combobox does not show the new value correctly - it seems to be aware that there is a new item because there is a new row in the combo, but the new row is blank and unselectable. The existing items in the combo are there and selectable (as they should be). If I re-initialising the form (i.e. close and re-open the TitleWindow on which the combo is located), then all the correct values (including the new one) are shown in the combo.
I have swapped back and forth a few times between 3.2 and 3.5 to verify that this is indeed the root cause.
View 2 Replies
Jan 26, 2012
I am building an app for a website that will filter through the shops carrying some products/brands and show the results in a List component. I got all the way up to loading the data, putting brands/countries/cities in comboboxes so a user can filter in which country and city he wants to look and for which brand. No problem till now. My problem is that while the dataprovider works as it should when hardcoding some values to the labels that I use for the item renderer of each entry, I cannot get the real data from the data provider. You will see in the code below, that in the VGroup component (which I use for each shop in the list) there are 4 labels, where 3 of them are hard coded, just to see it works.
One of the labels though is trying to get the real data from the xml file and thats where I stop. In all the tutorials i ve seen (and documentation too) everybody just hits "data.XYZ" where XYZ is the name of the attribute or node to get. Doing the same in my case just returns an error of "1120: Access of undefined property data.". There is also an xml file but its loaded correctly and the different xmlLists DO have the correct nodes stored, so I do not think it needs to be posted, unless you think otherwise. The xml nodes for each shop are "title", "tel","mail","city" and I am stuck trying to get the title. The function that matters the most is the filterShops one and then of course the whole list and itemrenderer block.
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
width="815" height="578" minWidth="955" minHeight="600"
creationComplete="sendData()">
[Code] .....
View 2 Replies
Nov 10, 2009
[code]...
Here am getting array of groups(groupName,GroupID each row ) from a RemoteObject and displaying in a ComboBox. I am selecting the groups with selectedIndex as 0,1,2,3, but I want my groupIDs of correspoding groupnames,which am bringing to client side.
How can I get actual the groupId of the selected group?
View 1 Replies
Jan 6, 2010
In Flex, how do I create a summary(say total of various domains) from the data provider and display in chart? Say this is my dataprovider.. I want to display the total estimate of each territory as a slice in piechart
private var dpFlat:ArrayCollection = new ArrayCollection([
{Region:"Southwest", Territory:"Arizona",
Territory_Rep:"Barbara Jennings", Actual:38865, Estimate:40000}, [code].....
View 1 Replies
Mar 23, 2011
Following is the sample code. While I start editing either in optionId column or option column, the other rows of the same column are also get affected and reflecting the same value. But when I am editing in other columns it is working fine... Don't know the reason.
[Code]...
View 1 Replies
Oct 4, 2011
I wok on desktop Adobe AIR application. It creates .DMG for mac os builds. It is actually command line application. What I want is the ability to call it from command line - add it .../*.app/Content/MacOS to $PATH. Is there any standard way to do it with AIR ? I need it to work on Windows as well.
View 1 Replies
Aug 26, 2009
I have a flex datagrid. it is bound to an array collection. if the user sorts on column X it works fine. then, if the user causes the array collection to change, the datagrid forgets that it was sorted on column X.what do I need to do to preserve this sort preference so that the new array data will appear sorted by column X?
View 4 Replies
Nov 12, 2009
I am using a TileList control with an effect sequence linked to the itemsChangeEffect property.[code]...
However, my data provider is a ListCollectionView that I use to filter items. When I set a filter criteria, it will hide a couple of items from the TileList but there is no animation like when I remove an item. Is there a way to animate the TileList when an item is filtered ?
View 1 Replies
Feb 14, 2010
I've added an eventListener to the COLLECTION_CHANGE event that is fired when the grid is finished resorting the items in its dataProvider, after the user clicks on a column header:MyType (myDataGrid.dataProvider).addEventListener(CollectionEvent.COLLECTION_CHANGE,onDataGridResort);
View 1 Replies
Nov 17, 2010
In my AIR app, I have a list of file that needs to be downloaded from remote server. I want to make this download happen sunchronously. [code]...
View 1 Replies
Jul 16, 2009
I want to store some test data for a FlexUnit test in small XML files in my Flex project, and access them trivially for the flex test. How can I load these bits of data synchronously? HTTPService is the way I'd be loading them _a_synchronously, but adding event handlers to my test cases seems like a bit of overkill.
View 2 Replies
Oct 1, 2009
I see the benefit of asynchronous commands (waiting for server responses...) but in my flex app it creates me more problem than anything. Here's what I want: EVERY command executes only after the previous one returned (to result or fault function) And I'd like to do this as easily as possible.. by the way the GUI must become irresponsive (maybe a wait message) while a long command is being executed (I could show the wait message in the execute function and remove it in the fault or result function..)
View 1 Replies
Oct 22, 2011
I have a var that holds the String value for the path to an image. How can I use that to get the ByteArray from that image synchronously?
View 1 Replies
Nov 9, 2010
Sometimes flash seems to execute two loops faster that one loop which contains all of the actions that the first two loops contain. Does flash cash processes so that repetitive processes are performed faster if they are performed back-to-back?
View 9 Replies
Feb 14, 2011
Is it possible to have an AIR application built in Flex run as process or receive intents? For example if I wanted to make a calendar and each time there was an event at a certain time, have the AIR up which isn't running in the foreground, pop-up and inform the user that "it's time". Can it be done with the current stable versions of both AIR and Flex SDK?
View 1 Replies
Jul 28, 2010
Having this new problem with flash builder where I run a debug flashplayer, close out the flash and it doesn't always kill the process. Sometimes it does sometimes it doesn't, leaving me, after a while, having 10 or more flashplayer tabs on windows still open. I try to close them using the task manager with no luck.
View 1 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
Jan 25, 2010
Is it possible to get somehow list of running applications/processes and, while running in background, check which process is active?
Additionally - if somehow, the answer was yes, is it possible to react for change of active window / application react just as if it was Event, or bind to it custom event (e.g. Event.SystemActiveAppChange)?
EDIT: Due to probable missunderstanding, I mean local applications - on your win/mac/linux machine - I would like to (in process of learning of language) track what apps I use the most, make a little graph maybe?
So, the point is: in AIR app, developed in FLEX, I would like to get/list all running applications/processes, as well as which one is active (on user's PC/Mac/Linux)
View 3 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 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
Apr 2, 2012
Few users of my Flex 4.6 web application are complaining, that the mx.controls.PopUpButton at the right bottom corner of it sometimes opens a List underneath it and is thus unusable (I can't reproduce that myself - probably an unlucky combination of their Flash player and/or font size setting?)
How could I ensure, that the popUp component (in my case it is a spark.components.List) always opens above the PopUpButton?
I suspect, that I should create a skin based on mx.skins.halo.PopUpButtonSkin and assign it to my PopUpButton? And I probably should use the PopUpPosition.ABOVE constant together with the PopUpAnchor?
I have prepared a screenshot and a simple Text.mxml:
<?xml version="1.0" encoding="utf-8"?>
<s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"
[Code]....
I still can't reproduce the bug myself, my users aren't very helpful (mostly older folks, playing my card game). I've searched in Adobe JIRA, but couldn't find such a bug.
I wonder, if there is a way to short-circuit that method to enforce opening the popUp above the PopUpButton.
Or if I should put the _list into some container...
View 1 Replies
Jul 5, 2010
I want to write some data stored in a string variable into a text(txt) file.
View 4 Replies
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
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 4, 2010
If I try an use a DataProvider in actionscript in my flex project using FlexBuilder 3:
<mx:Script> <![CDATA[
import fl.data.DataProvider;
I get a compiler error:
[Code]...
There are hundreds of posts on this subject, none with solution. [URL].. has an answer which is meaningless. The mxml page I am developing already has a ComboBox dragged onto it, this does not magically put the DataProvider in a library or similar as implied.
View 1 Replies
Nov 17, 2010
I try to assign xml as dataprovider to datgrid. The datgrid is inside a moviclip. If i attach that movieclip from current ApplicationDomain, it works. If i try to attach from another ApplicationDomain, it doesnt work. But i can trace the object name and DataProvider (is []). The assigning part doesnt work. any setting issue?
Here is the error,
TypeError: Error #1034: Type Coercion failed: cannot convert fl.data::DataProvider@32377dc1 to fl.data.DataProvider.
I am using CS5 and AS3.
View 1 Replies
Aug 4, 2010
I have a code like this:
<mx:Repeater id="allItemRepeator"
dataProvider="{_model.allItems}"
>
<components:ComponentSelector id="componentSelector"
[Code]....
When code changes for allItems the item disapears from screen as expected but still sits in memory! I know this by a function inside a compoenent that has "trace" so the trace output still displays even after the component disappears from screen. How do I ensure that the element is deleted when it's reference is deleted? Will using List-based component to display items instead of "Repeator" solve the problem (it requires significant refactoring of my code so I'm asking before trying it out)
View 1 Replies