You might be missing the -services option to your compiler when you compile the mxml file by hand. This is done automatically by the web tier compiler.
I'd also recommend turning on the <mx:TraceTarget/> to get more diagnostics about why the connection is failing. It probably just does not have the destination info compiled in... you can see what is getting compiled in via the mx.messaging.config.ServerConfig.xml property. Jeff ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of jfujita1 Sent: Thursday, September 06, 2007 1:26 PM To: [email protected] Subject: [flexcoders] RTMP works with .mxml but not swf? I'm deploying my app to the web server and I have a major problem Say I have a messaging destination called "fleet_demo" set up and broadcasting messages. Say my app is the following: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " layout="absolute" creationComplete="init()"> <mx:Consumer id="consumer" message="rtmpHandler(event.message)"/> <mx:Script> <![CDATA[ import mx.messaging.messages.IMessage; import mx.controls.Alert; private function init():void { consumer.destination = "fleet_demo"; consumer.subscribe(); } private function rtmpHandler(message:IMessage):void { Alert.show("Recieved RTMP message", "ALERT"); } ]]> </mx:Script> </mx:Application> If I deploy this to my webserver as an MXML file, it takes a bit of time to compile when loaded, but the alert windows pop up as it receives the RTMP messages. If I deploy this to my webserver as the compiled SWF file, no RTMP messages are recieved. There is no error message at all, its just as though no RTMP messages are getting received. Why is this? My real flex app is too large to compile at run-time so I need to know why apps deployed as SWF files have this problem receiving RTMP messages. Thanks

