Flex :: Daisy-chained ListCollectionView Not Reflecting Changes To Filter In Source Collection

Dec 8, 2011

ListCollectionView is often promoted as a great way to daisy-chain different views of the same data. You have some source collection and then use ListCollectionView + filterFunction to wrap the source data and present a subset of that source collection. When the source collection changes (either adds or removals), the chained LCV gets updated automatically. However, if the filterFunction for the source collection changes, it does not appear to propagate to the chained LCV:

[Code]...

At this point, I would expect justMatts to receive a CollectionChangeEvent and rerun its filter. Since all Matts have been filtered out of the source object, justMatts would be empty as well. However if you look in ListCollectionView code, they don't handle a CollectionEventKind.REFRESH which is what gets fired when source gets a new filter applied. Am I doing something wrong here (using wrong class, etc) or does nothing in Flex support the changes to source filter.

I can get this working as I expect it to by manually dispatching a CollectionEventKind.RESET on source, but I was hoping to not have to subclass anything.

View 1 Replies


Similar Posts:


Arraycollection - Flex 3 Removing Items From An Array Collection When The User Clicks A Button And Reflecting That In A Repeater

May 18, 2011

I have an arrayCollection with the following structure:

[Code]...

the AC is defined as follows:[Bindable] private var projectErrorsAC:ArrayCollection = new ArrayCollection;

I'm using this AC in a repeater to display each error. After each error is shown, I've placed an "Accept" and "Deny" button. Once the user clicks either one of these buttons, I'd like to call a function that removes the particular error from the AC. Here's what I have so far:

[Code]...

View 2 Replies

Flex :: Filter Only Certain Column In Array Collection?

Jul 13, 2009

Is it possible for me to filter only a certain column in a arraycollection but still displaying the other values in a datagrid?

View 1 Replies

Flex :: Draw Daisy Using Degrafa?

Dec 4, 2009

I'm trying to create dynamic flower component to depict relations between parent object and it's children.Parent object is represented by daisy center and the children are represented by petals. Each of above can have a specific fill/color and text label, moreover petals should be draggable. My question is: is that possible to do using Degrafa? Can anyone post an example of drawing flower using degrafa?

View 1 Replies

Use Flex Tilelist Data Effects Combined With A ListCollectionView Dataprovider?

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

Flex :: Why Doesn't ListCollectionView Show New Items Added To The Underlying List

Jun 20, 2011

I have an (empty) ArrayCollection that I wrap with a ListCollectionView. Then I add a series of items to the ArrayCollection, but these are not showing up in the view.

public var transactions : ArrayCollection = new ArrayCollection();
public var filteredTransactions : ListCollectionView = new ListCollectionView(transactions);

transactions contains 150 items, filteredTransactions contains none. I originally thought it was the filter I was applying, but even when I remove the filter, I still get no items in the filtered list.

Do I need to add the items to the view as well as the underlying collection (this would seem to defeat the purpose of using a view though...)?

View 1 Replies

C++ :: Flash Crashes When Stopping Directshow Source Filter?

Oct 4, 2010

Here's the callstack :

0480b000()
vcam.ax!CSourceStream::DoBufferProcessingLoop() + 0xe1 bytes
vcam.ax!CSourceStream::ThreadProc() + 0x13e bytes[code]....

The callstack is from this thread:

0 > 0x000015b8 Worker Thread CAMThread::InitialThreadProc 0480b000 Normal 0[code]......

View 2 Replies

Actionscript 3 :: Write An Adapter That Maps All The LinkedSetFx Events To The Expected Flex Collection Events(As3Common-collection)

Aug 25, 2010

LinkeSetFx has its own CollectionEvent, but I don't know how to map the LinkedSetFx event to mx.events.collectionEvent(I want use it in ComboBox). LinkedSetFx is in AS3Commons-collection framework.Here is the url, choose the as3commons-collections-1.0.0.zip, you'll find LinkedSetFx in srcorgas3commonscollectionsfx

View 1 Replies

Actionscript 3 :: Source From External Folder (linked Source) Not Appearing In Flex?

Aug 26, 2010

i have a Air Project in which i have added three extenal source folders. but when i reopen project or strat flash builder again i get icon on those folder like this but when i open the configuration for that project and try to validate the path and adding it again i get message like this but the path is valid. proof is this pic what could be possible error,,, is there any way that i when ever re-open project i get no warning and able to navigate through the linked source code. now i am doing it

1- deleting on of the linked folder

2- again adding that folder.

View 2 Replies

Flex :: Sort Collection And Sort Remains In Place When Adding To Collection?

Jun 30, 2011

When I get a collection back from the service tier, I create an ArrayCollection and apply a sort. When I add an item to the collection later on, the sort is still in place? It seems to be the case. I thought I was only sorting it once, not applying a sort that will stick??Here is the method for adding an item:

