[flexcoders] Selecting an Item Programmatically after Adding it to List

2009-12-13 Thread steveb805
Thought I'd run this by everyone. If you have a List, whose dataprovider (arraycollection) has an ac tive sort on it, how do you select a new Item immediately after an addItem call, programtically? I can't predict what slot it's going to end up at due to the sort. It used to be easy before

[flexcoders] Re: Selecting an Item Programmatically after Adding it to List

2009-12-13 Thread steveb805
BTW, Do I need to resort to: should really say: Do I need to settle for, or something else, so as not to confuse :) --- In flexcoders@yahoogroups.com, steveb805 quantumcheese...@... wrote: Thought I'd run this by everyone. If you have a List, whose dataprovider (arraycollection

[flexcoders] Re: invalidateList not working on Menu control

2009-12-08 Thread steveb805
I've done what you described before, but I think you should try refreshing the dataprovider. arrayDP.refresh(); --- In flexcoders@yahoogroups.com, steveb805 quantumcheesedog@ wrote: invalidateList is invalidating my mood ... no it's not that bad. I have a popUpButton: templateMenu

[flexcoders] Re: invalidateList not working on Menu control

2009-12-08 Thread steveb805
); or, each time you change arrayDP, you can re-assign it as the templateMenu's dataprovider. Hope this helps, Tibor. www.tiborballai.com --- In flexcoders@yahoogroups.com, steveb805 quantumcheesedog@ wrote: Hi, actually I don't think that's supported for arrays, only arraycollections

[flexcoders] invalidateList not working on Menu control

2009-12-07 Thread steveb805
invalidateList is invalidating my mood ... no it's not that bad. I have a popUpButton: templateMenu = new Menu();// global var templateMenu.labelField = name; templateMenu.dataProvider = arrayDP; templateMenu.selectedIndex = 0; templateMenu.showRoot = true; templatePopUpButton.popUp =

[flexcoders] Re: Struggling with simply using returned SQL data for a popMenuButton

2009-12-06 Thread steveb805
you've iterated through the result array. This might be helpful if you want to do client side processing on the data before displaying it. Tibor. --- In flexcoders@yahoogroups.com, steveb805 quantumcheesedog@ wrote: The solution was actually just to stay with the original idea of mine

[flexcoders] Re: Struggling with simply using returned SQL data for a popMenuButton

