Re: [flex_india:31391] accessing elements of mxml in actionscript

2010-09-13 Thread mahek joshipura
Hello, you can access the mxml component through its id in actionscript. For example, public function init():void { trace("Sample Text::" + sampleTxt.text) } --- Regards, Mahek On Mon, Sep 13, 2010 at 12:13 AM, lalith wrote: > how to access mxml elements from act

Re: [flex_india:31391] mx:List

2010-09-13 Thread mahek joshipura
Hello , you can use the change event and in change event you can have following code: public function changeEvt(event:Event):void { trace(event.currentTarget.selectedItem); trace(event.currentTarget.selectedItem.label); trace(event.currentTarget.selectedIndex); } -

Re: [flex_india:32130] Access global variables i Flex

2010-11-25 Thread mahek joshipura
Hello Pavan, You can use the singleton class and define a variable in it to access the variable from any location. Regards, Mahek On Fri, Nov 26, 2010 at 6:25 AM, Pavan B wrote: > Is there any option to a value in a variable (which is declared globally > for entire project or in the main (defa

Re: [flex_india:33250] DataBinding in DataGrid

2011-03-15 Thread mahek joshipura
hello, you can use labelfunction property of data grid column to merge firstname and lastname. For example, private function fullNameLabelFunction(item:Object):void{ return item.firstName + " " + item.lastName ; } Hope above example may answer your question. Regards, Mahek On

Re: [flex_india:33773] Need to add close button to tabbar components?

2011-05-18 Thread mahek joshipura
hello navin, Below link may help you a bit.please have a look at it. http://stackoverflow.com/questions/67516/flex-how-to-add-a-tab-close-button-for-tabnavigator-component Regards, Mahek On Wed, May 18, 2011 at 9:28 AM, Navin wrote: > Need to add close button to tabbar components? > > If poss

[flex_india:20834] Re: validate us zip

2009-03-25 Thread mahek joshipura
Hi, you can use regular expression for zipcode validation. visit following link. http://ryanswanson.com/regexp/ Regards, Mahek On Wed, Mar 25, 2009 at 10:22 AM, Flex Baby wrote: > > hi, > how to validate US Zipcode without zipcode validator? > > > > --~--~-~--~~~--