# Keep Getting these Compiler Errors

**URL:** <https://forum.kirupa.com/t/keep-getting-these-compiler-errors/331671>\
**Category:** flash\
**Created:** [September 24, 2013, 1:10am UTC](https://forum.kirupa.com/t/keep-getting-these-compiler-errors/331671 "2013-09-24T01:10:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![quest20](https://avatars.discourse-cdn.com/v4/letter/q/a87d85/32.png) [@quest20](https://forum.kirupa.com/u/quest20)\
**Post date:** [September 24, 2013, 1:10am UTC](https://forum.kirupa.com/t/keep-getting-these-compiler-errors/331671/1 "2013-09-24T01:10:19Z")

</div>

I am using Flash Professional authoring tool with ActionScript 3 code. Basically, I’m trying to capture a live webcam feed using NetConnection, NetStream Camera and Video classes via Flash Media Development Server. When I run the code I receive this in my output:  
ArgumentError: Error #2126: NetConnection object must be connected. at [flash.net](http://flash.net)::NetStream/ctor() at [flash.net](http://flash.net)::NetStream()  
I don’t really understand what could be causing this error my code is perfectly fine…Its very frustrating. When I debug I get this:  
SecurityError: Error #2028: Local-with-filesystem SWF file file:///C|/Users/Name/AppData/Local/Temp/Untitled%2D1.swf cannot access Internet URL rtmfp://localhost/flashExam. [SWF] C:\Users\Name\AppData\Local\Temp\Untitled-1.swf - 3853 bytes after decompression  
It appears the swf file cannot gain access FMS. Why is this? And, does anyone know what I can do to resolve these issues? Thank You Very Much
