[flexcoders] Label a Button just like Flex Builder helps

2009-06-12 Thread chandruflex
In my application, I have a Button. I want to double-click this Button, and edit its label, just like we do in Flex Builder. To do this, I have a double-click event-handler for my Button. In this event-handler, I have written code to create a TextInput control (in ActionScript). I have

Re: [flexcoders] ADG/DataGrid cell change performance on large data set

2009-06-12 Thread Tom Chiverton
On Wednesday 03 Jun 2009, tntomek wrote: The source is between 100-5000k rows. That's a lot ! You could probably serve your users better by having a small data set anyway, which will also fix your performance problems. -- Helping to simultaneously engage network B2B second-generation

Re: [flexcoders] Label a Button just like Flex Builder helps

2009-06-12 Thread Harish Sivaramakrishnan
just curious, why can't you use removeChildAt()? On Fri, Jun 12, 2009 at 11:58 AM, chandruflex chandruf...@yahoo.com wrote: In my application, I have a Button. I want to double-click this Button, and edit its label, just like we do in Flex Builder. To do this, I have a double-click

Re: [flexcoders] Read Items / Loop Through Datagrid Rows

2009-06-12 Thread Harish Sivaramakrishnan
use the itemEditEnd event on the DataGrid to get the value you entered in the TextInputs. (It is fired when you tab out or change focus from rows.) Harish On Fri, Jun 12, 2009 at 5:25 AM, Angelo Anolin angelo_ano...@yahoo.comwrote: Hi, Would you care to share some codes of what you did

[flexcoders] Re: Dispatch Event Issue on BreadCrumb Trail Click

2009-06-12 Thread n_manjunatha
Hi Tim Thanks for your time and reply. Yes you are right, I am not using MVC Framework. I tried this my main.mxml is like this...of course not with exact format of flex... script { breadcrumclicked(event:Event) which comes canvas below } mx:canvas. mx:linkbar

[flexcoders] Re: Label a Button just like Flex Builder helps

2009-06-12 Thread chandruflex
Ok, I can use removeChildAt() for the question that I have asked. Actually I had to think about the next step. In my application, I will have a lot of other components (both statically and dynamically created). One or many of those dynamically created components may be Button components. ---

Re: [flexcoders] Re: Label a Button just like Flex Builder helps

2009-06-12 Thread Harish Sivaramakrishnan
While you add the child (TextInput) , make a dictionary to track the childIndex or even better the instance itself and bump it off once you complete the editing Harish On Fri, Jun 12, 2009 at 6:06 PM, chandruflex chandruf...@yahoo.com wrote: Ok, I can use removeChildAt() for the question

[flexcoders] Re: Datagrid - Using and Editing Data From XMLListCollection

2009-06-12 Thread valdhor
You would need to add an event listener for the itemeditend event. Then grab the data that was edited and modify the dataprovider. --- In flexcoders@yahoogroups.com, azona26 azsl1326-em...@... wrote: I have an editable datagrid with data being populated from an XMLListCollection. I am

[flexcoders] Re: ArrayCollection and Datagrid Binding and DataProvider Question

2009-06-12 Thread valdhor
Basically, no. The datagrid is like a window into your dataprovider. If you need to modify your dataprovider you need to listem for the itemEditEnd event, grab the data that was modified and update the underlying dataprovider. The data binding will note that the dataprovider has changed and

[flexcoders] Re: Datagrid - Using and Editing Data From XMLListCollection

2009-06-12 Thread azona26
Thanks for the help. I did try using an itemEditEnd eventlistener. The issue I was having was that the data value wasn't being changed it was still the original value. --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: You would need to add an event listener for the

Re: [flexcoders] Charting dataFunction issues

2009-06-12 Thread Sam Lai
Can you try removing some of those series to isolate the problem? Also, can we see the console output from the trace statements in seriesDataFunction? Maybe the values are out of bounds? Some sample data would be useful too if that's possible. 2009/6/12 Jake Churchill j...@cfwebtools.com:

[flexcoders] Re: Flex App for iPhone or iPod Touch

2009-06-12 Thread Tom Chiverton
On Thursday 11 Jun 2009, Jeffry Houser wrote: The Full Flash Player 10 [and therefore Flex] is supposed to be out for the Palm Pre later this year, and it coming to other devices. Look in the archives for my recent 'ARM' post. -- Helping to greatly conquer revolutionary cross-platform

RE: [flexcoders] Charting dataFunction issues

2009-06-12 Thread Jake Churchill
Sorry, I meant to follow up on this yesterday. Thanks for your reply but I figured it out. I had the wrong type of horizontal axis applied so when I was returning an xField value it was actually drawing the chart off to the right somewhere. Jake Churchill CF Webtools 11204 Davenport, Ste. 100

[flexcoders] Re: Datagrid - Using and Editing Data From XMLListCollection

