Flex :: Menu Attached To Mx.controls.PopUpButton Never Changes?

Jan 1, 2012

I have prepared a very simple test case to demo my problem.just place the 2 files below into a Flash Builder 4.6 project and they will run instantly.My problem is that the menu attached to my (slightly modified) custom PopUpButton never changes - even though the underlying Array data provider is changed when you click one of the 3 buttons on the right side of it:

AuxButtonTest.mxml:
<?xml version="1.0" encoding="utf-8"?>
<s:Application [code].....

I've commented my custom event out - it doesn't matter here.click at the buttons few times and then look at the menu - it always has 5 items and that is wrong.

AuxButtonText.mxml:

<?xml version="1.0" encoding="utf-8"?>
<mx:PopUpButton[code].....

View 2 Replies


Similar Posts:


Flex :: Rounded Menu With A PopUpButton?

Sep 10, 2009

So I have a PopupButton and when I click on the button I want the Menu that pops up to have rounded corners. How would I go about doing this?UPDATE:I found an update similar to what I want to do, it can be found on the following page:The only difference is that I'm showing the Menu with a PopUpButton. So far this is what I have for my custom Menu:

package {
import flash.display.Sprite;
import mx.controls.Menu;

[code].....

View 1 Replies

Actionscript 3 :: Add A DisabledIcon To A Flex Menu For Use In PopUpButton?

Jul 21, 2010

I am using the Flex PopUpButton & data binding a Menu object to the popup. I successfully added an icon to a menu item; however, it does not look like Menu supports the disabledIcon property common in many other elements for use when enabled: false for that menu item.Is it possible to extend the Flex Menu class to use disabledIcon? Should I use a different type of data binding class?

// create the array collection of menu items
var menuItems:ArrayCollection = new ArrayCollection();
var addWidget:Object = new Object();

[code]......

View 1 Replies

Flex :: Programmatic Skinning Of PopUpButton?

Aug 26, 2011

I am trying to programmatically skin a PopUpButton control in Flex Builder, but having no luck. As far as I know this requires writing a custom skin class or creating a modified version the control class itself (since the control is MX and not Spark). Again, just to clarify, I want to programmatically modify the appearance not simply set styling properties or display an image. I've been able to do this programmatically with other MX controls (e.g. tabs in a tab navigator), but not with the PopUpButton.I think part of the problem may be that the control is actually composed of two separate buttons, so you cannot draw just one rectangular area over the whole control.

View 1 Replies

Flex - PopUpButton With TileList And Custom Renderer?

Jul 25, 2010

I have prepared a simple test case for a PopUpButton opening a TileList with black and red entries and it mostly works, but has 2 annoyances. I've searched a lot, tried several variants (added [Bindable] members in my renderer; added color member to the bids array; created my public override set data() method; ...) and has been getting some answers too, but they are way too general.

1) Scrolling "tl2" right-left doesn't work well: the entries are displayed in a mix of red and black. I know the TileList reuses itemRenderer, but how do I fix the problem?

2) In debug-mode I get numerous warnings: warning: unable to bind to property 'label' on class 'Object' (class is not an IEventDispatcher)

[Code]...

View 1 Replies

Flex :: Ensure That The PopUp Always Displays Above The PopUpButton?

Apr 2, 2012

