As3 Error #2044 Unhandled Netstatusevent
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error #2044: Unhandled NetStatusEvent up vote 0 down vote favorite I'm not sure why i'm getting the following error. Can you please suggest what change in my code needed to successfully play the rtmp stream on my stage? error: NetConnection.Connect.Success Error #2044: Unhandled NetStatusEvent:. level=error, code=NetStream.Play.StreamNotFound at main/attachnetstream()[/Users/user/Desktop/ojotha/main.as:24] Debug session terminated. package { import flash.display.MovieClip; import flash.net.*; import flash.events.NetStatusEvent; import flash.media.Video; public class main extends MovieClip { public var streamserver:String="rtmp://216.245.200.114/live"; public var streamname:String="shomoy"; public var netconnection:NetConnection=new NetConnection(); public function main() { netconnection.connect(streamserver); netconnection.addEventListener(NetStatusEvent.NET_STATUS, attachnetstream); } public function attachnetstream(event:NetStatusEvent):void{ trace(event.info.code); switch (event.info.code) { case "NetConnection.Connect.Success": var netstream:NetStream=new NetStream(netconnection); var video:Video=new Video(); video.attachNetStream(netstream); netstream.play(streamname); video.height=480; video.width=640; addChild(video); break; case "NetStream.Play.StreamNotFound": trace("stream not found"); break; } } } } actionscript-3 flash shar
& Motion GraphicsBundleseBooksDesign & IllustrationCodeWeb DesignPhoto & VideoBusinessMusic & Audio3D & Motion GraphicsPricingEnvato MarketEnvato StudioCommunityHelpEnvato MarketEnvato StudioCommunityForumHelpFree 10-Day TrialSign InHow-To TutorialsDesign & IllustrationAdobe http://stackoverflow.com/questions/25558177/error-2044-unhandled-netstatusevent PhotoshopVectorAdobe IllustratorIllustrationTools & TipsInspirationGraphic DesignNewsIcon DesignDrawingMore Categories...Learning GuidesCodeWeb DevelopmentWordPressMobile DevelopmentPHPJavaScriptFlashCMSiOS SDKNewsAndroid SDKMore Categories...Learning GuidesWeb DesignCSSHTML & CSSHTMLAdobe PhotoshopUI DesignComplete WebsitesWorkflowDesign TheoryJavaScriptCMSMore Categories...Learning GuidesPhoto https://code.tutsplus.com/tutorials/quick-tip-how-to-debug-an-as3-error-2044--active-9675 & VideoShootingPost-ProcessingAdobe PhotoshopPhoto CritiqueHow-ToPhotographyLightingInspirationVideoAdobe LightroomMore Categories...Learning GuidesBusinessMarketingFreelancePlanningHow-ToCommunicationCareersBusinessSalesFinanceEntrepreneurshipMore Categories...Learning GuidesMusic & AudioAudio ProductionGeneralLogic ProWorkshopsMixing & MasteringSound DesignOpen MicAbleton LiveReasonRecordingMore Categories...Learning Guides3D & Motion GraphicsAdobe After Effects3DMotion Graphics3D Studio MaxMayaCinema 4DWorkflowNewsVisual EffectsRoundupsMore Categories...Learning GuidesGame DevelopmentGame DesignImplementationPlatform AgnosticBusinessProgrammingFlashFrom ScratchNewsHTML5UnityMore Categories...Learning GuidesComputer SkillsOS XApp TrainingProductivityTips & ShortcutsElectronicsAutomationSecurityOfficeHow-ToHardwareMore Categories...Learning GuidesCoursesDesign & IllustrationCodeWeb DesignPhoto & VideoBusinessMusic & Audio3D & Motion GraphicsBundlesComing SooneBooksDesign & IllustrationCodeWeb DesignPhoto & VideoBusinessMusic & Audio3D & Motion GraphicsPricingAdvertisementCodeActionScriptQuick Tip: H
test application and came across a strange problem. I was developing http://rjdesignz.com/blog-entries/error-2044-unhandled-netstatusevent-levelerror-codenetconnection-call-badversion/ an application in Flash CS4 with AS3 and running a script on my WAMP server. on calling a PHP service, from http://www.justskins.com/forums/mp3-streaming-using-as3-127645.html my Flash Application, I kept on getting this error: [as3]Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Call.BadVersion at Main()[/as3] But the strange thing here as3 error was that the application was giving this error when running within the Flash IDE. When the application was run after publishing, it was working perfectly fine. Through some research on the internet and on posting my problem on few forums, someone pointed out to as3 error #2044 me to check the server side log files. On checking the apache log files I found the following error: [php]PHP Fatal error: Uncaught exception ‘VerboseException' with message ‘Standalone Flash player disabled. Update gateway.php to allow these connections' in C:\\wamp\\www\\amfphp\\core\\amf\\app\\Gateway.php:357\nStack trace:\n#0 [internal function]: amfErrorHandler(256, ‘Standalone Flas…', ‘C:\\wamp\\www\\amf…', 357, Array)\n#1 C:\\wamp\\www\\amfphp\\core\\amf\\app\\Gateway.php(357): trigger_error(‘Standalone Flas…', 256)\n#2 C:\\wamp\\www\\amfphp\\gateway.php(137): Gateway->disableStandalonePlayer()\n#3 {main}\n thrown in C:\\wamp\\www\\amfphp\\core\\amf\\app\\Gateway.php on line 357[/php] Following the error log, I found that the problem was due to a security check added in the gateway.php file: [php]Disable profiling, remote tracing, and service browser $gateway->disableDebug(); // Keep the Flash/Flex IDE player from connecting to the gateway. Used for security to stop remote connections. $gateway->disableStandalonePlayer(); [/php] So on commenting out this piece of code, I was able to get the application running from within the F
i want to stream mp3 file located at FMS. The problem is how to do this in AS3 as i m using flash cs3. i done bit but i m getting the error; Mine code is as follow: import flash.net.*; var conn = new NetConnection(); conn.connect("rtmp://192.168.0.106/wss"); var myStream = new NetStream(conn); myStream.play("mp3:rec"); The Error is: ArgumentError: Error #2126: NetConnection object must be connected. at flash.net::NetStream/flash.net:NetStream::construct() at flash.net::NetStream$iinit() at temp_fla::MainTimeline/temp_fla::frame1() Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Connect.Failed at temp_fla::MainTimeline/temp_fla::frame1() Text Text... Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode October 10th,08:30 AM #1 MP3 streaming using AS3 hi i want to stream mp3 file located at FMS. The problem is how to do this in AS3 as i m using flash cs3. i done bit but i m getting the error; Mine code is as follow: import flash.net.*; var conn = new NetConnection(); conn.connect("rtmp://192.168.0.106/wss"); var myStream = new NetStream(conn); myStream.play("mp3:rec"); The Error is: ArgumentError: Error #2126: NetConnection object must be connected. at flash.net::NetStream/flash.net:NetStream::construct() at flash.net::NetStream$iinit() at temp_fla::MainTimeline/temp_fla::frame1() Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Connect.Failed at temp_fla::MainTimeline/temp_fla::frame1() TextText shrimusic Guest December 7th,06:59 AM #2 Re: MP3 streaming using AS3 On Oct 10, 12:30 am, "shrimusic"