Flash :: Change Flex 4 Radiobutton Selected FontWeight?

May 2, 2011

I have been searching around for a while now, and cant find anything. In Flex, I need to be able to change the fontWeight of a RadioButton that is selected to bold. So, when a RadioButton is selected, it would call a function in AS3 that would set the fontWeight of that selected RadioButton...

valveRadioGroup.addEventListener(Event.CHANGE, changeRadioHandler);
private function changeRadioHandler(event:Event):void {
//change this RadioButton's fontWeight to bold

[code]....

View 1 Replies


Similar Posts:


Flex :: 3 - AdvanceDatagrid With Radiobutton - Change The Radio Selected Value

Jul 23, 2010

I am using Advanced DataGrid of Flex 3 with hierarchical data and also i added tile list as a item renderer in another column in that tile list i added radiobutton as item renderer if i change the radio selected value the hierarchical tree sould expand if the scroll bar will come the radio button value is changing

[Code]...

View 1 Replies

Actionscript 3 :: Flash Radiobutton: Get The Selected Radiobutton?

Apr 3, 2011

I have a few radiobuttons I drag and drop within same group. In main.as I added click event listener.

How do I get the selected radiobutton ? handler target argument doesn't contain any reference to it.

View 1 Replies

ActionScript 2.0 :: Unchecking Radiobutton If Another Is Selected

Mar 25, 2004

I am using the FFP Lightweight components set tickbox (this component is available at flashcomponents.net)I want to put script in each tickbox to uncheck the other box next it if it gets chosen (so a user can't select yes and no)I also want to add or subtract a value from a variable.[code]

View 1 Replies

ActionScript 2.0 :: Unchecking Radiobutton If Another Is Selected?

Mar 25, 2004

I am using the FFP Lightweight components set tickbox (this component is available at flashcomponents.net)for YES and NO questions....I want to put script in each tickbox to uncheck the other box next it if it gets chosen (so a user can't select yes and noI also want to add or subtract a value from a variable...heres a sample of what i put on each tickbox instance... the syntax is definitely wrong:

on(release){
value = n14.getValue()
if value = (true)

[code].......

View 1 Replies

ActionScript 3.0 :: Transfer The Data For The Selected Radiobutton To An Array?

Jul 18, 2009

i have radiobuttons in a quiz but how do i transfer the data for the selected radiobutton to an array

View 2 Replies

Flex :: Change Radiobutton Size And Label Size In Actionscript?

Aug 10, 2010

I am trying to change my radiobutton size and label size in pure as3...

searchRB = new RadioButton();
searchRB.name = "search";
searchRB.group = rbg;

[Code]....

View 1 Replies

ActionScript 1/2 :: SOS: Change Color Of Selected Menu Item Button If Selected

May 19, 2010

I have a menu with many sub menus. I need to change the color of the selected button and then move on to the sub menu. My menu is horizontal and now it's not obvious the path that you follow.

View 2 Replies

Change The Style In TileList Selected Item Using Flex?

Feb 26, 2010

My TileList Contain some text Boxes. i want to change the text color if it's selected.

View 1 Replies

Flex :: How To Change Selected Date Text Color

Feb 10, 2011

I'm trying to change the selected date text-color.

<fx:Style>
.dateChooser{
selection-color:#000000;
}
</fx:Style>

I changed my selected date (FEB 23) selection-color to black, but I also need to change the text-color, let's say to white.

View 2 Replies

Flex :: Spark - Change Style Of Selected TAB In TabBar Dynamically?

Jun 30, 2011

I want to change the background color of selected tab in spark TabBar control(Flex4). Till Flex3 we could have use the following code, bt it is not working in FLEX 4.

<fx:Script>
<![CDATA[
protected function tabbedPanel_clickHandler(event:MouseEvent):void

[code]........

View 1 Replies

ActionScript 3.0 :: Assign A Value To A Radiobutton And Trace Out When Radiobutton Is Clicked?

Feb 18, 2009

How do I assign a value to a radiobutton when it's in a for loop to then trace out the value when radiobutton is clicked? I got this now, but it just sets all the radiobutton values to 10..

View 8 Replies

Flex :: Change Highlight Color For TextInput Control's Selected Text?

Mar 24, 2011

I have a Flex3 TextInput control, with white text on a black background. I would like to change the style of highlighted text within the control to use black text on a white background (or something similar). I would love to do this using Flex styles, however I'm comming up empty handed

View 2 Replies

Flex :: Change Text Color Of Component Label/selected Item In ComboBox?

Jun 2, 2010

When I set style color, it changes both the text color for the selected item/component label and the text in the dropdown menu.

color
Type: uint Format: Color CSS Inheritance: yes
Color of text in the component, including the component label. The default value is 0x0B333C.

I would really like the label to be white and the text to be black.

View 1 Replies

Flash :: Flex - Dynamic Radiobutton In Builder 4.6 - Make It Multiline?

Jan 10, 2012

I am making a quiz application for mobile.The questions are comming from xml. How can i make multiline Radiobuttons? I tried to do a skinclass but it didn't worked.In this code i make the RadioButtons.

[Code].....

View 1 Replies

Flex :: Disable Selected Columns In A Datagrid In It For Selected Rows?

Nov 6, 2009

Is there any way to disable a few columns for a particular row in flex datagrid?

I have a datagrid with about 10 or more columns, say for example a few column names are: Item Id, Item Name, Item Status and VerifiedState. Initially I want the column Verified State to be disabled.

Now When the value of the column, Item Status is Review Passed for a particular row, I want the column VerifiedState to be enabled and editable. Is that possible in Flex datagrid.

View 2 Replies

Flex :: Toggling States - When Other Item Is Selected The First Item Does Not Change Its State?

Apr 26, 2011

I have used states in my application.The thing is I have made the first item in my list to be selected. so I gave like this,

if(itemIndex == 0)
this.currentState="selected";

this works fine.The problem is when other item is selected the first item does not change its state,it remains in the selected state until its clicked.My code looks like this,

<s:BorderContainer id="outerCont" width="275" height="100" borderVisible="false"
backgroundColor.normal="#3D3C3C" backgroundAlpha.selected="0.1"
backgroundColor.selected="{data.color}">

My states are like this,

<s:states>
<s:State name="normal" />
<s:State name="hovered" />[code]........

View 1 Replies

Flex :: Actionscript 3 - Extend A Flex Component That Is Not A Container (RadioButton, For Example)?

Jul 21, 2009

I want to extend the RadioButton component in Flex 3, adding a text input line to it in place of the label. Is it possible to do this?Alternately, is it possible to have a container -- such as an HBox -- delegate all properties to an internal component -- such as a RadioButton -- so that I could create a composite component that 'acts like' a radio button?

View 1 Replies

Actionscript 3 :: TextLayoutFormat - When Using Embedded Fonts - FontWeight Property Does Not Work

Oct 18, 2011

I have replaced all TextField objects with TextLayout as I require the functionality it offers. When using TextLayoutFormat I try to embolden text using "this._textLayoutFormat.fontWeight = FontWeight.BOLD;" Adobe have said you can only embolden text when using device fonts: "Applies only to device fonts (fontLookup property is set to flash.text.engine.FontLookup.DEVICE)."

View 1 Replies

Flex :: Add Radiobutton Child To VBox?

Feb 2, 2010

I am having troubles adding a radiobutton to a VBox in actionscript.

var radioButton:RadioButton = new RadioButton();
radioButton.groupName = "source";
radioButton.label = "label";

[Code].....

I first created these radiobuttons in mxml and it worked fine, but now that the radiobuttons need to be dynamically generated in actionscript it doesnt work.

When stepping through in the debugger I get to a binding error (1009) when trying to execute the addchild statement and nothing shows up in the VBox.

View 1 Replies

Flex :: Increase The Size Of RadioButton?

Feb 25, 2010

Recently i worked in a project where i used 5 radio button to select a page number. Now the clients wants a big radio button. how can i increase the size of radio button in flex?

View 1 Replies

Flex :: Show A Warning Before A Radiobutton Changes?

Aug 30, 2010

In my flex app I have some radio buttons. When a user clicks the radio button, I want to popup an Alert, and if the user clicks ok the radio button will change, otherwise their change will be discarded.

How do I accomplish that? I tried event.preventDefault(); while handling the click event, but that didn't do anything.

View 3 Replies

Flex :: RadioButton In Custom DataGridColumn ItemRenderer In AS3

Apr 30, 2010

I have a datagrid that I want to add a column of radio button using AS3 (instead of mxml). I was able to do this with a custom itemRenderer.
var dgc:DataGridColumn = new DataGridColumn();
dgc.itemRenderer = new ClassFactory(com.mypackage.RadioBtnColumnItemRenderer);

In my RadioBtnColumnItemRenderer.mxml, I have a box with a radioButton... like so:
<?xml version="1.0" encoding="utf-8"?>
<mx:Box xmlns:mx="[URL]" horizontalAlign="center" verticalAlign="middle">
<mx:RadioButton id="btnRadio" groupName="btnRadioSelect"/>
</mx:Box>

When I run the application, the radio button shows up in the column as it should. However, I cannot select just ONE of the radio buttons. I am able to select all of them, but I don't want this... I want the ability to select one and then if I select another one, then the first one is unselected and the current one becomes selected (just like you would expect radio buttons to work).

View 2 Replies

ActionScript3 :: Flex : Programmatically Associate A RadioButton With A RadioButtonGroup?

Jul 27, 2009

I have a UI component that, for various reasons, I have to construct programatically. The component is a table of radio buttons grouped by column.Right now, I'm constructing the column groups like so:

private function createGroupsForItemList(items: XMLList): void {
for each (var item: XML in items) {
var rbGroup: RadioButtonGroup = new RadioButtonGroup();
groups[item.@level.toString()] = rbGroup;
}
}

I'm trying to associate the RadioButton instances with the column groups like so:

private function createValueControl(item: XML): UIComponent {
var control: RadioButton = new RadioButton();
control.label = "";

[code]...

I can see in the debugger that the control has an association to the group:

control.group == groups[item.@level.toString()]

However, I can see equally that the group does not know anything about the control:

group.radioButtons.length == 0

I imagine that this is because the setter for group in RadioButton is a dumb setter; all it does is copy to the variable, which doesn't do the magic that groupName does. However, I can't seem to find the value I should use to set the RadioButton.groupName property correctly.So, in short, I'm stumped on how to get these bits to talk to each other. How do I do this?

-- EDIT -- It turns out that I can have the groups created and associated simply by setting the groupName property, but I can't get at the group to set up a selection listener; the group is NULL immediately after the setting process, which means that the second line below throws the Flex equivalent of an NPE:

control.groupName = groupNameForLevel(item);
control.group.addEventListener(Event.SELECT, updateSelection);

View 2 Replies

Flex :: Make Rights Symbol In A RadioButton Label?

Dec 1, 2010

I've got a Flex 3 site. I need to put the rights symbol, ®, in the radioButton's labels:

<mx:RadioButtonGroup id="myButtonGroup" itemClick="goClickHandler(event);"/>
<mx:RadioButton groupName="myButtonGroup" label="{answerA}" value="{answerA}"/>
<mx:RadioButton groupName="myButtonGroup" label="{answerB}" value="{answerB}"/>

I've got the label and value bound to:

[Bindable]
public var answerA:String;
[Bindable]
public var answerB:String;

I pull answerA and answerB from a database.

I guess that I need to use htmlText somehow.

View 1 Replies

ActionScript 3.0 :: Change Color Of Datagrid Selected Row?

Dec 1, 2009

how to change the color of the selected row of datagrid in as3.

in as2 it was like dataGrid.setStyle("selectionColor", "0x990000");

but how to achive this in as3

View 1 Replies

ActionScript 2.0 :: Change TextField's 'selected' Color

Sep 7, 2005

I've checked textField's class properties, but couldn't find a property to change COLOR OF SELECTED TeXT, so that when i select txt inside textField which has for ex. black background, and white text color, color of the text selected will be for ex. GREY default is i think BLACK selection color.

View 2 Replies

Flex :: Get A Cell Value Of A Selected Row In A Mx.dataGrid In Flash Builder

Feb 19, 2012

I thought I could use...

studentID = myDataGid.selectedItem.studentID

Does not want to work for me. Tracing the expression in debug it is returning "XMLList (@11e55e8d1)".

The datasource is an XMLListCollection. tracing the expression myDataGid.selectedItem I can see the studentID node and it has a value.

I see that starting with Flex 4.5, Adobe recommends that we use the spark.components.DataGrid class as an alternative to the mx:dataGrid which I am not at all familiar with or where to start to learn. I have this mx:dataGrid all setup and otherwise working and would prefer not to have to learn something new.

View 1 Replies

ActionScript 3.0 :: Change Appearance Of Selected Object At Runtime?

Oct 14, 2008

I created a little application that allow the user to dragsome objectsarond the movie rea.But I cannot find a way to change the appearance of theselected objectwhile dragging it and resetting his appearance to defaultonce the objectis released.What can I do to achieve something similar?It could be enough to change the alpha properties (aplha 30)by using thesetproperty command, but even if I can change it whiledragging, once Idrop the object (stopdrag) the alpha is not changed todefault (100).

View 1 Replies

ActionScript 2.0 :: Dynamically Change Color Of Selected Text?

Jan 13, 2006

how can I change the color of a selected piece of text dynamically? I tried somethings like this (the function is called by a button):

Code:
function changeColor() {
Selection.setFocus(textFieldname);[code]....

but I guess 'sel' isn't a string, so i can't add textColor to it? Adding something like:

Code:
sel = new String(begin, end); doesn't help much.

View 4 Replies







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