Few users of my Flex 4.6 web application are complaining, that the mx.controls.PopUpButton at the right bottom corner of it sometimes opens a List underneath it and is thus unusable (I can't reproduce that myself - probably an unlucky combination of their Flash player and/or font size setting?)

How could I ensure, that the popUp component (in my case it is a spark.components.List) always opens above the PopUpButton?

I suspect, that I should create a skin based on mx.skins.halo.PopUpButtonSkin and assign it to my PopUpButton? And I probably should use the PopUpPosition.ABOVE constant together with the PopUpAnchor?

I have prepared a screenshot and a simple Text.mxml:

<?xml version="1.0" encoding="utf-8"?>
<s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"

[Code]....

I still can't reproduce the bug myself, my users aren't very helpful (mostly older folks, playing my card game). I've searched in Adobe JIRA, but couldn't find such a bug.

I wonder, if there is a way to short-circuit that method to enforce opening the popUp above the PopUpButton.

Or if I should put the _list into some container...

View 1 Replies

Flex :: Coding Style - Css Styling For PopUpButton?

May 25, 2010

How can I give a specific color (Let's say red) to the border of dropdown menu of Flex PopUpButton.

View 1 Replies

Actionscript 3 :: Flex: Remember The Tab Index And Name On The PopUpButton Of The SuperTabNavigator

Dec 20, 2011

As we all know SuperTabNavigator is an open source component from the flexLib which gives an advantage over Flex Tab Navigator that we can close the tabs from the close button on each tab with the use of SuperTabNavigator. Additinaly there is a button to the right of the tab navigator which shows a list of all tabs which are open at one time and we can select any tab from that button which is a PopupButton.

Now what happens is when we close a tab, it disappears from the PopupButton drop down list as well. But in my case I want the drop down to remember the closed tabs even so that when I click on that closed tab it opens again in the tab navigator. I am relatively new with Flex and ActionScipt

View 1 Replies

Flex :: Flash Builder - Extending PopUpButton And Using It In A 4 Web Application?

Mar 16, 2012

In my Flex 4.6 web application I use mainly spark components, but there is also an mx-component - a PopUpButton extended by me (the source code is below).Users report problems with that button, but I can't reproduce any - since weeks.

I've tried replacing mx:Menu attached to it by a s:List but it hasn't changed anything. I suspect there is a "null pointer exception" or some other failure, that I don't hit when testing myself...

My question is: why does Flash Builder reports warning about my custom button as if its methods would be private or not present?

My main App.mxml:

<?xml version="1.0" encoding="utf-8"?>
<s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[code]....

View 1 Replies

Flex :: User Interface - Change A PopupButton Into A Regular Button?

Aug 20, 2009

I have a PopUpButton that only contains 2 actions. Both actions are complete opposites of each other and switches a boolean property on an object from true to false or false to true. To avoid redundancy, I've only displaying one action at a time. So, if the property is true, the action to change it to true is not shown.

If my PopUp menu has a single option, I would like to remove the menu from being shown and basically revert the PopUpButton to act and look like a regular button. So far, I haven't really found a good way to do that in ActionScript without adding, removing or modifying styles for the button.

Is there a nice way to simply tell the button to hide the PopUp toggle? PS: In my specific example, YES it might be easier if I just used a toggle button. However, I want to reuse this button when dealing with an Array of objects. If I have more than one, the property could be true and false at the same time. In that case, I want to show the menu so they can choose what option to set all the object's properties to.

View 1 Replies

ActionScript 3.0 :: Creating A Menu With Keyboard Controls

Sep 29, 2011

I need to make a menu (sort of like a game main menu) that the user can either use the mouse to click on the buttons, or they can use the up and down keys on the keyboard to navigate the menu and use enter to select the button. Like, a game menu.

View 5 Replies

ActionScript 3.0 :: XML Menu That Creates Buttons And Controls Flash Timeline?

Mar 15, 2012

I'm looking to build a basic menu in XML where I can add and remove buttons from the xml file and control the buttons to gotoAndPlay a frame label in Flash. With my project I will be frequently adding/removing buttons and/or changing the button name so I'd like to do this externally with an XML file.

View 0 Replies

ActionScript 2.0 :: 2 Player Game Moving Cars Controls Help With Controls

Nov 13, 2005

i have the controls for car number 1 that would be the arrow keys if [code]but how can i make controls for car 2.i wann use wasd but i cant figure out how the key.a doesnt work.

View 1 Replies

ActionScript 2.0 :: Menu Text Above Scroller It Controls The Scroller?

Jul 29, 2005

my problem is that if you go over the menu text above my scroller it controls the scroller. I wan this areas movement to have no effect on the scroller below. is there a way to script my scroller to set it to this?

View 1 Replies

Flex :: Override Child Node Controls In A Flex Tree Control?

Aug 20, 2010

I am currently developing a dynamic LineChart in FLEX 4.I am implementing a Tree control next to my LineChart, which will filter the LineChart dataprovider and lineseries. The tree control has several branches and ultimately 5 children (leaf nodes) at the bottom of the last branch.I need the leaf node/children to be displayed as checkboxes inside the tree control.As I understand,this will require overrides in the TreeItemRenderer class.This is where I am a little confused on how to implement that.Currently I can distinguish between leaf and branches using this code, in my main MXML component.I added this because it may be helpful to some beginning FLEXdevelopers, such as myself, who cannot easily find this functionality documented well:

private function treeClick(e:ListEvent):void {
_selectedItem = Tree(e.currentTarget).selectedItem;
if(mainTree.dataDescriptor.isBranch(_selectedItem)) {[code].....

I am looking at the TreeItemRenderer override class from the following example here: In the example, they override the "createChildden" super function to add checkboxes to the tree control.My question is, can I override the createChildren function directly in my MXML component, and not have to use an entire class file to override this functionality? Must I re-invent the wheel to do this?Also, how can I distinguish that my treeItem is a leaf node and not a parent, in the override function? I only want to add checkboxes to the leaf nodes, how can I differentiate? The following example adds checkboxes to all branches and leaf nodes, but I want to add checkboxes only to leaf node/children. How would you approach that?

override protected function createChildren( ): void
{
super.createChildren( );[code]............

Here is my tree tag:

<mx:Tree id="mainTree" dataProvider="{treeData}" itemRenderer="TreeCheckBoxItemRenderer" labelField="@label" showRoot="false" width="100%" height="100%" itemClick="treeClick(event)" />

View 1 Replies

Ios :: Creating Own IOS-controls With Flex

Feb 6, 2012

I was looking into creating iOS-apps (especially for the iPad) with the Adobe-Flex framework. It looks very promising to code apps this way. Is it possible to create own controls/widgets? In the far future I might want to create my own kind of gantt-calender or whatever. Is something like this possible and are there any good tutorials/book out there?

UPDATE: I want to create iOS Components that I can use in Flex. Controls, that are not aviable by default in Flex. Is that possible? By derivating or something?

UPDATE 2: In the meanwhile I found FlexLib to be useful. How hard is it to create stuff like this on your own? Especially for mobile devices. Are there any good tutorials, books, etc.

View 2 Replies

Flex TextArea Attached Image

Jul 8, 2010

Is there any advance TextArea that can attached image(image is alligned with the text) and the image can be movable inside the text area.I know that text area can support html text and can insert image tag but it is very limited, I can't move the picture inside textArea by dragging it or even add events on it.

View 3 Replies

Flex :: Cannot Tab Between Controls On A Modal Popup?

Sep 25, 2009

Create a modal popup to popup with popupmanager (mine is a group with a skinnable container inside of it)Put field components (textinputs) on the modal popup Attempt to tab between controlsTab switches to controls behind the modal-popup and ignores the fact that the modal is there. The tab loop only contains controls behind the modal. I've tried everything from setting tabChildren, to hasFocusableChildren. I can't implement IFocusManager as it's Halo and my modal is a Spark group, but would that work in some capacity? It really seems like Flex just ignores the modal in its focusmanager.

View 3 Replies

Flex :: Add Controls To The Title Bar Of A Panel?

Jul 8, 2010

I'm trying to implement a collapsible TitleWindow popup by adding a handle to the top right corner of a Panel control. Unfortunately, the image that I add as the handle doesn't show up when the control is drawn. I can trigger a redraw by changing the source of the image, so apparently it's there, but it's somehow hidden. Is there a way to make this Image control visible to the user?Here's the code for the window:

package
{
import mx.containers.Panel;

[code]......

View 2 Replies

Actionscript 3 :: Add Flex Controls To Project?

Nov 24, 2010

I have a pure AS3 project that plays video from youtube (chromeless player). I need to add some controls to manage this player. I don't know how to do that? If I just add mxml file into the project nothing happens. How to bind this file to as3?

View 4 Replies

Flex :: Use ItemRenderer In Mx.controls.TextArea?

Jun 21, 2011

I want to integrate itemrenderers in a TextArea. The purpose is to visualize keywords with their own easy interface while the user still can treat the whole thing as normal text to select the font, fontsize, etc.

[Code]...

View 1 Replies

Flex :: Looking For A More Efficient Way To Clear Controls?

Jul 28, 2011

In main.mxml I have a bunch of textInput controls a combobox and a few checkboxes that I would like to be able to clear with some sort of loop. Right now, I do it like this:

[Code]...

I read a post on SO that recomended adding the controls to an ArrayCollection with the creationComplete event. I tried that and it worked fine but it was not any more elegant than what I have now. All of these controls are in mxml format and not generated with AS by me. I also tried looping like this:

I can't get past that part though. I cannot find a way to reference the values of the control.

View 1 Replies

Flex - Import Mx.controls.Alert?

Oct 25, 2011

I got a strange problem. Just using Flash Builder 4.5 and trying to use the Alert Popup for some user messages.

[Code]...

View 2 Replies

Actionscript 3 :: Flex - Create Context Menu In AIR Application - Add Sub Menu Against Any Parent Item?

Sep 21, 2011

How create Context menu in AIR application plus how add sub menu against any parent item in Flex?

View 2 Replies

Actionscript 3 :: Menu Bar Control In Flex , Handle Separate Method For Individual Menu Item?

Jun 26, 2009

i need to fire separate method for individual menu item clicked ,so that individual item can handle separate method.and i need know what all the properties are available in menu item like type="radio".

<mx:MenuBar id="jj" labelField="@label" itemClick="MenuItemClick(event)" x="23" y="228">
<mx:XMLList>
<menuitem label="File">[code]......

View 2 Replies

Flex :: Style Elements Reference For Controls?

Aug 22, 2009

Is there any documentation link where I can find list of styles applicable to flex controls? In particular the AdvancedDataGridControl. Like border, border-left,top,bottom,indent, etc like list of all possible style elements.

#1: Link provided by Lior below is the complete list.
#2 : found this looks quite cool.

View 2 Replies

Flex :: Why Can't Import Mx.controls Into ActionScript Project

Oct 1, 2009

I'm trying to do a simple import into an ActionScript Project that I've created in Flex Builder:

import mx.controls.Label;

It won't let me. Code hinting shows no 'controls' after mx.

View 1 Replies

Flex :: Force All Controls To Render At Start?

Oct 4, 2009

When I try to access the hidden TABs of my tab navigator control in action script, it returns a null error. But it works OK if I just activate the control in the user interface once. Obviously the control is not created until I use it. How do I make all the tabs automatically created by default ?

View 2 Replies

Flex :: Programmatically Add A Set Of Controls With Some Amount Of Pixels Between Them?

Nov 8, 2009

I need to programmatically add a set of controls with some amount of pixels between them. I can't seem to find how to do this in the Flex docs.

View 4 Replies

Flex :: Set Up Projects That Reference Common Controls?

Mar 30, 2010

I'm not a flash developer, I'm having issues figuring out how I should set up these two projects that I have in Flex Builder.I've already created projA which has a .mxml that references several custom controls & skins from com.xxx.controls within projA.I now have to build projB which also has a .mxml that will create a different .swf. I want to use some of the same controls from projA.I currently build projA through the command line and nant and will need to do the same for projB.

Should I create a new project to move all of the common controls into? How do I then use this library project in both the projects & compile via command?

View 1 Replies







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