[flexcoders] Remote Objects not working with Modules

2010-07-22 Thread ZIONIST
Hi guys, i am experiencing something weired. i have an application and i have broken it up into modules so as to reduce the size of the application so archive faster download speed for the app. anyhow, i use ColdFusion to retrieve, insert, edit and delete data from a database and when i use

[flexcoders] Web Services and ObjectProxy question for the Flex Gurus

2010-07-22 Thread flexcodemonkey
It seems like a common problem, I'm seeing tons of posts on the web, but no solid solution. I'm making a web service call which will return a complex data type, say Car. The Car has internal complex data types like Wheel, Door, etc. I'm using Flex 4 and I set the returntype for the webservice

Re: [flexcoders] Web Services and ObjectProxy question for the Flex Gurus

2010-07-22 Thread claudiu ursica
Are you generating the VO's on the client side? C From: flexcodemonkey michael_reg...@dell.com To: flexcoders@yahoogroups.com Sent: Thu, July 22, 2010 2:39:24 AM Subject: [flexcoders] Web Services and ObjectProxy question for the Flex Gurus It seems like

Re: [flexcoders] Web Services and ObjectProxy question for the Flex Gurus

2010-07-22 Thread Sajid Hussain
true this issue comes even with remote objects call , I exactly not get the solution , but put some check at the time of return ,if its object create an array or do the this on flex . Sajid From: claudiu ursica the_bran...@yahoo.com To:

[flexcoders] Re: 2 PopUpButton questions: force opening upwards + red and black item colors

2010-07-22 Thread Alexander Farber
Thank you, but now I get the runtime error: TypeError: Error #1034: Type Coercion failed: cannot convert rende...@4c310a1 to mx.controls.menuClasses.IMenuItemRenderer. at

[flexcoders] Re: Remote Objects not working with Modules

2010-07-22 Thread valdhor
I don't know what to tell you. My application has over 25 modules and every one of them uses remote objects successfully. Could you post a small example of what you are trying? --- In flexcoders@yahoogroups.com, ZIONIST stinas...@... wrote: Hi guys, i am experiencing something weired. i have

[flexcoders] Re: Web Services and ObjectProxy question for the Flex Gurus

2010-07-22 Thread Mike
Michael, The Flex SDK can do what you want, but the default behavior is for it to unwrap collections and enclosing types which only contain one item. This default was not a good idea, IMO. Have you tried setting Operation.forcePartArrays true?

[flexcoders] Re: ItemEditor | Multiple Components | Focus Issue

2010-07-22 Thread Rajan
No, i have not borrowed the code for popup editorut yes i am using the popup editor. Please see the code for Pop up at http://ilikeflex.blogspot.com/ http://ilikeflex.blogspot.com/ Under 'Code for PopUp' But my itemEditEnd event handler code is below. private function

Re: [flexcoders] Re: ItemEditor | Multiple Components | Focus Issue

2010-07-22 Thread Alex Harui
You might want to compare the popup editor example from my blog with your example On 7/22/10 6:59 AM, Rajan ilikef...@yahoo.com wrote: No, i have not borrowed the code for popup editorut yes i am using the popup editor. Please see the code for Pop up at http://ilikeflex.blogspot.com/

Re: [flexcoders] Re: Remote Objects not working with Modules

2010-07-22 Thread Alex Harui
I believe there are some known issues with having a shared RO in the main app and the VO class definitions in a module. Some of those issues hopefully got resolved in FP10.1. The recommended config is to have all the VO classes in the main app with the RO. On 7/22/10 5:05 AM, valdhor

Re: [flexcoders] Re: 2 PopUpButton questions: force opening upwards + red and black item colors

2010-07-22 Thread Alex Harui
There might be easier ways to get multiline text with bold and fontsize 16. Setting wordWrap=true and some styles might just work. Otherwise, it is time to read up on how to create custom item renderers. You have to implement IMenuItemRenderer in your custom renderer. On 7/22/10 1:15 AM,

[flexcoders] Re: ItemEditor | Multiple Components | Focus Issue

2010-07-22 Thread Rajan
I looked at your sample but it does not contain nested properties.So event.preventDefault(); is not required and everything works fine. --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: You might want to compare the popup editor example from my blog with your example On

Re: [flexcoders] Re: Remote Objects not working with Modules

2010-07-22 Thread kannan Mugundan
Hi I am using modules in my application and each modules has its own Remote object and I am using Spring Blazeds as Server side. post the errors, so you can get some help. Make sure you follow things related to Application current domain settings. kannan On Thu, Jul 22, 2010 at 8:29 PM,

[flexcoders] Re: Web Services and ObjectProxy question for the Flex Gurus

2010-07-22 Thread flexcodemonkey
Thanks! I will look into all of this. Greatly appreciated for the pointers! - Michael --- In flexcoders@yahoogroups.com, Mike msl...@... wrote: Michael, The Flex SDK can do what you want, but the default behavior is for it to unwrap collections and enclosing types which only

[flexcoders] Re: Web Services and ObjectProxy question for the Flex Gurus

2010-07-22 Thread flexcodemonkey
Thanks for the replies. I'm not wanting an array. Yes, I could just stick the returned single ObjectProxy in an array, but now I have an undefined object inside of an array. This works if I'm taking the returned data and binding it to some control, but I'm actually needing tp parse the

