re: [flexcoders] Still more problems with DataGrid
Are you using generic Objects in the ArrayCollection or do you have VOs created for your data? I've had weird things happen when using generic objects but using VOs tends to make things run way cleaner. -- Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: Laurence MacNeill lmacne...@comcast.net Sent: Thursday, May 21, 2009 9:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Still more problems with DataGrid As I add and delete items from my DataGrid's dataProvider (an ArrayCollection), my custom ItemRenderer starts messing things up. It remembers values from previous data that was there, but got deleted. But the weird thing is, it doesn't *always* do that, only some of the time. Basically, it'd be nice, whenever I delete a value from the DataProvider, to completely reset the DataGrid. Make it re-render itself completely from scratch, including the custom ItemRenderer in the 3rd column. How do I do this? Thanks, Laurence MacNeill Mableton, Georgia, USA
re: [flexcoders] TileList dataprovider change bug?
Instead of switching arraycollections, leave the arraycollection alone and alter the arraycollection.source (Array). I've had weird things happen with binding to an arraycollection and just altering the source array fixed the issue. -- Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: Ritu Raj Tiwari rituraj.tiw...@gmail.com Sent: Tuesday, May 05, 2009 8:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] TileList dataprovider change bug? I am seeing some strange behaviour with TileList. I am hoping someone can shed some light on this: I have a TileList where I assign it an ArrayCollection for its dataProvider. As I add objects to this collection, the tile list updates faithfully. The problem happens when I switch the dataProvider to a new one. I start with an empty array collection and sure enough, the tile list is empty. When I add the first item to the new dataProvider, I see the last item from the previous dataProvider as the first entry in the list. As I add more items, I see more items from the previous data provider. Has someone else encountered this? It is definitely a bug, I am wondering if there is an easy workaround, like, say, creating my own TileList subclass that clears the right thing? Thanks in advance for any insights. -Raj
re: [flexcoders] Masked Text Input
try setting restrict = null -- Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: markgoldin_2000 markgoldin_2...@yahoo.com Sent: Monday, April 13, 2009 4:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Masked Text Input Is it possiblt to set its mask to accept any char? I have tried . but it does not take numbers. Thanks
re: [flexcoders] Re: Masked Text Input
You can use a simple handler of a keyboard event to test the length and only allow the input if it is .length = 5. -- Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: markgoldin_2000 markgoldin_2...@yahoo.com Sent: Monday, April 13, 2009 8:19 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Masked Text Input Yes, but I want to provide a number of chars to limit to. Like inputMask=# limits entry to 5 numbers. --- In flexcoders@yahoogroups.com, j...@... j...@... wrote: try setting restrict = null -- Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: markgoldin_2000 markgoldin_2...@... Sent: Monday, April 13, 2009 4:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Masked Text Input Is it possiblt to set its mask to accept any char? I have tried . but it does not take numbers. Thanks
re: [flexcoders] Problem drag and drop
I'm not 100% sure about this but I just ran into an issue where I wanted to set up all my DragManager.acceptDragDrop(UIComponent) in an init function but it refused to work. DragManager only accepted that once something was actually being dragged so the same might be true for your DragManager.showFeedback(). Try setting that after you call DragManager.doDrag(). -- Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: soulflow132 sfood00...@yahoo.com Sent: Friday, April 10, 2009 9:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem drag and drop Hi. I want to use drag and drop from one panel which contains a titlewindow to another panel. What i can do is to deplace it. But what i want to do is to copy it not move it This is my code ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=init(); mx:Panel x=47 y=78 width=200 height=200 backgroundColor=#FF layout=absolute id=pan1 mx:TitleWindow x=10 y=10 label=Button mouseMove=mouseOverHandler(event); width=160 backgroundColor=#F60B0B height=77 /mx:TitleWindow mx:Button x=40 y=118 label=Button2/ /mx:Panel mx:Panel x=460 y=78 width=200 height=200 backgroundColor=#FF dragDrop=dragDropHandler(event) id=pan2 dragEnter=dragEnterHandler(event) /mx:Panel mx:Script ![CDATA[ import mx.events.CloseEvent; import mx.containers.TitleWindow; import mx.managers.DragManager; import mx.core.DragSource; import mx.events.DragEvent; import mx.containers.Canvas; public function init():void { DragManager.showFeedback(DragManager.COPY); } private function mouseOverHandler(event:MouseEvent):void { var dragInitiator:TitleWindow = event.currentTarget as TitleWindow; var ds:DragSource= new DragSource(); ds.addData(dragInitiator, can); var imageProxy:TitleWindow = new TitleWindow(); DragManager.doDrag(dragInitiator, ds, event, imageProxy); } private function dragEnterHandler(event:DragEvent):void { if (event.dragSource.hasFormat(can)) { event.preventDefault(); DragManager.acceptDragDrop(pan2); } } private function dragDropHandler(event:DragEvent):void { var window:TitleWindow= event.dragInitiator as TitleWindow; window.x = 10; window.y = 10; window.showCloseButton=true; window.addEventListener(CloseEvent.CLOSE, fermer_h) pan2.addChild(window); trace(DragManager.getFeedback()); } public function fermer_h(event:CloseEvent):void { pan2.removeChild(TitleWindow(event.currentTarget)); } ]] /mx:Script /mx:Application -- View this message in context: http://www.nabble.com/Problem-drag-and-drop-tp22997154p22997154.html Sent from the FlexCoders mailing list archive at Nabble.com.