2009-12-05 Thread steveb805
this is an aid to someone else. ( If I'm wrong and need to go to Walmart to purchase a clue, let me know though, but the popupbutton works now ) --- In flexcoders@yahoogroups.com, steveb805 quantumcheese...@... wrote: I've been trying like heck to get data returned from AMF Remoting and use

[flexcoders] Struggling with simply using returned SQL data for a popMenuButton

2009-12-04 Thread steveb805
I've been trying like heck to get data returned from AMF Remoting and use it for the data provider for a popUpButton. This data is from MySQL, just regular text fields/int fields, etc.. --- public var dataXML :XMLListCollection; // the data

[flexcoders] calling removeListener on a popup

2009-11-30 Thread steveb805
I have a mxml component based on TitleWindow that's used for a Popup. Nothing new there - big yawn goin your way. I also have an addEventListener called on the object (so I can dispatch a custom event): --- win = EditTaskBox(PopUpManager.createPopUp(this, EditTaskBox, true));

[flexcoders] Re: Technique to tell the filterFunction to chill for a sec before going into eff

2009-11-27 Thread steveb805
Actually, this is a non-issue. The visual activity isn't as bad as I thought if I just set the filterfunction to null while I'm doing my editing of the value object. --- In flexcoders@yahoogroups.com, steveb805 quantumcheese...@... wrote: I have a filter function for a List that hides

[flexcoders] Technique to tell the filterFunction to chill for a sec before going into eff

2009-11-26 Thread steveb805
I have a filter function for a List that hides the item if the duedate is larger than a particular number. In a function I call, to change a value object field, as soon as I hit this line below, the filter goes into effect (which is expected since duedate is the field specified in the filter)

[flexcoders] Best Pattern for a Complex Application Options/Settings Box

2009-11-19 Thread steveb805
On the verge of creating a non-Trivial Dialog screen/box for my app where a User creates categories, chooses settings (warn when deleting), Default behaviour, etc... It'll have 3 tabs. I'll be pulling the settings from a MySql Options table. Is it common practice, even for Complex dialog's,

[flexcoders] Re: Flex SDK Open Source

2009-11-19 Thread steveb805
No, I get a Oops! This link appears to be broken. message (chrome) --- In flexcoders@yahoogroups.com, cuttenv cutt...@... wrote: Hey guys, Can anyone browse the source for the flex sdk on adobe's site? http://opensource.adobe.com:81/svn/opensource/flex/sdk/ I followed the link from the

[flexcoders] Re: The Alert box is at the Top Left.

2009-11-13 Thread steveb805
responseToDeleteAllCompletedHandler(evt:CloseEvent):void{ if(evt.detail == Alert.YES) trace(Yes); else trace(No); } On Thu, Nov 12, 2009 at 4:26 PM, steveb805 quantumcheese...@...wrote: Seems like until now

[flexcoders] Getting the Prev ious Index of a List (and Combo later)

2009-11-13 Thread steveb805
Hey all, It looks like my original plan to detect a user trying to change the List selection, and then stopping them from doing so isn't possible from what I can see. ( The most hopeful sign that this is possible is the itemFocusOut event, but I can't use this, anyway, due to the editable

[flexcoders] The Alert box is at the Top Left.

2009-11-12 Thread steveb805
Seems like until now, my Alert boxes appear in the center ok. However, now that I am using a PopUpButton, and in response to one of the menu item clicks I am calling Alert.show(), the popup box is stuck at the upper left. My popupbutton handler: private function

[flexcoders] Re: The Alert box is at the Top Left.

2009-11-12 Thread steveb805
, turbo_vb timh...@... wrote: Hi Steve, Popups exist outside the normal DisplayList, so you can work around it by setting the Alert's parent like this: Alert.show(your text, your title, 4, parentApplication as Sprite); -TH --- In flexcoders@yahoogroups.com, steveb805 wrote: Seems like until now

[flexcoders] Get Notified if a Remoting Result event listener function *doesn't get called?

2009-11-09 Thread steveb805
This sounds vague, but basically it's: My Zendamf remoting object has a fault=faultListener(event), which has an Alert.show statement. However, I noticed that when I'm on my laptop, and my Net connection is flakey, this happens: I create a new Item that then gets added to my List object

[flexcoders] Re: Get Notified if a Remoting Result event listener function *doesn't get cal

2009-11-09 Thread steveb805
, Ukraine (GMT+2) mobile: +38 097 321 56 54 email: roman.prots...@...%3C/span%3eroman.prots...@... skype: roman.protsiuk linkedin: http://www.linkedin.com/in/romanpv blogspot: http://roma-ch.blogspot.com I On Mon, Nov 9, 2009 at 8:48 PM, steveb805 quantumcheese...@...wrote: This sounds

[flexcoders] Double clicking on a LIST item

2009-10-31 Thread steveb805
Is there any reason that itemDoubleClick would not produce an event ? I'm trying this itemDoubleClick=evtHandler(event), but the function doesn't get called. The code for this list is below (but I don't have the itemdoubleclick in there now) (ProjectList is an *.as file that overrides List

[flexcoders] Re: Double clicking on a LIST item

2009-10-31 Thread steveb805
itemDoubleClick events, you must set the component's doubleClickEnabled property to true. Roman On Sat, Oct 31, 2009 at 10:16 PM, steveb805 quantumcheese...@...wrote: Is there any reason that itemDoubleClick would not produce an event ? I'm trying this itemDoubleClick=evtHandler(event

[flexcoders] Getting rid of the Scrollbar in the List Item

2009-10-27 Thread steveb805
After a marathon Google-fest/Adobe Help Site search, I have not been able to figure out how an elegant, best-practice, or any other way to get rid of the horizontal scroll bar that appears when some text doesn't fit into an Item. You probably have been through this before, but I'll show you

[flexcoders] Accessing a child component,, specifically a checkbox, from an mxml component

2009-10-26 Thread steveb805
First of all, thanks for the responses concerning the List Items-detecting. Hopefully those responses made it. I'm on the Probation list where it takes a while to get approved. -- This next particular issue is really disturbing me, but it's

[flexcoders] Detect if any of the Items on a List are Selected - thought it would be easier.

2009-10-25 Thread steveb805
The only property I could find, from the Flex docs, that tells you whether your List control has anything selected is: isItemSelected(). And this takes a parameter that refers to a specific item. So before my Delete button handler, I check if any item is selected with the following: private

[flexcoders] Best way to call SQL LAST_INSERT_ID through Zend Amf

2009-10-22 Thread steveb805
Hi, I'm mostly a newbie and am writing a simple Flex app. So far, just a List box, where I am renderering a Checkbox and a :abel field, for a simple To-Do utility. I just added the Add New task functionality, and it's working fine, using the addItem method to add the new object to the List