Flex :: ComboBox Subclass With "Null" / "All" Option?

Nov 12, 2009

Just wondering if anybody knows of an existing component that subclasses ComboBox but lets you specify an item in the list with a label like "all" or "none" that will set selectedItem to null? I've looked into writing one, and due to the internals of the component it looks like a lot of work, so I'm wondering if somebody's already done it?

View 3 Replies


Similar Posts:


Flex :: Combobox - Edit/Delete An Option

Aug 18, 2009

I'm using a combo box control and the dataprovider is set as an XML. After the dataprovider is set, I want to edit the text of the first option and also I need to insert an item in the second position.

How can I do this? Using an ItemRenderer?

View 1 Replies

Actionscript 3 :: Making Subclass Objects Non-Null?

Sep 21, 2011

I'm currently having some trouble with referencing objects that turn out null on export. Basically I want the Document Class to run the code of another class that is the class of a MovieClip without having Error 1009 popping up everywhere in my output panel.

[Code]...

View 1 Replies

ActionScript 3.0 :: Trying To Create Option Groups With ComboBox

Dec 23, 2009

I've been trying to customize each cell in a ComboBox using a custom CellRenderer class, as instructed on this article. [URL]. However, my problem is I am trying to customize *only* two cells in the dropdown list. And the dropdown is populated by an XML feed so I cannot hardcode which ones to stylize beforehand. In other words, I want to make it look like an HTML dropdown. So, I have been looking for an alternative...maybe a property that I can use or another ComboBox component that can support option groups, like HTML dropdowns.

View 1 Replies

Flex :: Null In Flex ComboBox

Jun 4, 2009

How can you make a ComboBox where the user can select null?If you simply create a combobox with null in the dataprovider, the value appears but the user cannot select it:[code]Is there a way to make that null selectable?A workaround is to add an item into the dataProvider that is not null but 'represents' null; and then map between null and that object every time you access the combobox. But that's not really an elegant solution; you would always have to keep this mapping in mind in all code that accesses a 'nullable' combobox.It could be done in a subclass of course, but either I introduce new attributes (like nullableSelectedItem); but then you have to be careful to always use these attributes. Or I override ComboBoxes selectedItem; but I'm affraid that is going to break the base class: it might not like something changing its idea of what the current selected item is from within. And even this fragile hack works, on top of selectedItem and dataProvider this nullItem then also needs to be handled special in data and listData for renderers, in labelFunction, and then it's probably still being exposed in events the ComboBox sends.It might work, but it's quite a hack just to fix the problem that if the user clicks on the item it isn't activated (for the rest the ComboBox handles null fine).(Another alternative is to have a ui component delegate to a ComboBox, but that's even much more code just to avoid this small problem)

View 4 Replies

ActionScript 3.0 :: Images - Layer Hidden By Default And Then Displayed When An Option Is Chosen From The Combobox

May 17, 2009

i have got a layer that contains some movie clips but i would like them hidden by default and then displayed when an option is chosen from the combobox.

View 1 Replies

ActionScript 3.0 :: ComboBox - #2007: Parameter Child Must Be Non-null?

May 6, 2011

I have a main.swf that loads contact.swf; contact.swf contains a combobox which works if contact.swf is ran alone, but if I load it through main.swf, the combobox fails.I did quite a bit of research, I'm using

import fl.controls.ComboBox; AND i'v dragged an instance of the comboBox on the stage of both main.swf and contact.swf.

View 5 Replies

AS3 :: Flash - Reference SubClass Of SubClass From Parent Without Instantiating?

May 1, 2011

Can I access a static variable of a subClass' subClass? I don't want to instantiate it, just looking to get the variable because it has already been initialized by the subClass.example:

