ActionScript 3.0 :: Filtering Shown MovieClips (hiding / Unhiding)

Jul 22, 2009

What I'm trying to do can be seen here, it's a simple OOP data visualiser which loads in an XML and displays the data in it. At the bottom you'll see 6 btns with which you can hide/unhide certain data and it works fine, but the problem starts when you disable multiple of the buttons (click the disable, and again to enable).

Say you've hidden the right-handed people (leaving 2 pinkish circles) and you then hide the female persons. The result will be that the visible (left-handed) woman will disappear, but the ones already hidden will reappear! I hide/unhide the circles based on their alpha value, but now that I've gotten to the point of filtering results, that doesn't seem to be the way to go..

View 8 Replies


Similar Posts:


ActionScript 2.0 :: One Button To Use For Hiding And Unhiding Movie Clips

Apr 9, 2011

I'd like to have one button to use for hiding and unhiding movie clips. I think I'm having an issue with my if statement. I can get the button to hide the movie clip, but can't get it to work on unhiding the movie clip. Here's the code:

[Code]....

The code has only worked on hiding the movie clip. I just can't make it unhide after you click the button again.

View 2 Replies

Flex :: Filtering Data Shown On Linechart?

Jul 8, 2009

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.

View 4 Replies

ActionScript 2.0 :: Hiding/Showing Movieclips?

Aug 15, 2005

Well, i started a new project with a flying thing.I want to hide and show flames behind the flying "car".So is it possible to hide and show Movieclips with AS?

View 2 Replies

Actionscript 3.0 :: Array For Hiding Multiple Movieclips?

Dec 4, 2010

I have the following simple code that functions just fine. What I would like is to be able to use the first three linesybutton1.visible=false;mybutton2.visible=false;mybutton3.visible=false;) and group them into an array or something so I can have that run within the functions showImage1,showImage2 and showImage3 without having to write it out each time like I've done belowHaven't really used arrays, so not sure how to do it.

Code: Select allmybutton1.visible=false;
mybutton2.visible=false;
mybutton3.visible=false;

[code].......

View 4 Replies

ActionScript 3.0 :: Filtering The Sql And Xml?

Mar 14, 2012

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.

View 1 Replies

ActionScript 3.0 :: Filtering Xml With E4X

Jul 16, 2009

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"?

[Code]...

View 4 Replies

Flex - Filtering XMLListCollection?

Dec 23, 2011

I'm trying to create some sort of rangking. For this, I'm using a multilevel xml which I create with a php file.

[Code]...

View 2 Replies

ActionScript 2.0 :: Filtering XML On An Attribute?

Oct 19, 2006

My brain has melted at this point, so I'll ask you all - how do I filter for the following attribute:

story.attributes.year == "2005"

in the code below, so that only the nodes marked "2005" are displayed? Files are attached.

Code:
//Create textfield
this.createTextField("content_txt", 10, 0, 0, 390, 0);
//Create and load styles

[Code]....

View 3 Replies

ActionScript 2.0 :: Make An XML Filtering?

Aug 19, 2008

Making a XML Filtering - Sorting funcion.

View 2 Replies

ActionScript3 :: Filtering Xml-attributes That Contain Dashes?

Dec 22, 2009

There are dashes in attributes of an xml, and I don't know how to filter them: Here you can see a simple example of the xml:

<posts>
<post>
<photo-url max-width="1280">http://blabla.tumblr.com/photo/98</photo-url>
</post>
</posts>

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.

View 2 Replies

Javascript :: Filtering Data In An Array?

Apr 22, 2010

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.

View 1 Replies

Actionscript 3 :: Filtering Items In An Array?

Jun 17, 2011

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.

View 2 Replies

ActionScript 3.0 :: On The Fly XML Filtering By Node Attribute?

Oct 5, 2009

can I somehow word something like this:

ActionScript Code:
var i:uint = 2;
myLoader.load(new URLRequest(myXML.category[0].project[/* ...node which attribute named

[code]....

View 2 Replies

ActionScript 3.0 :: Custom XML Filtering With XMLlist?

Dec 10, 2010

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.

View 2 Replies

ActionScript 2.0 :: Filtering Data Using Flash?

Dec 3, 2006

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.

View 10 Replies

ActionScript 3.0 :: Flash Filtering With Attribute

Jul 22, 2010

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.

View 1 Replies

ActionScript 3.0 :: Filtering Text Box Content?

Jan 5, 2011

I've made a file that reads my URL string and posts it on a text box named queryString and my URL parameter is posted on that text box.

Waht I need to do now is filter that information into 3 diferent boxes, ex:

// this is OK
URLparameter = ?var1=val1&var2=val2&var3=val3

[code]....

View 4 Replies

ActionScript 3.0 :: Filtering XML For Specific Tags?

Jun 16, 2011

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:

PHP Code:
<gallery><picture>image1.jpg</picture><picture>image2.jpg</picture></gallery> 
PHP Code:

[code].....

View 2 Replies

ActionScript 3.0 :: Filtering XMLList By Partial String?

Nov 20, 2008

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

View 4 Replies

Flex :: Adobe Air Filtering Large Datasets?

Sep 30, 2009

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.

View 3 Replies

Flex :: Filtering In AdvancedDataGrid Using Input Text

Dec 30, 2009

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.

View 1 Replies

Flex :: Implement Server-side Filtering ?

Jun 20, 2010

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.

View 1 Replies

Flex :: Filtering By Attributes Has Undefined Variable

Aug 24, 2010

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?

View 1 Replies

Flex :: Fade In/out Items In List When Filtering?

Jan 27, 2011

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.

View 1 Replies

Actionscript 3 :: Xml - Dynamic XML Filtering Based On Parameters?

Feb 7, 2012

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?

View 1 Replies

ActionScript 3.0 :: Filtering Only Part Of Display Object?

Sep 1, 2009

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.

View 2 Replies

ActionScript 3.0 :: Array Filtering - Button Does Not Click?

Nov 1, 2011

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.

View 9 Replies

ActionScript 2.0 :: Filtering Image Types In An XML Gallery?

May 10, 2007

I have a Flash photo gallery working from an XML file. The gallery has two types of photos, internal and external, described by the value 'type' in the XML file, like this: <type>int</type> or <type>ext</type>What I would like to be able to do is filter the images, when the user clicks either an 'Internal' or 'External' button, so that only the appropriate ones show.I have tried reloading the XML then using Code:liceto remove elements of the array where the value of <type> does not match the value of the filter, but the elements are not being removed.I have also thought that I could check the type of each image as I click the 'NEXT' button to load each one, but I'm having trouble skipping more than one image, i.e. moving forward to the next image with the correct filter value.

View 7 Replies

ActionScript 2.0 :: External Text File Filtering

Jan 2, 2008

here is how im trying to load a text file:[code]news_txt should contain some random words from the text file (which is external and i can't edit it)-- so is there anyway i can import random lines from the file. right now, the news_txt displays (iraq0Akilled0Amilitary0Aamerican....) i want duplicate movie clips of news_txt to display one word each from this file (randomly).

View 5 Replies







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