I think using sliders is an interesting way to give the user a better way of filtering the data like the ones used atUsing check boxes and drop downs also seem to work as it can improve the users search/filter experience.What is the best approach/methodology to use to build this sort of Flash solution? I want to build simple interfaces that can be used anytime with pre-defined data that the user can organize or filter by various different categories. Examples I can think of are product, house or holiday searches using categories such as price, quanity etc.
I have an array that has 30 date objects. The date objects are indexed in the array from the minimum date value to the maximum date value. What I would like to do is retrieve only 7 dates from the array. Out of the 7, the first one should be the minDate and the last should be the maxDate, with 5 dates in the middle. The 7 numbers should increment evenly from the minDate to the maxDate.
i am working on a line chart on flex which enable me to view the progress of data according to the year. I have tried using a slider to filter but it doesn't seemed to work.
I want to create a Flash file so a user can check boxes to filter what images are displayed--the (unfiltered) images would come from an XML file. Or, a MySQL database if that's easier. Is this possible? If so, how?
I've search all over today trying to find how to do this, and not being familiar with actionscript is starting to catch up to me. What I would like to accomplish is: I have a list of messages in a Datagrid coming from a dataprovider in another class, which in turn gets them from our Oracle DB. I need to all the user to set a visible state on the message, and then filter that out of the datagrid with the click of a button. I have the check box for hide, and it sets that value into the database. I can't figure out how to get the filterFunction to work with an array collection when the filter parameter is within the row data.Here is the code
public function filterResults():void { modelLocator.notification.messageList.filterFunction = filterRows; modelLocator.notification.messageList.refresh();
I am new here at Kirupa. I have read the xml tutorial by kirupa but I have problem with filtering my xml. Following is the situation. I have an XMLList : list =
[Code]...
So If there is more than one result no problem! Problem comes only when I have only one result.
I am trying to filter xml data based on a varying amount of factors, both category and range (code below). Is it even possible to put more than one conditional statement in an XML filter?
This is my first post on this forum, so sorry If Im posting in the wrong spot or asking stupid questions. I've been programing for several years, but I'm kinda new to using XML in flash. I'm making an xml menu system and I would like to know if it is possible to filter without a defining the parent node. For example I would like to do this... var whatIwantToFind = myXML..(@name == 'munkinugget'); Unfortunately this throws a syntax error. It tells me that its expecting a double colon before the semicolon.
I am trying to build an image gallery that will be dynamic, for example if a person will choose show me image gallery of products of price over 200 $ , he will see those products only, if he will choose back he will see all products images again... for better understanding what i need to do is something similar to this : [URL]
I have been given the SQL file which i have exported as XML, i understand this is the easiest format for flash to read. I am sure this is a really simple thing to do as it is basically filtering the sql/xml.
how to filter the below XML (loaded into a var called "projectsXML") by the contents of the "tag" nodes, but can't quite get it working. So for instance, how would I use an E4X expression to return an XMLList that contained only those projects which have a tag of "Website"?
Because also the photo-url-tag has a dash, I needed to parse it with ...child("photo-url"). This worked fine, but if I want to filter these tags(photo-url), in order to receive all photo-url's with the same attribute: "max-widht='1280'", I couldn't manage to do so. I tried this approach:
var photoUrl:XMLList = xml.posts.post.child("photo-url").(@max-width==1280);
I get this error:
ReferenceError: Error #1065: Variable @max is not defined.
I have an array that contains movieclips. All of the movieclips have te type and they are all positioned on the stage next to eachother.
Above the displayed movieclips i have 3 buttons, each simbolizing a type, what i want to do is: i click on one of the buttons and all of the movieclips that dont match the right type should be removed from the stage, the remaining movieclips should then tween so that they are next to eachother again. If i click the button again then the movieclips should be displayed again to where they were and should all be positioned again next to eachother.
is it possible if we want to filter or search node in XML just like SQL did. For Example
Code: package{ import flash.display.Sprite; public class Main extends Sprite{
[code]....
Then in Fruit.FLA i have an input text with button, searching is focused on Color Attributes of fruit if I want to write "re" on input text -> click button and then shows Fruit Color contain "re" --> red, green and it shows Watermelon, Pear dan Orange as result.
I have learned all I needed to know about flash and XML so far from this outstandingly clear and well-written article here on kirupa:m. Seriously, this is the best tutorial on the topic I have ever come across.There is, however, one case that occurred to me recently, which isn't covered. Maybe it's too specific, or maybe there is no solution to it....I want to do the following: I have written a base-class for preloading XML and images. I want to make it useable for many future-projects. However, the XML-Structure of my projects vary a lot. hat I need is a way to retrieve all tags of a given type, wherever they are. For example, I want to get all images tagged with <picture></picture>-tags from the xml, independently of the structure:
I have an XMLList from a feed that takes the form shown belowand has about 90 'contact' nodes within it.I can use E4X to filter the list by a node value and displayall contacts from the uk say but now I am trying to search by nameas the user types in to a text field and am stuck.What I want is that each time a character is entered in thesearch field a list is created that contains only objects whosfirstName node value contains what the user has entered. This mightbe a full name or just the first few letters.I managed to do this easily with an array of data by usingArray.filter() and String.search() but with an XMLList I am stuck.I could create an array I suppose but that seems dirty when the
I have an Air app that downloads a data set of around 100`000 objects and puts the objects in an ArrayCollection.I would like to apply various filters to the data set in numerous screens throughout the app. am a little worried about possible performance issues if I make multiple copies of the collection. However, if I don't copy the collection any filters applied will be reflected in all the screens and this is not the behavior I need.
I have a advancedDatagrid with column headers having input text boxes for filtering.The column is filtered according to input text when I use characters as data inside that column.But when I use numbers in the column field,filtering does not happen.Can anyone tell me what went wrong.
I've got Flex 4, Zend and php. I've set up paging in my datagrid but how do I do server-side filtering? I have about millions of records so obviously can't do client side filtering.
I have some xml and I am trying to filter it using e4x. My e4x statement looks like this: model.config.source.fees..fee.(@min<amount).@amount
My xml looks liks this: <flex><fees> <fee type="credit" min="0.00" max="200.00" amount="6.00"/> <fee type="credit" min="200.01" max="370.00" amount="10.00"/> </fees></flex>
When the e4x statement is run, I get an error message: Error #1065: Variable @min is not defined. But if I change my statement to model.config.source.fees..fee.@min it will return an xmllist of all the min attribute values, so min is defined, at least in that statement. Why doesnt the original statement work?
In Flex 4 I have a list where every product in it is rendered through an ItemRenderer. Now, when I filter the list I want to fadeout the products that are removed. I can't add the fadeout effect to the hideEffect of the item renderer since renderers are being reused. Anyone a valid (easy) solution on how the fadeout the products correctly.
Follow up question on Filtering XML based on multiple params - Flex.I was trying to create the Query part dynamically so that params and the keys take over for building the criteria part. Just to show:
//building a dynamic query like this var q1:String = "descendants ("E1" ) == "111" )"; Alert.show("Query>>"+q1.toString()); // Output: descendants ("E1" ) == "111"
[code]....
A comment here Filtering XML based on multiple params - Flex says that the expression inside the parentheses should not be a string. Agreed.So, is there any other approach to filter out multiple parameters in XML than to use the descendants(), which currently is not working out because we are building the search query dynamically, based on the params searched?
Once I met a task to put filter (blur for instance) onto only a part of a display object.As for bitmaps I just made two of them: filtered upper and unfiltered lower. And then just masked the filtered one with a proper shaped mask. It worked.
As for random display object, the same idea is coming. Draw the display object to some bitmap, put that bitmap higher and mask it with some shape.
i am having an issue with an array i am trying to extract values from. Basically I have all my variable pulled into an array and check to see is any of them are less than or greater than 2, if so the Link is activated and the user can click to go to a page. I not greater that 2 then the link takes the user to a different page.The code is below:
ActionScript Code: //-----Start variables for Send Button-----> var nrs:Number;[code].....
All My Variables trace back a 0, but the button does not click.