RE: [flexcoders] OT: 2D array from Remoting
Scott, Are you using Flex or Flash. You say Flash with remoting, but I have seen people refer to Flex the same way (Generalizing) J Just want to make sure I understand the question properly Dustin Mercer From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Scott Langeberg Sent: Wednesday, November 23, 2005 1:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] OT: 2D array from Remoting Sorry for the OT, but I haven't found anyone with the same problem and I'm losing hope. I'm trying to return a 2D array from Coldfusion to Flash, via Remoting. However, I am getting the following error: > Could not convert a value of type class [[I to an Array The component works fine, as I called it from another CFM. Thanks, Scott -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. 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] OT: 2D array from Remoting
That is what I was afraid of. I haven’t used Flash / Remoting, but I have done a ton with Flex (Not sure how much different the two are though). In flex we have a class called mx.utils.ArrayUtil. I am not sure if Flash has this same tool, but when we get arrays back from Java (remoting), we have to use the ArrayUtil.toArray(result) to get the compiler to play nice. Maybe the same will apply here? If not, hopefully this will give you a start J. Dustin Mercer From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Scott Langeberg Sent: Wednesday, November 23, 2005 2:28 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] OT: 2D array from Remoting Yeah, Flash accessing the built-in remoting in Coldfusion MX 7. Scott On 11/23/05, Dustin Mercer <[EMAIL PROTECTED]> wrote: Scott, Are you using Flex or Flash. You say Flash with remoting, but I have seen people refer to Flex the same way (Generalizing) J Just want to make sure I understand the question properly Dustin Mercer From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Scott Langeberg Sent: Wednesday, November 23, 2005 1:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] OT: 2D array from Remoting Sorry for the OT, but I haven't found anyone with the same problem and I'm losing hope. I'm trying to return a 2D array from Coldfusion to Flash, via Remoting. However, I am getting the following error: > Could not convert a value of type class [[I to an Array The component works fine, as I called it from another CFM. Thanks, Scott -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. 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] OT: 2D array from Remoting
Scott, Hopefully there is some Flash / Coldfusion / Remoting veterans in here to help you J Hoping this isn’t a new issue, I will google some to see if there is anything out there, but there may also be someone in this group who has solved this issue before. I will see what I can do, but this is pretty far out of my expertise… Hope someone can help you in the mean time. Dustin Mercer From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Scott Langeberg Sent: Wednesday, November 23, 2005 3:39 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] OT: 2D array from Remoting Unfortunately, Flash doesn't appear to have that ArrayUtil class. Here is the code, where coldfusion is calling the java object. I can call the same component from a different page (CFM) and get proper array from java, but is causing errors with Remoting, for some reason! textShape = CreateObject("java", "com.imagetrend.text.TextShape"); textShape.init(arguments.layout , arguments.text, arguments.font); coordsArray = textShape.getCoordinateArray(); Scott On 11/23/05, Dustin Mercer <[EMAIL PROTECTED]> wrote: That is what I was afraid of. I haven't used Flash / Remoting, but I have done a ton with Flex (Not sure how much different the two are though). In flex we have a class called mx.utils.ArrayUtil. I am not sure if Flash has this same tool, but when we get arrays back from Java (remoting), we have to use the ArrayUtil.toArray(result) to get the compiler to play nice. Maybe the same will apply here? If not, hopefully this will give you a start J . Dustin Mercer From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Scott Langeberg Sent: Wednesday, November 23, 2005 2:28 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] OT: 2D array from Remoting Yeah, Flash accessing the built-in remoting in Coldfusion MX 7. Scott On 11/23/05, Dustin Mercer < [EMAIL PROTECTED]> wrote: Scott, Are you using Flex or Flash. You say Flash with remoting, but I have seen people refer to Flex the same way (Generalizing) J Just want to make sure I understand the question properly Dustin Mercer From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Scott Langeberg Sent: Wednesday, November 23, 2005 1:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] OT: 2D array from Remoting Sorry for the OT, but I haven't found anyone with the same problem and I'm losing hope. I'm trying to return a 2D array from Coldfusion to Flash, via Remoting. However, I am getting the following error: > Could not convert a value of type class [[I to an Array The component works fine, as I called it from another CFM. Thanks, Scott -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders " on the web. 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. 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] OT: 2D array from Remoting
BTW, does the code you supply work in the CF/JAVA realm? If so, can you post a snippet of the remoting code where you handle the CF result? Thanks Dustin Mercer From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Scott Langeberg Sent: Wednesday, November 23, 2005 3:39 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] OT: 2D array from Remoting Unfortunately, Flash doesn't appear to have that ArrayUtil class. Here is the code, where coldfusion is calling the java object. I can call the same component from a different page (CFM) and get proper array from java, but is causing errors with Remoting, for some reason! textShape = CreateObject("java", "com.imagetrend.text.TextShape"); textShape.init(arguments.layout , arguments.text, arguments.font); coordsArray = textShape.getCoordinateArray(); Scott On 11/23/05, Dustin Mercer <[EMAIL PROTECTED]> wrote: That is what I was afraid of. I haven't used Flash / Remoting, but I have done a ton with Flex (Not sure how much different the two are though). In flex we have a class called mx.utils.ArrayUtil. I am not sure if Flash has this same tool, but when we get arrays back from Java (remoting), we have to use the ArrayUtil.toArray(result) to get the compiler to play nice. Maybe the same will apply here? If not, hopefully this will give you a start J . Dustin Mercer From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Scott Langeberg Sent: Wednesday, November 23, 2005 2:28 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] OT: 2D array from Remoting Yeah, Flash accessing the built-in remoting in Coldfusion MX 7. Scott On 11/23/05, Dustin Mercer < [EMAIL PROTECTED]> wrote: Scott, Are you using Flex or Flash. You say Flash with remoting, but I have seen people refer to Flex the same way (Generalizing) J Just want to make sure I understand the question properly Dustin Mercer From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Scott Langeberg Sent: Wednesday, November 23, 2005 1:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] OT: 2D array from Remoting Sorry for the OT, but I haven't found anyone with the same problem and I'm losing hope. I'm trying to return a 2D array from Coldfusion to Flash, via Remoting. However, I am getting the following error: > Could not convert a value of type class [[I to an Array The component works fine, as I called it from another CFM. Thanks, Scott -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders " on the web. 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the we
RE: [flexcoders] my applicationViewHelper smells.
You could use commands to create the window, and a view helper on the window to close it :) Dustin Mercer -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of charged2885 Sent: Monday, December 05, 2005 2:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] my applicationViewHelper smells. I have several windows in my applicaiton: PreferencesWindow, LoginWindow, ConsoleWindow, etc... Since I can't seem to create these windows using their view helpers, I've been adding methods to my applicationViewHelper like: createLoginWIndow() destroyLoginWindow() showPreferencesWindow() hidePreferencesWindow() showConsoleWindow() hideConsoleWindow() I think this is starting to "smell" which tells me i might be doing something wrong. What is the cairngorm way of dealing with PopupWindows? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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/