Can you please cross check the following :
1. The rtmp URL is edited accordingly to point to the correct FMS server instead of localhost etc.
2. The above code snippet should be bundled as an AIR app and published for iOS.
If you are using HTTP instead of RTMP, you need to follow HLS streaming for iOS which makes use of the HTML5 video tags instead of any flash/AIR based applications. Please let us know if you are looking for this.
Thank you !