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


Similar Posts:


ActionScript 2.0 :: Change Codes To Suit User Interface?

Jun 22, 2006

instead of setting the intervals, i want to change it into something like adding a textbox for users to enter the intervals. and i also want to try to change the codes so that only when the user click, then the arrow would move. so its two separate favors.... 1.adding textbox.... 2.using onMouseDown function to move the arrow.

var targetIndex:Number = 1;
//var xValues:Array = [100,200,220,300,330,370];
//var yValues:Array = [100,150,220,300,310,400];
var tarArray:Array = [[0,0], [10,10], [100,100], [200,150], [220,220], [300,300], [330,310], [370,400]];

[code]....

View 2 Replies

Professional :: Customize In Flash: Components> User Interface> Button?

May 31, 2010

Flash Componants> User Interface> ButtonHow to cusomize components?The button works, but where is the code that is making it work?

View 2 Replies

User Interface - What Does A Web Designer Need To Migrate To Flex Quickly

Mar 12, 2011

What does a web designer need to migrate to Flex quickly? A: tell me how I can get good fast B: tell me why it would be unrealistic to learn Flex quickly I want here both sides of it.

TELL ME WHAT I NEED
- Projects I need to complete in Flex
- Tutorials
- Key concepts
- Other technologies in a nutshell (webservices, SOAP, AJAX, HTML5 etc.)

[code].....

This Flex reference should include everything needed for beginning Adobe Flash Builder 4

View 1 Replies

User Interface - Flex Give Yes/No Box For Checkbox Deselect?

Nov 21, 2011

I want to show the user a confirmation box when they deselect a checkbox. My code works although I think it is a bit of a hack. I listen to the checkbox click and then show the alert. Depending on the result I then set the checkbox to be checked again.

My code is

