Flex :: Accessing A Label's Value In An Accordian's Selected Child?

Feb 27, 2011

I have an Accordian in my application. Each child of the accordian has a label firstNameLabel) and a button (addPolicyButton). The label's value is being set via Repeater and an array. How can I access the firstNameLabel's value of 'selected child of the accordian' when the addPolicyButton is clicked?In following code testTextArea.appendText prints 'fname: undefined' in the testTextArea.Where as I can see in the accordian that the set label's text is set to 'Michael' which is what repMonitor.currentItem.firstName returned.

Code:
private function addPolicy():void{
testTextArea.appendText("fname:"+firstNameLabel.text);

[code].....

View 1 Replies


Similar Posts:


Flex :: Get Linkbutton Label Name And Selected Row Of Datagrid?

May 12, 2011

i am using below code for using linkbutton in flex datagrid

<mx:DataGridColumn headerText="Case ID" width="80">
<mx:itemRenderer>
<fx:Component>

[Code]...

now on link button click i want linkbutton label name and selected row inside lnkCaseIdClick method, how can i do this?

View 2 Replies

Flex :: Get The Label Of The Selected Radio Button In The Event Handler?

Mar 11, 2011

I have the following codes,

for (i=0; i<answerArray.length; i++) {
var myOptionButton1:spark.components.RadioButton = new spark.components.RadioButton();
myOptionButton1.label = answerArray.getItemAt(i).Answer_Choice;

[code].....

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

Flex :: Accessing Value Of Selected Item In A List?

Sep 2, 2011

I'm having a problem with getting the value of an item that the user selects in my mobile Flex application. When I select an item from the list I place that item into an ArrayCollection. But when I check the value (trace()), the value is [object Object] and I can't seem to access the actual value of the object. Here is what I am doing:

private var selectedPlayers:ArrayCollection = new ArrayCollection();
private var numOfPlayers:int;
...
//check if item is not already in selected players list

[code]....

View 2 Replies

Flex :: Set Selected Child In Viewstack?

Dec 3, 2009

in main.mxml :

public function init():void
{
PopUpManager.createPopUp(this,login,true);
}

[Code]....

How can i selectchild of main.mxml's Viewstack from login.mxml ?

View 4 Replies

Flex :: Merge A VDivided Box & Accordian?

Oct 26, 2010

I have an application w/ 2 side-by-side pages of text. I have the VDivided box set up so the user can drag it to make one of the documents bigger or smaller.Is there a way to get the look of a VDivided box & the functionality of an Accordian, so that when the user clicks the VDivided box (or double clicks, I haven't decided) one of the documents will be hidden? (For instance, double clicking on the right-most side of the divider will hide the left document, and vice-versa)

In addition, if the user wanted to drag the divider, then they can do that as well. I don't have much, but here it is so far:

<mx:HBox width="100%" height="100%">
<mx:HDividedBox width="100%" height="100%">[code]......

View 1 Replies

ActionScript 3.0 :: Flex - Accordion. No Child Selected?

Oct 21, 2008

When i create a new Accordion object and add some items to it with a dataProvider The default selected Child is 0.

View 3 Replies

Flex :: Accessing The Currently Selected Item In ComboBox Of Manually Entered String?

Nov 14, 2011

I just want to acquire the existing label from the currently selected item in a ComboBox. I populated it with a DataProvider with a list of strings and it will not allow me to get the currently selected label, especially if I input a new one, not included in the DataProvider

View 1 Replies

Flex :: Add First Child Vertically Aligned With Label?

Sep 22, 2010

In flex form layout

<mx:Form id="form">
<mx:FormItem label="horizontal:">
<mx:Text text="test"/>
</mx:FormItem>
</mx:Form>

the output will be

horizontal 'test'

But my constraint is i want to align the textbox(first child of the form item ) vertically with the label. How can i do this?

View 2 Replies

Flex :: SpriteVisualElement Cannot Add As A Child Spark Label?

Jul 1, 2011

[Code]....

The follow code seems not to working ( Flex 4.5 ). What could cause this issue, and how to fix it ?

View 2 Replies

Actionscript 3 :: CheckBox In Flex 3 - Text Area Which Should Contain The Selected Checkbox's Label / Data

Mar 19, 2012

I need a datagrid, which contains checkbox (4 no's) without multiple selection. And I also need a text area which should contain the selected checkbox's label/data. I tried using arraycollection but I am not getting.

View 2 Replies

ActionScript 3.0 :: Flash Selecting A Specific Child By Mouseclick, Turning Off A Child Within All Non Selected?

Mar 19, 2011

I've used this site as a resource leading up to this, not particularly sure if I worded this correctly I have a class "Block" which is just a square (will be something else later on in the process) I want each block to have controls to add an additional block in either direction so I have another class BlockButtons which has my buttons for each direction.

And another class GlobalVar where I keep all my variables for funsies

[Code]...

View 1 Replies

ActionScript 3.0 :: Flex Form Layout - Add First Child Vertically Aligned With Label

Sep 22, 2010

In flex form layout

<mx:Form id="form">
<mx:FormItem label="horizontal:">
<mx:Text text="test"/>
</mx:FormItem>
</mx:Form>

the output will be horizontal 'test' But my constraint is i want to align the textbox(first child of the form item ) vertically with the label. How can i do this?

View 3 Replies

Flex - Accessing Child MovieClips FlashDevelop?

Feb 17, 2010

I have a movieClip within another MovieClip. I gave the child movieClip the instance name "hSprite" and I added it to the parent movieClip stage. Now I get an error like the following.

[Fault] exception, information=ReferenceError: Error #1056: Cannot create property hSprite on com.objects.Hero. If I remove the instance name from the child movieclip, then the error goes away. but when I add the instance name back, the error reappears again.

Keep in mind that both classes are set for export. The parent class is embeded by a custom class which work perfectly fine. But the minute I give the child movieClip a instance name, the error starts up again.

[Code]...

View 1 Replies

Flex :: Do 'anything' With The Selected Text In Mx:Label Or Mx:Text?

Jun 19, 2009

Flex's text-editing controls (mx:TextField, mx:TextArea) offer functions for doing "stuff" with the selected text (selectionBeginIndex, selectionEndIndex, setSelection), but the text-displaying controls (mx:Label, mx:Text) don't seem to offer anything of the sort.After some tinkering, I've tried subclassing Label then writing functions which give access to the underlying TextField instance... But even then, setting the selection didn't work![code]So, is there any better way to access/change the text which is selected in mx:Label and mx:Text controls? Are there "better" controls to use?

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

ActionScript 3.0 :: Multiple Selected Checkboxes + Label Load?

Oct 28, 2011

i'm making a flash quiz that is loading random images and you answer with checkboxes but i have some problems with them.you have 3 answers to choose from but how can i make it that you can only check 1 box at a time?i have tried this:

PHP Code:
while (stelling_1.selected){
stelling_2.enabled = false

[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

IDE :: DataGrid - Directly Accessing All Data In Row Selected?

Mar 5, 2008

I have a cs3(AS3) datagrid component and I'm tracking which row the user has selected by using ListEvent.ITEM_CLICK to listen for a selection and then event.rowIndex in the handler function and using this index no to select data from the array which was used with the dataProvider. The problem is this. If the user re-sorts the rows using the column headers, this resets the rowIndex (ie the first entry is always row 0) and so this no longer relates back to my array. Is there a way to directly access some or all of the data in the row the user selects?

View 3 Replies

ActionScript 1/2 :: Make The Selected Label And Data In Combobox Appear In A Dynamic Text Box In Macromedia Flash 8?

May 3, 2010

How do I make the selected label and data in my combobox appear in a dynamic text box in macromedia flash 8?

View 10 Replies

Actionscript 3 :: Getting ViewState's Selected Child's Id?

May 27, 2011

I'm transitioning a flex 3 application to flex 4. There was AS code in the flex 3 app that worked:

var myCurrentSelectedChild:String = myViewStack.selectedChild.id;

Now, in flash builder and flex 4.5, it throws the error - "-1119: Access of possibly undefined property id through a reference with static type mx.core:INavigatorContent". I'm trying to get the viewStack's selected child's id.

View 3 Replies

ActionScript 3.0 :: AddChild-Selected Child Always On Top?

Jun 11, 2009

I have a package that scales a pic up when the pic is moused over. Also in the .fla that references that package, I have code that loads the pics into movie clips on the stage(using XML).

My problem is that when I mouse over the pic it goes behind the other pics that are next to it. The moused over pic needs to appear above the surrounding pics. I know this is an addChildAt / indexing issue. I'm just having trouble working it into my code.

Actually, the package code (PhotoScaler.as) has a line that is supposed to make the moused over mc go above everything else, but it doesn't work when I add a pic to the symbol

Here is the Package code:

Code:
package AS3code {
import caurina.transitions.Tweener
import flash.display.MovieClip;
import flash.events.MouseEvent;

[Code]....

View 2 Replies

IDE :: Access The Child Of A Selected MovieClip In JSFL?

Dec 16, 2010

Is there a way to access the child of a selected movieClip in JSFL.

ie i can access the selected movieClip using fl.getDocumentDOM().selection[i]. Now i also want to access the child of this movieClip.

My aim is to give instance name to all the movieClip in an FLA

View 1 Replies

ActionScript 3.0 :: Accessing 'Label' In A Parent Movie Clip

Nov 4, 2009

What is the code to make you jump to a "Label" in a parent movie clip, when clicking on a button.Lets say the buttons name is push_btn and I am in mc2 and the label is located in mc1.

View 8 Replies

ActionScript 3.0 :: Child Label And MouseEvents?

Feb 28, 2010

When I have a Label on a Sprite for example, it doesn't respond to MouseEvents, or at least not correctly. For example, if I set buttonMode = true on the Sprite, the label won't have the clicking cursor. Is there a work around for this? Other than stacking another Sprite on top of it which seems very inefficient.

View 3 Replies

ActionScript 3.0 :: Accessing A Child Inside A Child Inside A Child?

Nov 23, 2011

mHook -> mBottom -> hItemButton -> itemButton[a] -> itemButtonExp[a]

so i press another butoon, and retrieve a number 2, how do i access itemButton[2].itemButtonExp[2]? Coz i need to change the text field in there?

in AS2 i can access it directly by changing itemButtonExp[a].text, but how do i do it in AS3?

View 3 Replies

ActionScript 3.0 :: Accessing Nested Items - Access The Button Again If Change Something Like The Label?

Apr 29, 2010

[Code].....

//I want to access the button "myButton1" here. How would I do that? the example below does not work myButton1.label = "something else" I have created a set of x number of buttons with the code above and added them to the stage. My question is now do I access the button again if I want to change something like the label?

View 2 Replies

ActionScript 3.0 :: Creating Topic/SubTopic(accordian) Navigation Using This Function?

Jun 29, 2010

I'm trying to create an accordian style menu using the function below, which is structured off the xml file posted below as well. I have everything parsed into Flash and can see all the data, as well as the movie clips being created. What I AM having a problem with is positioning the movie clips appropriately. The submenu items should sit directly underneath the menu items, like a traditional accordian menu looks, but I cannot come up with the right formula to make this happen.
 
function createXMLMenu(menuLength:Number,itemName:XMLList):void{
var navItemText:XMLList = itemName;
//Create dynamic menu based off
//menuLength parameter being passed in

[code]....

View 1 Replies

ActionScript 3.0 :: Have The Flash Cs4 Preview Display Child Movie At A Selected Frame?

Mar 31, 2009

The only thing that has me puzzled is the preview field. Basically i have a background which is a movie clip, it basically transforms from the loader to the background (over 70 frames).

is there a way to have the preview field for the root movie display a child movie at a frame other than frame 1? At the moment it looks like this: [URL]

But i'm wanting it to look like this: [URL]

It would help or positioning other items if i had the background displayed how it will actually be?

View 2 Replies







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