-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
I do not know if this makes a difference or not, but here is what I
have for my mx:RemoteObject line:

<mx:RemoteObject id="K12EventRegistrationNewsWS"
source="properties.cfc.K12EventRegistration" destination="Coldfusion"
showBusyCursor="true" fault="K12EventRegistrationNewsWS_Fault(event)"
endpoint="http://{ServerName}/flex2gateway/";>

Then within my mx:Script block I have
[Bindable] private var ServerName:String;

private function initApp():void {
  if
(URLUtil.getServerName(Application.application.loaderInfo.url).length
== 0) {
    ServerName = "www.k12eventregistration.ws";
  } else if
(URLUtil.getServerName(Application.application.loaderInfo.url) == "D") {
    ServerName = "devel.k12eventregistration.ws";
  } else {
    ServerName = Application.application.parameters.ServerName;
}


This is so that I can publish the Flex Application on my development
server, Testing Server and Live Server without changing anything
within the code. I do run a modified version of the Wrapper.html file
which has a flashvar parameter on these servers which sets the correct
value of the ServerName variable.



>    <mx:RemoteObject
>       id="myService"
>       destination="ColdFusion"
>       source="phils.helloWorld.HelloWorld"
>       showBusyCursor="true">
> <mx:method name="sayHelloString" result="handleStringResult(event)"
> fault="Alert.show(event.fault.message)"/>
>    </mx:RemoteObject>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (MingW32)
Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iQEVAwUBRxfMKHnjLHMPlkANAQLaeAf+LBcAFL90/lvpKYhJYNwICFPBr812o8AX
o1Q3qrtqirgQ5Hk7jNVZ0zn6GLbQ1p9RUHbDLEQKR7al+x67pbqp0vbJpsRJ0YUD
6259QvpOhJm77zmu6GsSoFEAzcTlZTdV6Z1WEvYYv+EEDZefj1Edb8x7XR+pwNHS
JmAmu/8NFEHb4mU2zSxziS1KctX+VIxO1JX7nkcqFL/3Epsd4aSvlMFi0viNrs7/
9KJpScdS1MuoJIhsVISdH9GYcVCuJ1V51wN57oXvRpw5NiRC3TtTWJVmvoM+0+ra
LZU3CA/dpl+v/QxsxyQHXyx3jHCyYm+Xogc65/5a4J/D42DYKVldxA==
=qX6o
-----END PGP SIGNATURE-----


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:4717
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to