package
{
public class A extends MovieClip {
private var classB:B = new B();

[code]....

View 3 Replies

Flex :: Setting A Custom ItemRenderer In A ComboBox On Specific List Items After Combobox Creation?

Nov 8, 2010

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.

View 1 Replies

Validate Combobox In Flex Before Save Has To Select Some Item In A Combobox?

Mar 16, 2011

How can I validate there's a selected item in a ComboBox before saving? If there's no selected item, how can I set focus on the ComboBox?

View 2 Replies

ActionScript 3.0 :: "select Option" - TypeError: Error #1009: Cannot Access A Property Or Method Of A Null Object Reference

Mar 7, 2012

I'm creating a small application in flash and I am getting this error when I test the application. My application runs like this, "select option" goes to second frame "select option" goes to another frame. When I click one of the buttons I get this error

[Code]...

View 3 Replies

ActionScript 3.0 :: Combobox Won't Function - Error #1009: Cannot Access A Property Or Method Of A Null Object Reference

Jun 12, 2010

i am working on a project that has separate swf files serving as different sections (students, faculty, etc). for each section, on the first frame i have a combobox that lists the different values within that particular section. when a user clicks on the value, it takes them to the specific frame within that swf. there are two problems:

1. when the user selects a value, everything functions correctly but an error is thrown that says:

[Code]...

View 5 Replies

Flex :: MessageBroker.getMessageBroker(null) Getting Null Pointer Exception?

Jun 12, 2010

I am creating Dynamic Destinations

MessageBroker broker = MessageBroker.getMessageBroker(null);
MessageService service = (MessageService) broker.getService("message-service");
MessageDestination destination = (MessageDestination) service.createDestination("Group1");

[code].....

But I am getting Null Pointer Exception

MessageBroker broker = MessageBroker.getMessageBroker(null);

View 1 Replies

Flex :: Clicking On Menu So That It Shows (null,null)"?

Aug 15, 2011

I have create a menu but when clicking on menu so that it shows, I get an error on the line because of the line "myMenu.show(null,null)". See function below:

private function createAndShowmyMenu():void {
myMenu = Menu.createMenu(null, myMenuDataProvider, false);
myMenu.labelField="@label"[code]........

View 1 Replies

Flex :: Setting Compiler.theme Option For Halo/Flex 4 In FlashDevelop?

Jul 12, 2010

Here's what works with ant build.xml:

[Code]...

I tried the following values in Project > Properties > Compiler Options > Additional Compiler Options but none of them worked:

View 2 Replies

Flex :: InvalidateList() Not Working For AdvancedDataGrid When Fired By Custom Subclass

Nov 2, 2010

I want to persist the AdvancedDataGrid column order for the user if they move them around and close the window or log out. I have code (see below) that works when I place the code in a grid parent container - eg, a title window. I'd like to generalise the functionality by placing the code in an AdvancedDatagrid subclass rather than each grid container so that all my grids have access to a single location when saving/loading their choices. My approach is to store the datafield names and grid name in an array and save/read to/from the shared object. and update the column order based on that order. The invaldation fails when I use the code in the Advanced Datagrid subclass but works fine in the grid parent.

private function loadSettings(name:String = "custom"):void
{
var gridName:String = this.stripUIDNumbers(this.uid);
var temp:Array = new Array;

[Code].....

View 1 Replies

Flex :: 'justify' Text Align Option?

Aug 12, 2010

How to make text in flex justified (text-align option)

View 2 Replies

Flex :: Create Submenu Under Linkbar Option?

Jun 9, 2009

Is it possible in flex to create submenu under linkbar option.

View 1 Replies

Actionscript 3 :: Make Flex Entry-point MXML Subclass A Custom Class?

Oct 21, 2010

With MXML components, I've seen a pattern used where you have an AS3 class, then the MXML subclasses it, to have a separation between view/code (anonymized from real code):

package com.john
{
public class MyComponent extends Canvas
{

[code]...

At least I think the MXML component is subclassing the AS3 class?Anyway is it possible/advised to do this with my main MXML application file, so I can put manager instances and things in the AS3 MyApp class, which is subclassed by Main.MXML?

View 1 Replies

Flex :: Would Director Be An Option For Creating A Socket Client

Feb 1, 2010

Would Director be an option for creating a socket client? My client needs to accept server commands; frame rate, start etc.Director seems like it was made for controlling movies. I've got Director 11.5 at the office.

Interaction with client
SERVER==>XML PACKET==>CLIENT==>swf plays on given frame and duration

[code].....

View 1 Replies

Flex :: Extending DropDownList To Include An Extra Option?

Mar 27, 2011

I want to extend DropDownList control to include an option for creating or editing the options. For example; for a list of projects in the dropdown list, there will be another option that says "Create new project..." or "Edit projects..." and this will be the last option in the list. When user selects this option, the selectedIndex or selectedItem will not change and corresponding action will be taken (for example a popup window shows up).This will be a convenient way for the end user. Now I want this to work independent of the context and the class must be reusable. User will only specify the optionText and optionFunction to work this out. The basic structure of the class looks like this:

public class OptiveDropDownList extends DropDownList
{
private var _enableOption:Boolean;

[code].....

View 1 Replies

Actionscript 3 ::flex - Set TruncateToFit Option To True In The Tree?

Aug 25, 2011

I am trying to customise the truncateToFit option in my Custom Tree. In order to do that i have to render a LABEL into my tree as the tree is not having the TruncateToFit property. I am begineer to flex, and i surfed a lot to see how they have rendered label inside a tree but i dint find any solution.Is my prediction right ? If it is right then how to render a label inside a tree component ?

<ns1:PLTree verticalAlign="top" rendererIsEditor="true" columnWidth="150" height="100%" width="100%" x="0" y="0" borderThickness="0" dragEnabled="false" verticalScrollPolicy="auto" horizontalScrollPolicy="auto" dataProvider="{dBTree}" iconFunction="getTreeIcon"

[code]......

View 2 Replies

Flex :: Download Files To Default Dir Without Popping An Option Window In Air?

Feb 9, 2010

I'm writing a app with Flex/air,and i need a function that downloading files to the default dir without a pop-up window.i tried to use ftp instead of http but found it's not supported by air.how can i solve this problem?

View 2 Replies

Flex :: Adobe AIR - Option To Not Create A Shortcut When Installing An AIR Application?

May 14, 2010

Does anyone know if there is an option to not create a shortcut to an AIR application after its installation?

Currently, all I have found is an option to choose the location of the application shortcut from within the start menu (in the application descriptor file, using the programMenuFolder option)

View 1 Replies

Flex :: Is Flash The Only Option For Browser-based Video-conferencing

Aug 30, 2010

To display a P2P video chat / screen-share session in the browser are we limited only to Flash?

I think there are HTML5 solutions 'in the pipeline' but I've no idea of timescales. Do you know of any flash alternatives?

View 4 Replies

Flex :: ArrayCollection Fast Filtering (one Chart At A Time Is Not Option)

Sep 19, 2011

I have the following situation: have a screen with 4 charts, each being populated with 59 array collections. Each array collection has 2000+ data points. This construct needs to be filtered(by time), but the problem I'm encountering is the fact that it takes a long time for the filtering to finish (which is to expected given the amount of data points that need to filtered).

Filtering one chart at a time is not option, so I wanted to ask you what do you think would be the best approach? (should I use vector instead?). To generalize this question what would be the best way to filter large collections in flex/as3?

View 4 Replies

Flex :: Compiler Option Copy Non Embeded Files To Destination Folder

Jul 20, 2009

i am using mxmlc for building the flex projects using ant.how to use flex builder-> copy non embeded files to destination folder compiler option in ANT

View 1 Replies

Flex :: Flash - Builder 4 Does Not Show Export To Native Installer Option?

Aug 26, 2010

i am using Flash-builder 4 and developed an application to capture screen image and save on desktop.But when i click the export button , the flex builder shows me the option to export to file only as shown belowI have downloaded latest air sdk and overwrite file in sdk4.0.0 , now air app works but how will it show me the "export to native installer option"??

View 1 Replies

Flex :: Fullscreen Option For Working For A VideoDisplay Control Embedded In A HTML Page

Jun 10, 2011

If I have a flex swc emebbed in my html page, and the flex swc contains an flex 4 videoDisplay player, which has an option for fullscreen. How do I make the fullscreen work. Because when I click on fullscreen button for the videaDisplay, I get an error: [code]Connect with the people you need to get the job done. Unlike other tools, Cloud Groups lets you work with anyone, whether they're inside or outside the company firewall. Invite them into Cloud Groups to work together on projects, share files, assign tasks or catch up in real-time.

View 1 Replies

Actionscript :: Flex - Dynamically Populate The Options In A Combobox Inside Of A Grid Based On Another Row In Flex?

Sep 8, 2009

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:

<mx:DataGridColumn editorDataField="selectedItem" dataField="type" editable="true" >
<mx:itemEditor>
<mx:Component>

[code].....

View 1 Replies







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