[flexcoders] Re: HTTPService xmlEncoder
I have a set of VO's in the application that need to be sent to the server as XML. I was debating whether I should provide the objects and specify an xmlEncoder to the HTTP Service, or simply do the encoding use Strings as the request arguments to send. At this this time, I have decided to go ahead and specify an xmlEncoder. Thanks. --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: my decoder could just as easily build the XML document as a string. You mean a XML string or XML to name-value pairs... If you want to convert a XML object to string, you can do _xml.toString(), it would give you entire xml structure as string... Does your encoder do same? -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Sent: Friday, April 15, 2005 6:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] HTTPService xmlEncoder Hi, I have a HTTPService for which I have written a xmlDecoder to build my VOs from data received from my service. I am not about to send data to the service, and was wondering if using the xmlEncoder was an overkill - my decoder could just as easily build the XML document as a string. What are the pro's and cons of each ? Thanks. Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] reset views fields values for a stackview panel
Hi Matt, I tried distoryAllChildren for the viewStack but the application has been put on his knees I got an warning message from the player that a script is causing some problems... don't remember the message... I think I would like the approach you mention with the binded model to the form elements and try clear the model and disable/enable the validator. Thanks for helping me out, Valy --- Matt Chotin [EMAIL PROTECTED] wrote: Basically I would give each screen a clear() method and then walk the ViewStack's children and call clear() on each. If you want you could have the fields on each screen bound to some model and then clear the fields within the model. If you have Validators set up though you'll need to be careful because the Validators might indicate that the form is invalid after it has been cleared. You'll need to disable the validators before clearing the fields and re-enable them after. I think we've discussed this in other flexcoders posts but I don't remember the subjects. Some people have taken the approach of actually destroying all the children and re-creating them, but that might be a little expensive for your situation. Matt _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Sent: Friday, April 15, 2005 12:38 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] reset views fields values for a stackview panel I have a view stack containers with multiple sub-views that can suport add/edit/delete functionalities. At some point I need to clear all the stack's views... imagine I have navigated through some screens and have an option to start from the beggining and need somehow to clear all the views and start fresh again Is there any way to do that? Thanks, Valy _ Do you Yahoo!? Yahoo! Small Business - Try http://us.rd.yahoo.com/evt=31637/*http:/smallbusiness.yahoo.com/resources/ our new resources site! _ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! http://docs.yahoo.com/info/terms/ Terms of Service. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] null dataProvider on ComboBox
It appears setting a null dataProvider for a ComboBox makes further calls to the ComboBox' parent via destroyAllChildren not to work. I guess the only thing to be learned is, if you see a blank ComboBox that should be full, beware... Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Drag/Pan/Zoom HOWTO-do it better?
Hi all, I've loaded a SWF map into a mx:Canvas (Flex 1.5) and need advice as to how to tackle the following problems: - When zooming/scaling the map the mx:Canvas scrollbars (always set to on) are not behaving properly (sometimes not reflecting the change in the scale of the content and sometimes disappearing altogether). Any pointers as to how I can get the mx:Canvas scrollbars to behave correctly/consistently? - When moving the map around in the mx:Canvas using the scrollbars the movement is jerky and slow. Any tips/samples on how I can improve the behavior? - When dragging the map with the mouse clicked down the movement is jerky and slow at best. Does anyone have any tips/samples as to how to optimise this type of functionality? Is there a means to reduce the rendering quality of the SWF displayed within the Canvas to low while dragging to mitigate the effects of this problem? I'm a Java coder and still getting to grips with mxml and as2 tricks. Any tips/hints/pointers/samples much appreciated. Thanks, Carlos Lozano Quavantis Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Drag/Pan/Zoom HOWTO-do it better?
I can tackle 1 one those, the rest are juts inferences: 1. not sure; try setting the v and hScrollPolicy = off before you drag. 2. How are you dragging it? 3. Yep! Don't know if this is Flex documented :: takes 2 millisecond look :: Weird, don't see it. Anyway, do 2 things: - set your framerate to at least 31 fps, if it's not already - try setting _quality = LOW; _quality should be global and the compiler shouldn't whine :: tests :: ah, cool, it works here. Ok, set it to LOW when you drag, and change it back to HIGH when your done. - Original Message - From: carloslozanodiez [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, April 16, 2005 1:02 PM Subject: [flexcoders] Drag/Pan/Zoom HOWTO-do it better? Hi all, I've loaded a SWF map into a mx:Canvas (Flex 1.5) and need advice as to how to tackle the following problems: - When zooming/scaling the map the mx:Canvas scrollbars (always set to on) are not behaving properly (sometimes not reflecting the change in the scale of the content and sometimes disappearing altogether). Any pointers as to how I can get the mx:Canvas scrollbars to behave correctly/consistently? - When moving the map around in the mx:Canvas using the scrollbars the movement is jerky and slow. Any tips/samples on how I can improve the behavior? - When dragging the map with the mouse clicked down the movement is jerky and slow at best. Does anyone have any tips/samples as to how to optimise this type of functionality? Is there a means to reduce the rendering quality of the SWF displayed within the Canvas to low while dragging to mitigate the effects of this problem? I'm a Java coder and still getting to grips with mxml and as2 tricks. Any tips/hints/pointers/samples much appreciated. Thanks, Carlos Lozano Quavantis Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Drag/Pan/Zoom HOWTO-do it better?
Thanks for tips! 1.Have tried setting vScrollPolicy to off with the result being less than satisfactory; despite clipContent being set to on if vScrollPolicy hScrollPolicy are set to off the SWF loaded within the Canvas gets repainted beyond the boundaries of the Canvas. Yep... weird. 2.As to dragging, I do it more or less this way: - // Check whether this is an event affecting the Canvas. function handleCanvasEvent():Boolean { if (canvas1.mouseX=0 canvas1.mouseX=(canvas1.width-20) canvas1.mouseY=0 canvas1.mouseY=(canvas1.height-20)) { return true; } else { return false; } } // Detect mouse down and whether this event should be handled for dragging. function handleMouseDownSomewhere(event) { if (handleCanvasEvent()) { mouseDownX = canvas1.mouseX; mouseDownY = canvas1.mouseY; currentX = layerCanvas.x; currentY = layerCanvas.y; } } // Handle events for life dragging. function handleMouseMoveSomewhere(event) { if (handleCanvasEvent()) { layerCanvas.x = currentX+(canvas1.mouseX-mouseDownX); layerCanvas.y = currentY+(canvas1.mouseY-mouseDownY); } } - I'm sure there must be more elegant ways to produce similar effects... this works with the aforementioned unsavoury side-effects. 3.Tried it... has improved performance somewhat. Can this reduction in rendering quality be applied to specific contains or always at a global level? Salutacions - Un Saludo - Regards, Carlos Lozano Diez Quavantis JesterXL [EMAIL PROTECTED] Sent by: flexcoders@yahoogroups.com 16/04/2005 19:25 Please respond to flexcoders@yahoogroups.com To flexcoders@yahoogroups.com cc Subject Re: [flexcoders] Drag/Pan/Zoom HOWTO-do it better? I can tackle 1 one those, the rest are juts inferences: 1. not sure; try setting the v and hScrollPolicy = off before you drag. 2. How are you dragging it? 3. Yep! Don't know if this is Flex documented :: takes 2 millisecond look :: Weird, don't see it. Anyway, do 2 things: - set your framerate to at least 31 fps, if it's not already - try setting _quality = LOW; _quality should be global and the compiler shouldn't whine :: tests :: ah, cool, it works here. Ok, set it to LOW when you drag, and change it back to HIGH when your done. - Original Message - From: carloslozanodiez [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, April 16, 2005 1:02 PM Subject: [flexcoders] Drag/Pan/Zoom HOWTO-do it better? Hi all, I've loaded a SWF map into a mx:Canvas (Flex 1.5) and need advice as to how to tackle the following problems: - When zooming/scaling the map the mx:Canvas scrollbars (always set to on) are not behaving properly (sometimes not reflecting the change in the scale of the content and sometimes disappearing altogether). Any pointers as to how I can get the mx:Canvas scrollbars to behave correctly/consistently? - When moving the map around in the mx:Canvas using the scrollbars the movement is jerky and slow. Any tips/samples on how I can improve the behavior? - When dragging the map with the mouse clicked down the movement is jerky and slow at best. Does anyone have any tips/samples as to how to optimise this type of functionality? Is there a means to reduce the rendering quality of the SWF displayed within the Canvas to low while dragging to mitigate the effects of this problem? I'm a Java coder and still getting to grips with mxml and as2 tricks. Any tips/hints/pointers/samples much appreciated. Thanks, Carlos Lozano Quavantis Yahoo! Groups Links Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Flex Containers.
Is there a way to make flex containers grow in size insted of showing a scroll bar? I know you can use 100% values on widths and heigths but lets say you have a viewstack and inside you have a product search component that uses a repeater to display products, but each time there are more products on the repeater a scroll bar comes up on the viewstack and what I would want is the viewstack itself grow so only the main Application scroll bar comes up. Any help would be apreciated. Omar Ramos Technology Manager www.itacon.net Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Flex Containers.
Omar - yes, it's an undocumented feature that took me a while to find out about. In your ViewStack, set resizeToContent=true. That's it. Works for tab containers, too. - Tom At 02:00 PM 4/16/2005, you wrote: Is there a way to make flex containers grow in size insted of showing a scroll bar? Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Drag/Pan/Zoom HOWTO-do it better?
1. Darn... 2. Try changing this: // Handle events for "life" dragging. function handleMouseMoveSomewhere(event) { if (handleCanvasEvent()) { layerCanvas.x = currentX+(canvas1.mouseX-mouseDownX); layerCanvas.y = currentY+(canvas1.mouseY-mouseDownY); } } To this: // Handle events for "life" dragging. function handleMouseMoveSomewhere(event) { if (handleCanvasEvent()) { layerCanvas.x = currentX+(canvas1.mouseX-mouseDownX); layerCanvas.y = currentY+(canvas1.mouseY-mouseDownY); updateAfterEvent(); } } 3. Darn... naw, _quality is a global switch to tell the Flash player to render the entire contents in that quality mode; currently, you cannot tell a specific area how to render. You can also try "MEDIUM". - Original Message - From: [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, April 16, 2005 1:49 PM Subject: Re: [flexcoders] Drag/Pan/Zoom HOWTO-do it better? Thanks for tips! 1.Have tried setting vScrollPolicy to "off" with the result being less than satisfactory; despite clipContent being set to "on" if vScrollPolicy hScrollPolicy are set to "off" the SWF loaded within the Canvas gets repainted beyond the boundaries of the Canvas. Yep... weird. 2.As to dragging, I do it more or less this way: - // Check whether this is an event affecting the Canvas. function handleCanvasEvent():Boolean { if (canvas1.mouseX=0 canvas1.mouseX=(canvas1.width-20) canvas1.mouseY=0 canvas1.mouseY=(canvas1.height-20)) { return true; } else { return false; } } // Detect mouse down and whether this event should be handled for dragging. function handleMouseDownSomewhere(event) { if (handleCanvasEvent()) { mouseDownX = canvas1.mouseX; mouseDownY = canvas1.mouseY; currentX = layerCanvas.x; currentY = layerCanvas.y; } } // Handle events for "life" dragging. function handleMouseMoveSomewhere(event) { if (handleCanvasEvent()) { layerCanvas.x = currentX+(canvas1.mouseX-mouseDownX); layerCanvas.y = currentY+(canvas1.mouseY-mouseDownY); } } - I'm sure there must be more elegant ways to produce similar effects... this works with the aforementioned unsavoury side-effects. 3.Tried it... has improved performance somewhat. Can this reduction in rendering quality be applied to specific contains or always at a global level? Salutacions - Un Saludo - Regards,Carlos Lozano Diez Quavantis "JesterXL" [EMAIL PROTECTED] Sent by: flexcoders@yahoogroups.com 16/04/2005 19:25 Please respond toflexcoders@yahoogroups.com To flexcoders@yahoogroups.com cc Subject Re: [flexcoders] Drag/Pan/Zoom HOWTO-do it better? I can tackle 1 one those, the rest are juts inferences:1. not sure; try setting the v and hScrollPolicy = "off" before you drag.2. How are you dragging it?3. Yep! Don't know if this is Flex documented :: takes 2 millisecond look :: Weird, don't see it. Anyway, do 2 things:- set your framerate to at least 31 fps, if it's not already- try setting _quality = "LOW"; _quality should be global and the compiler shouldn't whine :: tests :: ah, cool, it works here. Ok, set it to "LOW" when you drag, and change it back to "HIGH" when your done.- Original Message - From: "carloslozanodiez" [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Saturday, April 16, 2005 1:02 PMSubject: [flexcoders] Drag/Pan/Zoom HOWTO-do it better?Hi all,I've loaded a SWF map into a mx:Canvas (Flex 1.5) and need advice asto how to tackle the following problems:- When zooming/scaling the map the mx:Canvas scrollbars (always setto on) are not behaving properly (sometimes not reflecting thechange in the scale of the content and sometimes disappearingaltogether). Any pointers as to how I can get the mx:Canvasscrollbars to behave correctly/consistently?- When moving the map around in the mx:Canvas using the scrollbarsthe movement is jerky and slow. Any tips/samples on how I canimprove the behavior?- When dragging the map with the mouse clicked down the movement isjerky and slow at best. Does anyone have any tips/samples as to howto optimise this type of functionality? Is there a means to reducethe rendering quality of the SWF displayed within
RE: [flexcoders] Flex Containers.
Thanks for the reply, this is weird tho I see the property in the docs but when I try it, the compiler tells me that viewstack doesn't have that property. Omar Ramos Technology Manager www.itacon.net From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom FitzpatrickSent: Saturday, April 16, 2005 2:15 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Flex Containers. Omar - yes, it's an undocumented feature that took me a while to find out about. In your ViewStack, set resizeToContent="true".That's it.Works for tab containers, too.- TomAt 02:00 PM 4/16/2005, you wrote:Is there a way to make flex containers grow in size insted of showing a scroll bar? Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex Containers.
Are you using Flex 1.5? At 02:47 PM 4/16/2005, you wrote: Thanks for the reply, this is weird tho I see the property in the docs but when I try it, the compiler tells me that viewstack doesn't have that property. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Flex Containers.
yes, wonder if cuz its .NET beta edition. Omar Ramos Technology Manager www.itacon.net From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom FitzpatrickSent: Saturday, April 16, 2005 3:10 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flex Containers. Are you using Flex 1.5?At 02:47 PM 4/16/2005, you wrote:Thanks for the reply, this is weird tho I see the property in the docs but when I try it, the compiler tells me that viewstack doesn't have that property. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Flex Containers.
On 4/17/05, Omar Ramos [EMAIL PROTECTED] wrote: yes, wonder if cuz its .NET beta edition. If resizeToContent is not working for you, another option is to take over the sizing of the ViewStack. ViewStack id=vs change=myChangeHandler() / function myChangeHandler():Void { vs.width = vs.selectedChild.preferredWidth; vs.height = vs.selectedChild.preferredHeight; } i.e. always size the ViewStack to the preferred width/height of the selected child. -- [EMAIL PROTECTED] http://manish.revise.org/ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] TabNavigator changing event ?
On 4/15/05, Doodi, Hari - BLS CTR [EMAIL PROTECTED] wrote: can I trap any event before change event can occur so that I can display confirmation alert and act accordingly. You'll have to extend the TabNavigator and override the selectedIndex setter. !-- MyTabNavigator.mxml -- ?xml version=1.0? mx:TabNavigator xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* mx:Script var savedSelectedIndex:Number; public function set selectedIndex(value:Number):Void { savedSelectedIndex = value; tabBar.selectedIndex = super.selectedIndex; confirm(Are you really, really sure?); } /mx:Script /mx:TabNavigator In your alert handler you set the selectedIndex to the savedSelectedIndex (if the user clicked OK). -- [EMAIL PROTECTED] http://manish.revise.org/ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] MXMXL Editor
On 4/14/05, Ketan Bengali [EMAIL PROTECTED] wrote: Has anybody tried any editors apart from from Flex Builder for mxml? Just to answer the question -- yes, I use Vim. It has no MXML-specific features (so I'm not recommending it), but it has general editor features I can't live without. For XML files, it has auto-closing of tags, syntax highlighting, and folding of XML nodes. -- [EMAIL PROTECTED] http://manish.revise.org/ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/