Are you running your flash app in a browser? The flash runtime on the browser doesn't support UDP.
Also make sure that you have called initUDP method after connecting successfully to the server. If you call it before connecting - it has no effect. Verify that you are getting onInitUDPDone with a successful result code. Once that is done - it should be OK to send messages over UDP.