Flex :: Interactively Remove Elements From ComboBox
Mar 20, 2011
I'm using a spark combobox (which I really like). What I'd like to do is to allow users to delete elements from the cb list. To do this, I thought I'd add a delete button next to each cb element, by using a custom (and extremely simple) itemRenderer.
I want to know if its possible to embed a flash movie inside an MFC app and let the user iteract with it. I know this is easily possible through embedding Flash activeX control. But I want the flash movie to be able to receive input from the MFC app (such as data and state update from the servers) and also should let the MFC app know about user interactions and other internal changes via callbacks or in some other way.
Is this possible through Flex SDK, Adobe AIR or such runtimes ? Pls give me some starters so that I can get up and goin with it.
I'm writing an application in Flex / ActionScript and have a number of class member variables of type Array storing data. My question is: what's the "best" way to clear out an Array object? I noticed the ArrayCollection class has a function removeAll() which does this, but the basic Array class does not. Some possibilities I've considered are: Iterating through the array, calling pop or shift on each element Setting the array length to 0 Setting the member variable to a "new Array()" or "[]"
I am working on a booking/appointment program for a friend. The desired end result is this;A date picker is used to select the day. A combo box is used to pick a service.Based on the service selected, a MC will load in various options/additions to that service.Another MC displays a schedule showing business hours (8:00 to 5:00) in 15 minute increments - based on both the date picker and the service selected and the option(s) selected (which determines length of time needed), available time slots are unshaded, requested but not yet approved time slots are shaded color 'a' (let's say medium gray), and booked time slots (after being approved) are shaded color 'b' (let's say red).I have the date picker working. I started a combobox which works, and controls the timeline of the options MC - where I am currently hard coding options as radio buttons and/or check boxes. I would much rather have this dynamically generated instead of picking a frame of a MC with hard coded choices. I haven't started on the scheduler yet.
I'm trying to set a specific list item in a mx combobox to have a custom item renderer, the problem is that I cannot do this via mxml, it needs to be done via actionscript at a later stage, eg: combobox gets created, combobox gets populated, user does other tasks, combobox needs to set one or more items in the combobox to have icons (via item renderer)..
I can do this via the onChange event, but it only applies the icon when the combobox is opened and there is a slight delay so you can see the icon being added.
I'd like to import 3D objects into Flash, so that people can interactively click + drag to spin them. Example: [URL] The first images at the top. - o 8 o - * - o 8 o - Are there ways to accomplish this, other than buying "freespin 3d"?
If i have array like var my_Arr:Array = new Array("a", "b", "c");and i have button to use random element of ths array , is there any to remove that element that if i press the button again i won't find the last element ?
I noe how can I remove all elements in an array? I got a quiz where it will store the questions which the user has answered wrongly in an array n when the user press the "try again" button, he will go back to the first question again. I want the array to b reset n restore the questions tat answer wrongly again
For instance: tempArray = new Array(); tempArray.push(dom1);
I'm working with SWFAddress and I have a split function but its also adding empty elements to my array which I want to remove or stop been entered in the array.
Code:
var str : String = '/home/' var split = str.split("/"); trace("split = "+split.length); tracer.text = split; output : ,home,
As you can see the split is coming back with 2 empty elements in the array.The string value could change depending on what the user enters into the url for deeplinking. It could be var str : String = 'home' and this returns the correct value but if the add a slash I need to make sure that is not registered in my array as an empty value. how I could stop these empty elements from showing in the array?
I have a big ArrayCollection variable. I want to filter it serveral times and each time assign the filtered result to a different ArrayCollection variable.
So if it has let's say people, fruits and cars. (for illustration purposes) I want to first filter it to only show people, assign the result to a people ArrayCollection, then filter it to show fruits and assign it to a fruits ArrayCollection and so on.
How can I do that? Not the filtering, but the assignment after filtering. Or is it faster to instead run a for-loop through the big ArrayCollection and just add each item into the corresponding smaller ArrayCollection?
I'm making a custom webbrower by Adobe Air.I would like to add a html filter function that disable javascript & iframe.If I can get html code before render, I would delete tag elements with regexp.I guess I can something with htmlloader when htmlloader's LocationChangeEvent dispatch.
I am trying to clear out an array but it isn't working how I would like. What function clears elements from an array?Also I have had trouble removing children.It leads to strange error messages, any hints or tutorials on clearing children?
Would anyone be kind enough to help me with some Actionscript code (2.0) that will automatically remove from dynamically imported html text. Basically an html page is updated by a client using a CMS system (CushyCMS) but it inserts.When the page reloads into the flash site the cause the text to break.So I would like something that either removes the or changes it to a single space that won't cause the line to break.
I use 'import mx.controls.ComboBox' to attach comboboxes. The problem is that when I do that, it influences a lot my movie. So for efficient working I need to remove that code, something like 'remove mx.controls.ComboBox'.
Let's say I have array foo and a positive integer y, where foo.length > y.I want to remove elements from foo so that foo.length becomes y (or very close to it).Also, I need to preserve the first and last element of foo. The indices of the removed elements must be spaced apart as equally as possible. Foo can be sliced, or it can be used to create a new array.
Example: if foo = [a,b,c,d,e,f,g,1,2,3,4,5] and y = 6, then trimmedfoo could be [a,c,e,g,2,4,5] or maybe [a,c,e,2,4,5], but not [a,c,e,g,2,4] because the last element of foo is missing.
3-rd day goes to waste. And soon I'll be mad. I cannot correctly do it despite the Adobe's topics (e.g. [URL]). But I need:
1) the user can enter the word (first sign - the Letter);
2) the entered item is added to the List of CheckBox;
3) that List can be correctly sorted;
4) WHAT I CANNOT MAKE: to be able to correctly remove the selected item. All indices after removing must properly changed:
so, if I removed the item with index '4', the next indices would be descended (5=>4 etc.). How can I achieve it? You may have a quiet laugh over my desperation,
im having some dificulties in the combobox of Flex 3, after defining the dataProvider and filling the combobox, how can i remove the items in the combobox later (without removing items in the dataprovider)? if i set the provider to "" or null, the items in the combobox are still there
I am having difficulty getting a reference to elements added after compile-time using the 'id' property. I have seen a few forum topics suggesting that this isn't possible, and that getting a reference to elements added this way is trickier, but never just exactly what that trick is. This code throws a fun little: Error: uncaught exception: Error calling method on NPObject! [plugin exception: "ReferenceError: Error #1069: Property canvas_tentpoles_0 not found on SGraph and there is no default value."].
I'm trying to setup a DataGrid that contains a column of combo boxes. The values of the combo boxes are defined by data specific to that row. I cannot get this to work though, I'm asking for a solution to this, either fixing what I have below or a recommendation on a different way.One of the columns of my DataGrid has an object derived from a ComboBox for an ItemEditor. The itemEditor is set like this:
I want the comboBox to be placed in one of the columns of the datagrid header.The datagrid should be filtered according to the value selected in the comboBox.e.
I'm using Flash CS3 and want to create a custom ComboBox. I've followed the steps outlined in "Editing component skins in a new document" (http:/[url]...), but every time I get to the step where I drag the ComboBox Assets folder from the HaloTheme.fla library into my library, if I test movie at that point my combobox has become an unclickable white rectangle with no label, button or anything.
**Warning** The linkage identifier 'ComboBox' was already assigned to the symbol 'ComboBox', and cannot be assigned to the symbol 'GUI MC/Combo Boxes/abc', since linkage identifiers must be unique.**Warning** The linkage identifier 'ComboBox' was already assigned to the symbol 'ComboBox', and cannot be assigned to the symbol 'GUI MC/Combo Boxes/def', since linkage identifiers must be unique.
Both of my ComboBoxes has the same identifier.I could not change the identifier through the properties tab because it is greyed out.