private function onAddNewClick():void
{
var fileTemplate:FileTemplateDetailDTO = new FileTemplateDetailDTO();

[code].....

View 4 Replies

ActionScript 3.0 :: Flex Script Source In Source Path Cannot Be Found

Jan 11, 2010

So inside my src folder I have my app.mxml file. I have a source directory pointed to my actionscript library.It appears that Flex does not look inside that source directory including an .as file within the master mxml file.

Code:
<mx:Script source="com/domain/something/somethingelse/app.as"/>

I could just have the main app.as file inside the src folder along with my app.mxml file but it would be nice if it could live in the actionscript library.

View 1 Replies

ActionScript 3.0 :: Flex Source In Source Path Cannot Be Found

Aug 21, 2009

So inside my src folder I have my app.mxml file. I have a source directory pointed to my actionscript library.It appears that Flex does not look inside that source directory including an .as file within the master mxml file.[code]I could just have the main app.as file inside the src folder along with my app.mxml file but it would be nice if it could live in the actionscript library.

View 2 Replies

Actionscript 3 :: Write "Intercepting Filter Pattern" Like Java's Servlet Filter In Flex?

Feb 10, 2011

I want to know how to write "Intercepting Filter Pattern" like Java's servlet filter in Flex.

And I want to insert it into the classes which have a role of server communicating.

View 1 Replies

Flex :: Binding Two Array Collection To Flex One Array Collection?

Oct 10, 2011

In my flex application im using two datagridfirst datgrid is for items collectionssecond is for bank details.if i click one row in first datagrid (which has the items collections)...a unique code is taken from the grid(which is primary key).then, i have to select two or more banks using itemrenderer checkboxes in second datagrid(which has the bank details)ow, have to bind the bank details(one or more banks) with that one primary key in first datagrid. to an single array collection... and have to show it in another new datagrid(thirdone)

View 1 Replies

Actionscript 3 :: Daisy Chain Movies Together In Flash

Feb 3, 2010

How do I daisy chain movies together in Flash AS3?

A. What is the best way to daisy chain movies together in Flash AS3.

B. Can I treat it as an extended timeline beyond 16,000 frames

View 3 Replies

ActionScript 3.0 :: Daisy-chaining Function Calls Gracefully?

Jun 16, 2010

I have a video playback system that runs in a loop as it traverses the playlist of videos, doing something like this:On playback start:

-check for pre-roll ad, play ad if set to true; otherwise:
-check for branding video bumper, play bumper if set to true; otherwise:
-play video

On playback end:
-check for post-roll ad, play ad if true; otherwise:
-reset video

The way I have it coded/hacked works fine, but is less than ideal, especially as I plan to build on it. It looks something like this:[code]So, what's a better way to handle this? For an interactive timeline/map I've made in the past, there were a number events that were triggered at certain times during audio narration. Each event was unique (some were animations, others were text labels that appeared, etc), but I unified them as classes with a common 'time' property and common public go() function, and threw them into an array. As the narration played back I would check the 'time' property of the next object in the array, and once it matched I would call the go() function for that event, increment the phase position (so I know which array index to check next), and continue.

View 13 Replies

ActionScript 2.0 :: Way To Make Dynamic Reflecting Of A Mc

Jul 5, 2007

is there any way to flip dynamic text? When ever i rotate/flip/manipulate a dynamic text box it seems to stop displaying/functioning.is there a way to make a dynamic reflecting of a mc (containing a (unmodified) dynamic text box)?any possible solutions to see upside down dynamically loaded text!

View 5 Replies

Professional :: Reflecting Bullet Based On Angle Of Wall?

Mar 19, 2010

I know this will inolve some trig but how exactly will it be implemented? Heres what I have for when the bullet hits the wall:

rotation *= -1;

That works based off of gun angle but not wall angle.

View 7 Replies

ActionScript 2.0 :: Slider Button Reflecting Initial Value Position

Oct 8, 2009

I have a slider in my movie (depositAmount) and in the component inspecter it has Initial value for the slider. In my first frame I have an input field for depositAmount and i want the position of the slider button to reflect that. So if the min and max deposit amount are 0 and $10,000 respectively and the user inputs deposit Amount as $2000, I'd like to position the slider button 1/5th of the way across the slider. Is that possible? At the moment the slider button will just reflect the initial value position.

View 0 Replies

Flex - Get A Collection Of UIComponents Based On A Stylename In Adobe Flex?

Nov 4, 2009

Does anyone know an Actionscript equivalent of the javascript getElementsByClassName.

What I would like to do is add a custom 'stylename' to various components which I can then use to get a collection of these objects and therefore process their visibility property.

The idea is I want to hide various components based on what roles a logged in user has - I just want to make this flexible by adding an array of rolenames to a custom property or use the stylename property on a Canvas or Panel etc.

View 1 Replies

ActionScript 3.0 :: Bitmap Filter - Push The DropShadow Filter Onto Movie Clip At RunTime?

Mar 10, 2011

I looked at the following example in the AS3 Reference: [URL] It is unclear to me looking at the package example how to apply this in standard ActionScript 3 without packages to a Movie Clip resident in my Library that gets called at RunTime. how I would push the DropShadow filter onto my Movie Clip at RunTime?

View 6 Replies

IDE :: Filter Is Using Too Much Memory - Apply The Filter To Only A Specific Area Of A Movieclip?

Jul 15, 2009

To achieve a zoom effect in our 2D flash game, we make the background of the game much bigger than the visible stage. This becomes a problem when the background is complex or when we apply a grayscale filter to the background. Is there a better way to do zoom? Or, is there a way to apply the filter to only a specific area of a movieclip?

View 2 Replies

Actionscript 3 :: Searching A Collection In Flex?

Sep 10, 2009

I have a collection in Flex and I have sorted it by a date field, so the latest elements appear first in my view.

In order to do this I have applied a sort field like so:

var articleSort:Sort = new Sort();
articleSort.fields = [ new SortField('published', false, true), new SortField('id', true, true)];
articles.sort = articleSort;
articles.refresh();

Now I want to be able to use a cursor to findFirst() in that collection based on the id. However in order to do that I have to also pass through the published date in the findFirst() method. This is a real pain as I don't have the published date at that time, (or it's expensive to get).

