Re: [flexcoders] Configuring RemoteObject destinations (Flex 2)
For our production environment, our SWFs are served from the same machine that our ColdFusion server resides on, so using {server.name} or {context.root} works fine when configuring destinations. During development, I compile and test SWFs locally. I don't run ColdFusion locally--we have a separate development server. So in this case, using { server.name} or {context.root} doesn't work. I have to change the flex-services.xml file and put in the development server's IP address. It's just awkward to have to manually do this. What I miss is the convenience of build profiles as seen in some other IDEs. I can have one for development and one for production, each having different compiler options (eg. so I can specify different flex-services.xml files). At least that's one way to do it. Can I do something like this with the current Flex Builder? I haven't found a way.On 3/15/06, Peter Farland [EMAIL PROTECTED] wrote: Additionally, you could configure several channels for a destination and rely on channel failover so that it will look for one then the other... From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Jason Y. KwongSent: Wednesday, March 15, 2006 7:41 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Configuring RemoteObject destinations (Flex 2) This came up cause I was configuring my Flex 2 app to communicate with ColdFusion, but I suppose it applies to RemoteObject in general. In order to tell your app the location of a web service destination, we're told to add something like this to the compiler command line: --services=C:\CFusionMX7\wwwroot\WEB-INF\flex\flex-enterprise-services.xml Now, my first question is, since the file flex-enterprise-services.xml resides on the server (be it ColdFusion or FES) and you typically don't do your client development on the same machine as the production server, how would this work in the general case? Anyway, so then I decided to copy the file to my development machine and then manually changed localhost to the server's IP address in the channel configuration. I compiled my app and it worked fine. But now it appears that the server's address is compiled directly into the swf. Are we unable to dynamically assign server addresses at runtime? -- 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] Configuring RemoteObject destinations (Flex 2)
No, FB doesnt have build profiles in this release, sorry. I think we were expecting folks with this kind of situation to have bigger build systems that would run the compiler via Ant scripts or something similar. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jason Y. Kwong Sent: Monday, April 03, 2006 8:37 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Configuring RemoteObject destinations (Flex 2) For our production environment, our SWFs are served from the same machine that our ColdFusion server resides on, so using {server.name} or {context.root} works fine when configuring destinations. During development, I compile and test SWFs locally. I don't run ColdFusion locally--we have a separate development server. So in this case, using { server.name} or {context.root} doesn't work. I have to change the flex-services.xml file and put in the development server's IP address. It's just awkward to have to manually do this. What I miss is the convenience of build profiles as seen in some other IDEs. I can have one for development and one for production, each having different compiler options (eg. so I can specify different flex-services.xml files). At least that's one way to do it. Can I do something like this with the current Flex Builder? I haven't found a way. On 3/15/06, Peter Farland [EMAIL PROTECTED] wrote: Additionally, you could configure several channels for a destination and rely on channel failover so that it will look for one then the other... From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Jason Y. Kwong Sent: Wednesday, March 15, 2006 7:41 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Configuring RemoteObject destinations (Flex 2) This came up cause I was configuring my Flex 2 app to communicate with ColdFusion, but I suppose it applies to RemoteObject in general. In order to tell your app the location of a web service destination, we're told to add something like this to the compiler command line: --services=C:\CFusionMX7\wwwroot\WEB-INF\flex\flex-enterprise-services.xml Now, my first question is, since the file flex-enterprise-services.xml resides on the server (be it ColdFusion or FES) and you typically don't do your client development on the same machine as the production server, how would this work in the general case? Anyway, so then I decided to copy the file to my development machine and then manually changed localhost to the server's IP address in the channel configuration. I compiled my app and it worked fine. But now it appears that the server's address is compiled directly into the swf. Are we unable to dynamically assign server addresses at runtime? -- 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] Configuring RemoteObject destinations (Flex 2)
This came up cause I was configuring my Flex 2 app to communicate with ColdFusion, but I suppose it applies to RemoteObject in general. In order to tell your app the location of a web service destination, we're told to add something like this to the compiler command line: --services=C:\CFusionMX7\wwwroot\WEB-INF\flex\flex-enterprise-services.xml Now, my first question is, since the file flex-enterprise-services.xml resides on the server (be it ColdFusion or FES) and you typically don't do your client development on the same machine as the production server, how would this work in the general case? Anyway, so then I decided to copy the file to my development machine and then manually changed localhost to the server's IP address in the channel configuration. I compiled my app and it worked fine. But now it appears that the server's address is compiled directly into the swf. Are we unable to dynamically assign server addresses at runtime? -- 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] Configuring RemoteObject destinations (Flex 2)
If you use {server.name} in place of the IP address or host server name then it will be replaced at runtime with that used to load the SWF. Note that if you load a SWF from the file system using the standalone player then it will be interpreted as localhost. As for the port token, {server.port}, in the case of a file system loaded swf, it defaults to port 80. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason Y. KwongSent: Wednesday, March 15, 2006 7:41 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Configuring RemoteObject destinations (Flex 2) This came up cause I was configuring my Flex 2 app to communicate with ColdFusion, but I suppose it applies to RemoteObject in general. In order to tell your app the location of a web service destination, we're told to add something like this to the compiler command line: --services=C:\CFusionMX7\wwwroot\WEB-INF\flex\flex-enterprise-services.xml Now, my first question is, since the file flex-enterprise-services.xml resides on the server (be it ColdFusion or FES) and you typically don't do your client development on the same machine as the production server, how would this work in the general case? Anyway, so then I decided to copy the file to my development machine and then manually changed "localhost" to the server's IP address in the channel configuration. I compiled my app and it worked fine. But now it appears that the server's address is compiled directly into the swf. Are we unable to dynamically assign server addresses at runtime? -- 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] Configuring RemoteObject destinations (Flex 2)
Additionally, you could configure several channels for a destination and rely on channel failover so that it will look for one then the other... From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason Y. KwongSent: Wednesday, March 15, 2006 7:41 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Configuring RemoteObject destinations (Flex 2) This came up cause I was configuring my Flex 2 app to communicate with ColdFusion, but I suppose it applies to RemoteObject in general. In order to tell your app the location of a web service destination, we're told to add something like this to the compiler command line: --services=C:\CFusionMX7\wwwroot\WEB-INF\flex\flex-enterprise-services.xml Now, my first question is, since the file flex-enterprise-services.xml resides on the server (be it ColdFusion or FES) and you typically don't do your client development on the same machine as the production server, how would this work in the general case? Anyway, so then I decided to copy the file to my development machine and then manually changed "localhost" to the server's IP address in the channel configuration. I compiled my app and it worked fine. But now it appears that the server's address is compiled directly into the swf. Are we unable to dynamically assign server addresses at runtime? -- 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.