2009-06-12 Thread valdhor
It works for me... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=onCreationComplete() mx:Script ![CDATA[ import mx.controls.TextInput; import mx.events.DataGridEvent;

RE: [flexcoders] Re: ArrayCollection and Datagrid Binding and DataProvider Question

2009-06-12 Thread Tracy Spratt
Data binding in general is not two-way, but an editable datagrid is a special case. It will update the dataProvider items automatically. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf

RE: [flexcoders] ambiguous reference error

2009-06-12 Thread Tracy Spratt
Which reference is ambiguous? I would mistrust a variable named valid as being a system reserved word. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of [p e r c e p t i c o n] Sent:

RE: [flexcoders] problem with Tree control data provider

2009-06-12 Thread Tracy Spratt
You may need to use a custom DataDescriptor. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of srini3477 Sent: Wednesday, June 10, 2009 2:12 PM To: flexcoders@yahoogroups.com Subject:

[flexcoders] Re: ArrayCollection and Datagrid Binding and DataProvider Question

2009-06-12 Thread valdhor
I didn't know this. When I tried it, it didn't update the dataprovider. Is there anything special that needs to happen. --- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: Data binding in general is not two-way, but an editable datagrid is a special case. It will update the

[flexcoders] Re: Sort: Datagrid sorting numbers and strings

2009-06-12 Thread flexaustin
Ok, so I am closer. If I have this: 192.168.168.12 192.168.168.129 192.168.168.24 hellokitty bigsmelly When sorting I get this (with the normal flex sorting): 192.168.168.129 192.168.168.12 192.168.168.24 bigsmelly hellokitty And if I use my own sort function and perform several sorts

[flexcoders] Re: Datagrid - Using and Editing Data From XMLListCollection

2009-06-12 Thread azona26
Thanks. I will try your updateData function. I was trying to grab the data in a different manner. I believe I was using the following: private function endEdit(event:DataGridEvent):void { trace('event.itemRenderer.data - ' +

[flexcoders] Re: Dispatch Event Issue on BreadCrumb Trail Click

2009-06-12 Thread Tim Hoff
Looks like you may be thinking about a little backwards. First add this method to the script in contentpane: import mx.events.ItemClickEvent; public function handleBreadCrumbItemClick( event:ItemClickEvent ):void { // do something } Then Main.mxml would have: mx:Canvas mx:LinkBar

[flexcoders] Re: ArrayCollection and Datagrid Binding and DataProvider Question

2009-06-12 Thread valdhor
I think I understand why. The dataprovider in the example is the actual XML List. I was wrapping the XML List in an XML List Collection so it wasn't updating the underlying dataprovider. --- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: No, you maybe had something else going

Re: [flexcoders] Re: Flex App for iPhone or iPod Touch

2009-06-12 Thread Jeffry Houser
I suspect Tom is referring top this post: http://www.mail-archive.com/flexcoders@yahoogroups.com/msg122969.html Tom Chiverton wrote: On Thursday 11 Jun 2009, Jeffry Houser wrote: The Full Flash Player 10 [and therefore Flex] is supposed to be out for the Palm Pre later this year, and

RE: [flexcoders] Flex 4 Profiling Question - GC Root?

2009-06-12 Thread Alex Harui
Somewhere you can adjust the cut off of how many paths to root are filtered out. I don't have the UI handy right now Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On

Re: [flexcoders] ambiguous reference error

2009-06-12 Thread [p e r c e p t i c o n]
Hi Tracy,that was a mistake, actually i called it 'isValid' like this mx:Button x=504 y=511 id=submitButton label=Continueclick=Submit(); enabled={isValid}/ is valid is a boolean that i declared in my code-behind also i noticed that when i put defaultButton in the root node of my mxml

Re: [flexcoders] Flex 4 Profiling Question - GC Root?

2009-06-12 Thread Mark Lapasa
I getcha, thx Alex -mL Alex Harui wrote: The mark and sweep starts from several places (ApplicationDomain, Stage, a few internal places in the Player, stack). Those are currently called GCRoots, although I’d push for changing it if we could come up with a better name. Often when you

[flexcoders] Re: ambiguous reference error

2009-06-12 Thread Tim Hoff
Are you by any chance using a getter/setter for the isValid var? If so, you may need to change the setter to public. -TH --- In flexcoders@yahoogroups.com, [p e r c e p t i c o n] percepti...@... wrote: Hi Tracy,that was a mistake, actually i called it 'isValid' like this mx:Button x=504

RE: [flexcoders] Re: Sort: Datagrid sorting numbers and strings

2009-06-12 Thread Alex Harui
You'll get errors if objects in the collection are missing properties mentioned in the sortFields, I think the first element is tested. Your compare function will have to determine if the string is a number and if both are numbers, convert them to number and compare. For IP addresses you have