[flexcoders] Re: 2 PopUpButton questions: force opening upwards + red and black item colors

2010-07-22 Thread Alexander Farber
I've tried another code and still get the error when I click the menu: TypeError: Error #1034: Type Coercion failed: cannot convert myrende...@47410a1 to mx.controls.menuClasses.IMenuItemRenderer. at

[flexcoders] Re: 2 PopUpButton questions: force opening upwards + red and black item colors

2010-07-22 Thread Alexander Farber
Now it works (not sure if dispathEvent needed though and why): ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; verticalScrollPolicy=off horizontalScrollPolicy=off implements=mx.controls.menuClasses.IMenuItemRenderer width=100% height=100% mx:Script

[flexcoders] FlexNativeMenu crash in the LayoutManager

2010-07-22 Thread Christopher McArthur
This is in Flex 3.2: We have a rare crash in one of our components. We have no repro case, but we were able to catch it in the debugger once and get a callstack. Ive included the callstack at the bottom of this message. The error is: -: TypeError: Error #1034: Type Coercion failed: cannot

[flexcoders] Button with tooltip but no overskin

2010-07-22 Thread Richard Rodseth
Is there a simple way to set up a button so that it's appearance doesn't change on rollOver, but the tooltip does appear? I am simulating a menu bar of sorts using a horizontal layout of PopUpButtons and Buttons. The Buttons are just filler that need to follow the style of the others, but have no

[flexcoders] Re: Button with tooltip but no overskin

2010-07-22 Thread Richard Rodseth
I should have noted that this is for Flex 3. I created a subclass of ButtonSkin which overrides name() to return upSkin. If anyone has a more elegant solution please let me know. On Thu, Jul 22, 2010 at 12:35 PM, Richard Rodseth rrods...@gmail.com wrote: Is there a simple way to set up a

Re: [flexcoders] Re: 2 PopUpButton questions: force opening upwards + red and black item colors

2010-07-22 Thread Alex Harui
MyRenderer.mxml: ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; implements=”mx.controls.menuClasses.IMenuItemRenderer” On 7/22/10 4:57 AM, Alexander Farber alexander.far...@gmail.com wrote: I've tried another code and still get the error when I click

[flexcoders] Issue with item renderer in Flex 3

2010-07-22 Thread shameer.forflex
Hi All, I am facing a problem in using item renderers. I have a checkbox as an item renderer in a datagrid. When I check/uncheck the checkbox, the color of the checkbox should change from its default color to yellow. And on click of a save button, I am saving the changes to the database and

[flexcoders] Value Object --- Object Proxy --- huh???

2010-07-22 Thread mark.embrey
I'm trying to wrap my feeble brain around these concepts. Are they the same? -similar? -completely different? Your feedback will be appreciated by this greenhorn. Mark

[flexcoders] Re: Button with tooltip but no overskin

2010-07-22 Thread turbo_vb
Probably no more elegant, but an alternative: package { import mx.controls.Button; import mx.core.mx_internal; use namespace mx_internal; public class DeadButton extends Button { public function DeadButton() { super(); mx_internal::overSkinName = upSkin; } } } -TH ---

Re: [flexcoders] FlexNativeMenu crash in the LayoutManager

2010-07-22 Thread Alex Harui
That’s a bug in Flex 3.x. It is fixed in Flex 4. Is a context menu being used in this scenario? You might try calling validateNow() before doing the rest of the work of the context menu option. On 7/22/10 11:44 AM, Christopher McArthur cmcart...@riotgames.com wrote: This is in Flex

RE: [flexcoders] FlexNativeMenu crash in the LayoutManager

2010-07-22 Thread Christopher McArthur
Actually a context menu isnt being used on this screen.. but it is on previous screens. I will try littering those with validateNows just in case.. maybe one of them is still alive for some reason or something... We are having some issues with the flex4 upgrade, so its delayed, doh. From:

Re: [flexcoders] Value Object --- Object Proxy --- huh???

2010-07-22 Thread Richard Rodseth
Hi Mark In the fairly large applications I've worked on, I've not had occasion to use Proxy, if you mean this: http://livedocs.adobe.com/flex/3/langref/flash/utils/Proxy.html Basically it lets you create an object that poses as something else, possibly supplementing it. For example, in the

Re: [flexcoders] Value Object --- Object Proxy --- huh???

2010-07-22 Thread Alex Harui
ObjectProxy is a generic VO. It is dynamic and can hold any properties and values. And it is slow. Best to create custom Vos that are strongly typed. On 7/22/10 2:52 PM, mark.embrey mark.c.emb...@gmail.com wrote: I'm trying to wrap my feeble brain around these concepts. Are they the

[flexcoders] Changing color of the PopUpButton

2010-07-22 Thread Alexander Farber
Hello, I have a working code for displaying red and black entries in the list of a PopUpButton (depending on the card suit). However I'm missing the minor last touch: when the user selects a red entry in the list and I assign its value to the PopUpButton's label, I don't know how to change

[flexcoders] Re: Web Services and ObjectProxy question for the Flex Gurus

2010-07-22 Thread flexcodemonkey
Thank you Mike!!! This was EXACTLY what I was looking for. Once I have Flex generate all of my VOs, I've added the following code to the sub-class's constructor which does the trick for all of my web services without me modifying the generated code. public function MyClass() { super();