<?xml version="1.0"?>
<s:NavigatorContent xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" >
<fx:Script><![CDATA[

[code]....

the code is specific to cb1 and cannot be reused for other checkboxes the checkbox is deselected when the alert shows. Then when the user clicks no the checkbox is selected again. stop the uncheck event if the user clicks no on the alert box. Is it possible to intercept this in Flex?

View 1 Replies

Flex :: Open Source Phpmyadmin Flash User Interface?

Jan 30, 2010

is out there any Open Source phpmyadmin flash user intrface?

View 1 Replies

Flex :: User Interface - Accessing Child Through Navigating The Hierarchy?

May 24, 2011

I have a generic function to build rows of controls (each row comprising of sliders, radio buttons, reset buttons, text display) etc, and some functionality to change underlying data based on these

As I didn't want to write specific code for each row, I had code written by which I can detect the row on which there has been a mouseevent, and though the row access each individual control

[Code]...

View 2 Replies

Flex :: User Interface - Title Window Goes Out Of Accessible Area?

Jul 2, 2011

I have a strange issue- I use a title window to create a message to the user. The user has the ability to move the title window around the screen so that the main screen is visible.However if the user were to move the title window way too much, it can actually go outside the browser accessible area- the user has no option but to close the browser and start again. How do we ensure that the title window movement is limited, such that the title bar is always available for control?

I might not have worded this right- pls check the attached image.

View 2 Replies

Flex :: User Interface - Spark Datagrid And Word Wrapping

Nov 18, 2011

I would like to have a spark datagrid that wordwraps all rows where relevant. At the moment it appears like the width of a cell is dependent on the contents of the first row and then subsequent rows are word wrapped. For example:

[Code].....

How can I get the datagrid to dynamically resize to 100% of the container width and for wordwrapping to happen on all rows? (not just rows after row 1)

View 1 Replies

Flex :: Give MS Word Like Interface To User To Expand Or Contract Display Object's Like Canvas, Images

Dec 9, 2009

How to give a ms word like interface to a user so that he can enlarge and contract the display objects like Images, canvas, Hrules etc. at runtime in an web application?

View 1 Replies

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

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

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 - 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 :: 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

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.0 :: Use The User Input Data As Part Of The Regular Expression?

Jul 6, 2011

This time want to know is it possible to use the user input string as part of reqular expression for instant search... I am aiming to add search feature in my game.. Where i m going to have several items available in list... what i am planning is to have a text box from which i will accept user input and perform instant search am still a noob in AS3... so whether using RegExp meet my goal ?

View 3 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

ActionScript 3.0 :: Possible To Change Submit Button's URL Link Based On User Input?

Mar 30, 2010

I have a separate html page that does this with a php script,reating that php file which is just a form that allows users to enter a passcode that I provide them which will then simply link them to an external html page. Since I don't know about php, I am thinking a possible work around would be to have a text input box which would allow a user to enter (passwordA) then click Submit to load (pageX.hmtl) or they could enter (passwordB) and Submit would load (pageY.html)

View 13 Replies

Professional :: Change Multiple MovieClips Properties When User Clicks A Button?

Nov 2, 2010

This seems like someting I should already know but I am working on a user interface that I want to be skinable.  I have about 8 different graphical elements and I want to change the appearance of these 8 different movieClips just by clicking a single button.  I thought I would just create a new keyframe in my main time line and then manipulate the movieClips but that changed the appearance of the movie clip on frame 1 as well.  Clarification:  I want to change the color of my user interface background and I want to change the color of some clickable images as well.  I want frame 1 to have a white background and I want frame 2 to have a red background.  Do I need to create more movie clips and drag them onto my stage or can I just use the existing movieClips since all I really want to do is change colors? 

View 5 Replies

ActionScript 2.0 :: Change Military Time To Regular?

Jun 18, 2005

I used this action script and tried changing the 12 to 24 and back and nothing changed[code]...

View 1 Replies

ActionScript 3.0 :: Any Good User Interface Libraries

Aug 2, 2011

Do you know any good User Interface libraries for ActionScript? And I'm not interested in Flex: it's big and you can't customize anything at it except for colors and fonts which I don't care about.I am looking for a decent UI library which is good for game development: custom shaped buttons, stuff like that. More customization that Flex ever had that is.

View 7 Replies

Java - User Interface With Animation And Effects?

Jan 9, 2012

I want to program a language learning Program for kids. I want it to have animations, quizzes with drag and drop and a lot of graphic effects. i want to know which language is good for client side and which is good for desktop application. I am programming with java.

View 1 Replies

IDE :: Dragging MovieClip To Stage From User Interface?

Oct 8, 2009

What is the difference between dragging a movieClip to stage from the user interface and inserting it from code? What I mean is....I noticed that if I drag a movie clip from the library to the stage, give it an instance name ('xx'), I can access it from code using "this.xx". However, if I add the movieClip from code using:

var ch = new MovieClip();
ch.name = 'xx';
addChild(ch);
I cannot access it using this.xx, but I have to access it using this.getChildByName('xx');

View 2 Replies

Flex :: Change ToggleButtonBar Dataprovider On User Or Admin Log In?

Jul 13, 2009

I'm trying to change Flex 3 ToggleButtonBar dataprovider on user or admin log in. I'm trying to use 2 viewstack, and I've got a component where the login form is in the component. What should I do to define the dataprovider based on user log in?

View 1 Replies

Unable To Locate Component In The User Interface Library?

Jun 23, 2009

I am unable to locate this component in the user interface library, every other component is listed but this one.
 
Is this a new you must roll your own from the list component and create it?
 
PS I just noticed the Alert component is missing too.

View 3 Replies

Professional :: Question Regarding User Interface Text Size?

Aug 9, 2010

I'm doing a trial of the CS5 applications and I cannot seem to find out to increase the size of the font on my user interface.  I'm finding the default font size to be too small to work effectively and find the commands I need.  I've tried Edit->Preferences which is where one typically finds this type of interface option; however, I do not see any way to do this. I've tried adjusting my screen resolution and screen font size and while this affects every other application on my screen, it does not affect Flash Professional.

View 4 Replies

ActionScript 2.0 :: How To Create Sophisticated User Interface / Menu

Nov 25, 2006

I am looking for a tutorial on creating a sophisticated user interface/menu. Here's a reference: [Code] - I am aware its done in swish but I want to be able to do it in Flash 8. What I've accomplished so far is to create a rollOver and rollOut effects wherein rollOut reverses the movie clip back to its first frame. I was also able to add an 'on release' script where it will play an external movie clip...

This are the AS that I've done so far:
1. I placed this AS on the MC (instance name bam) that has the rollover and rollout effect tween.
onClipEvent (enterFrame) {
if (reverse) {
this.prevFrame();
}}

2. I placed this AS on the invisible button I placed on top of the MC
on (rollOver) {
bam.reverse=false;
bam.play();
} on (rollOut) {
bam.reverse=true;
} on (release) {
_root.bampics.gotoAndPlay(2);
}

View 1 Replies







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