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

DHTML popup menu and Flash content Z-index issues

We had a problem with a DHTML popup menu being rendered behind any flash content. To fix the problem you need to use some Flash object tag settings and some div z-index configurations. [html] codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0″ width=”748″...

Read More

Intel 670 3.8Ghz running at 4.2Ghz

I finally broke down and bought an expensive Intel 670 3.8Ghz CPU. In the past I have successfully overclocked cheaper CPU’s to their more expensive counterparts. Last year I overclocked a Intel 2.4Ghz to 3.2Ghz (I posted this CPU at 3.6Ghz ). Between the 670 and the 2.4Ghz I bought a Intel 630 3Ghz L2 2Mb HyperThreading (HT) CPU where I became found of the higher L2 cache and HT. I have bought the latest motherboard, RAM, Hard Drive,...

Read More

Loading a SWF in Flex and with a FlashVar alternative

This blog is about, how to take a SWF that requires the use of FlashVars and integrate it into Flex through a Loader. Download code example here Old method: [html][/html] To load SWF’s in Flash MX or Flex you can use the mx.controls.Loader class. In Flex there is a tag. You would simply use the code below in a Flex mxml file: <?xml version="1.0" encoding="utf-8"?> <mx:Application...

Read More