Monthly Archives: December 2005

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 [...]

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 [...]

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>
        <![CDATA[
            import mx.core.UIObject;
            public var pageItem : Object;
           
            function [...]

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".

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.

<cfscript>
  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 = ws.echo("Through the tunnel");
</cfscript>

DHTML popup menu and Flash content Z-index issues

We had a problem with a DHTML popup menu being rendered behind any flash content.
Code that is needed:

<div id="swfContainer" style="z-index:0;">
<param name="wmode" value="transparent">
<embed src="main.swf" wmode="transparent"...