AMF Remoting Discussion Summary

This is a summary of some discussions on the flexcoders yahoo group. As for a summary, Peter breaks it down pretty well. We have actually confused to issues together: 1.) “AMF protocol versions” 2.) “Flex 1.5 styled RemoteObject in Flex 2″ Details on the 2 issues: All AMF protocol versions should work as Flash Players progress. This is what has happened in the past and has been stated what will happen in the future. So...

Read More

Flex 1.5 Create/Destory component with same filename but different directory

Three files in this example, CreateDestroyIssue.mxml, test/MainPage.mxml, and test1/MainPage.mxml. The issue is that test/MainPage.mxml is a VBox and test1/MainPage.mxml is a Panel. When test1/MainPage.mxml is created some of the styles are not correct, for example the round edges of the panel header. This only happens on files with the same name, even though they are in different directories. Example code: CreateDestroyIssue.mxml <?xml...

Read More

Flex Example: createChild and destroyChild

Create three files called CreateDestroyChild.mxml, VBoxPage.mxml and PanelPage.mxml. CreateDestroyChild.mxml: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*"     width="100%" height="100%" initialize="createUI( 'pageVBox' )">         <mx:Script>      ...

Read More

Flex 2 and AMFPHP

When I connect Flex 2 and AMFPHP using the code below I get a “ReferenceError: Error #1069: Property AppendToGatewayUrl not found on flash.net.NetConnection and there is no default value”. AS3 code: var gatewayUrl : String = "http://localhost/amfphp/gateway.php"; gateway_conn = new NetConnection(); gateway_conn.objectEncoding = flash.net.ObjectEncoding.AMF0; gateway_conn.connect( gatewayUrl...

Read More

Dynamically change endpoint URL of a Webservice

Changing the Endpoint URL of a webservice in ColdFusionMX 7 was not as easy as it seemed. I received this bit of information from some ColdFusion guru’s. [javascript]ws = CreateObject(“webservice”, “http://localhost:8500/service.cfc?WSDL”); // Use a different endpoint for the stub. ws._setProperty(“javax.xml.rpc.service.endpoint.address”, “http://localhost:8501/service.cfc”); ret =...

Read More