articleCoursor.findFirst({ published: modelLocator.articles.getArticleById(event.newArticleId).published, id: event.newArticleId });

As you can see I am having to get it from the modelLocator in my application, and basically look up the item...

Ideally I would like to pass a wildcard though for the date in the FindFirst() function, as the id is the only thing I care about when searching. However it seems it Flex I can't do that.

The other option that occurred to me is to resort the collection before searching, but that would cause my view to re-render (as it's bound to the collection) on the collections refresh event. Plus it seems rather silly to have to resort in order to search.

View 1 Replies

Flex :: Initializing A Collection From MXML?

Feb 3, 2010

How does one initialize a collection instance from MXML in Flex/Actionscript?[code]...

View 1 Replies

Flex :: Collection Of Typed Objects?

Apr 13, 2011

For example in Java you can do:List<Person> where Person is the object type.In AS3/FlexArrayCollection which takes any object type. Is there any way to create a list/collection of declared objects in AS3/Flex (or is it impossible due to weakly typed language)?

View 2 Replies

Xml :: Add File In Array Collection In Flex?

May 6, 2011

i have created one array collection in flex.and i have my one XML file. Now i want to call that XML file into arraycollection

View 2 Replies

Actionscript 3 :: Reordering An Array Collection Based On Another Array Collection Hierarchy?

Sep 16, 2011

I have an array, crewPositionsAC that contains a list of position abreviatations - EP, PR, DR, WR, and so on. These positions are read in through an XML file each time my flex application loads. Also being populated from an XML is a project. Within a project, there are positions (a student assigned to a type of position listed within crewPositionsAC). These positions are not necessarily in the correct hierarchy order dictated by crewPositionsAC. I have all the positions within an ArrayCollection (positionsAC) with the following structure:

positionsAC (arrayCollection)
[0] = Array
[0] = startOffset
[1] = numDays

[code].....

Then, the user can click a button to add another position. When the "Add Crew Member" button is pressed, the user is presented with a list of possible positions to add. Currently, I simply add another array to positionsAC. This results in the recently added crew member to placed on the bottom of the list. I need to take positionsAC and reorder it based on it's [2] item (role) based on the hierarchy defined in the crewPositionsAC. crewPositionsAC has the following structure:

crewPositionsAC:
[0] = EP
[1] = PR
[2] = DR
[3] = WR

* continue until all possible position types are listed

View 2 Replies

Xml - Flex Tree Control With Array Collection?

Apr 9, 2012

Im trying to populate a tree control with an external xml file brought in via arraycollection but i need to group the xml data to display in the tree Okay my external xml file is called parts.xml and it looks like this:

[Code]...

additionally what i intend is for the user to have huge tree of parts and they select a node at the partnumber level and drag an drop it on to a datagrid where all the other tags of the part gets displayed.

Ive tried and tried many things without any luck. even now im thinking maybe if i looped through the array-collection and created a new array just for the tree to get it to display the way i need it, then when the user dragged and drop a part onto the grid i would have code that would look for that part number in the original arraycollection and add it to a new array just for the datagrid... i still dont know how i would create that new array for the tree!! cause the xml data is grouped by partgroup and then grouped again by parttype before you get the individual part numbers

View 1 Replies

Flex :: Limiting The Values In An Array Collection?

Jul 28, 2009

I have an array collection that I would like to limit to say 100 items. I tried setting up a filter function where the return was:return (myAC.getItemIndex(item) > 100);but the value was always -1. For whatever reason it couldn't find the item, even though the item is definitely there.I'm able to do this with a while loop:while(myAC.length > 100) myAC.removeItemAt(100);

View 4 Replies

Flex :: Get Two Xml Files In A Single Array Collection?

Oct 27, 2009

I have two xml files, defect. xml and employee.xml. But the files havea common field but with different names in each file. I want both the files to be merged in to a single array collection.

The structure of my defect.xml file is:

<defectList>
<defect>
<revId>123</revId>

[Code]....

Now, if I give datafield as "employeeId" in the datagrid with defectList as dataprovider, I get the employee id of the corresponding Employee Name.

View 1 Replies







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