SecurityError: error #2028

Hi,
Really new to flash. I made a small movie ad that is going to online pubs. It's got a link to an offsite URL. On my server it gets security message #2028, on my desktop, not. Will this be a problem or will the pub get the information from the HTML?
Thanks

you mean you get that error when testing locally and not when your swf is on a server, correct?

Similar Messages

  • SecurityError: Error #2048 when using special characters in request url

    Hi all,
    I'm facing a really strange problem with requesting address data from a in-house developed address webservice that can be accessed using a HTTPS connection.
    The problem is that I get the following error when a request has been made with special characters in the url:
    SecurityError: Error #2048: Security sandbox violation: http://www.foo.com/myapp.swf cannot load data from
    https://www.bar.com/myservice.svc/Aleja Legionów ul., BYTOM.
    The url is encoded using encodeURIComponent. Fiddler show's a correctly encoded url:
    https://www.bar.com/myservice.svc/address/Aleja%20Legion%C3%B3w%20ul.%2C%20BYTOM
    The server send a normal response back.
    The weird thing is that this only happens on FireFox with special characters in the url. With normal characters, it works fine.
    On IE everything works fine..
    crossdomain.xml of the www.foo.com:
    <cross-domain-policy>
    <site-control permitted-cross-domain-policies="all"/>
    <allow-http-request-headers-from domain="*" headers="*" secure="false"/>
    <allow-access-from domain="*" headers="*" secure="false"/>
    </cross-domain-policy>
    Any help is appreciated.
    Best regards,
    Sjoerd Brandsma

    You could try downloading the Oracle 8.1.7 client and the latest
    Oracle8 ODBC driver, install them on your machine, and verify
    that the failure goes away. That's obviously the acid test.
    I can tell you that when I worked in the ODBC driver group we
    did identify and fix some bugs where our parser wasn't skipping
    string literals. If this particular bug wasn't fixed earlier,
    it almost certainly was then (I'm guessing that work was done 12-
    18 months ago).
    Justin

  • Really urgent! SecurityError: Error #3226,Plz help!

    i need to import a swf file into my project,the swf file was created by a quick gallery application for mac ( bannerzest pro)
    the swf works fine until i exchange the project into AIR project, I get a
    SecurityError: Error #3226: Cannot import a SWF file when LoaderContext.allowCodeImport is false.
    at flash.display::Loader/_loadBytes()
    at flash.display::Loader/loadBytes()
    at EmbedFlash()
    at MyFactory/init()
    at MyFactory/onEnterFrame()
    no idea for this, anyone can help me or any idea to avoid the error?

    my codes,
    <fx:Script>
    <![CDATA[
    import mx.core.UIComponent;
    import mx.events.FlexEvent;
    public function creationComplete(event:FlexEvent):void
    //Security.loadPolicyFile("assets/images/crossdomain.xml");
    var loader:Loader = new Loader();
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderComplete);
    loader.load(new URLRequest("assets/images/YinkunB.swf"));
    private function loaderComplete(event:Event):void
    var loaderinfo:LoaderInfo = event.target as LoaderInfo;
    var loader:Loader = new Loader();
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadComplete);
    var loaderContext:LoaderContext = new LoaderContext();
    loaderContext.allowCodeImport = true;
    loader.loadBytes(loaderinfo.bytes, loaderContext);
    private function onLoadComplete(event:Event):void
    var displayObject:DisplayObject =  event.target as DisplayObject;
    var ui:UIComponent = new UIComponent();
    ui.addChild(displayObject);
    this.addElement(ui);

  • SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: cannot access

    When we try to print the Google Map API for Flash component, it is throwing the Security Sandbox Violation
          SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: http://ps6143:8080/aa/XYZ/Main.swf/[[DYNAMIC]]/1 cannot access  http://mt1.google.com/vt/lyrs=m@171000000&hl=en&src=api&x=1&y=1&z=1&s=Gali&flc=x3t. No policy files granted access.
    at flash.display::BitmapData/draw()
    To avoid this error we tried to use the alternate API provided by library. But that also causing cross domain issue as it loading some 3d library internally which is not able to access our application.
    SecurityError: Error #2121: Security sandbox violation: BitmapData.draw: http://maps.googleapis.com/mapfiles/lib/map_1_20_10_3d.swf cannot access http://ps6143.persistent.co.in:8080/dv/SiteOptimizer/SiteOptimizer.swf/%5b%5bDYNAMIC%5d%5d /1http://ps6143:8080/aa/XYZ/Main.swf/[[DYNAMIC]]/1. This may be worked around by calling Security.allowDomain.
    at flash.display::BitmapData/draw()
    Please help us in resolving this issue.
    Thanks & Regrds,
    Ravi Darji

    There is no redirect... Charles is a web proxy so it will look completely legitimate to the browser.
    According to the help, it's getting the access request from the SWF itself and not the crossdomain.xml file:
    In the case of a source object other than a loaded bitmap, the source object and (in the case of a Sprite or MovieClip object) all of its child objects must come from the same domain as the object calling the draw() method, or they must be in a SWF file that is accessible to the caller by having called the Security.allowDomain()method.
    http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9 b90204-7d1b.html#WS5b3ccc516d4fbf351e63e3d118a9b90204-7c4a
    So the default state accessing a SWF on a different domain is protected, unless that SWF allows some or all domains to access it via the Security.allowDomain() method.

  • SecurityError: Error #2148: issue

    I am getting a SecurityError: Error #2148: when I try to run
    an application where I created a component from Flash CS3 which
    communicates with a Flash Media Server to play an FLV file. The
    full message is as follows:
    SecurityError: Error #2148: SWF file
    http://localhost:8084/flex/nmDeploy/nmSite/nmSite.swf
    cannot access local resource C:\Program Files\Macromedia\Flash
    Media Server
    2\applications\videoApp\streams\_definst_\dChild-JaRuleJloAkeys-WhatsGoingOn.flv.
    Only local-with-filesystem and trusted local SWF files may access
    local resources.
    at flash.net::NetStream/play()
    at fl.video::VideoPlayer/
    http://www.adobe.com/2007/flash/flvplayback/internal::_play()
    at fl.video::VideoPlayer/
    http://www.adobe.com/2007/flash/flvplayback/internal::_setUpStream()
    at fl.video::VideoPlayer/
    http://www.adobe.com/2007/flash/flvplayback/internal::_load()
    at fl.video::VideoPlayer/load()
    at fl.video::FLVPlayback/::doContentPathConnect()
    I went onLine and found a recommendation to add the following
    information to the "Additional compiler arguments:"
    -use-network=false
    Even with this statment included I still receive the error
    message. Any recommendation on how to resolve this issue would be
    greatly appreciated.
    Thanks in advance,
    Bob

    Thanks to Jeremy. I found a post on solution at
    http://groups.google.com/group/riadev/browse_thread/thread/85cc05c49c5ec50a/9a50ac7d94defe e8
    This is probably because all flex swfs are using
    local-with-network as the
    default sandbox, hence it won't have access to the local
    files (including
    images), one suggested solution is to add extra compiler
    argument:
    1. Right click on project > properties > flex compiler
    2. add this "-use-network=false" to "additional compiler
    arguments" field
    3. then recompile the swf
    See if this solve the security problem.
    Jeremy.

  • SecurityError: Error #2148

    Hi all. I have problem.
    I have two application(Adobe Air and usual flex application
    in browser).I use LocalConnction for communication.
    Air application consist video files and return for flex
    application array(label:file Name,data:Sourse).
    Flex application in browser show this video files.
    If i run both application in flex builder all works ok.When I
    copy my flex application in other place on my pc and run it, i
    reseved error :
    SecurityError: Error #2148: SWF file
    http://localhost/AirTest/PlayerInBrowser.swf
    cannot access local resource
    D:\Projects\flex\X_ClientForBrowser\bin-debug\Files\X.flv. Only
    local-with-filesystem and trusted local SWF files may access local
    resources.
    Plase help me.

    Hi,
    A couple of things to look at.
    Take a look at the documentation about Flash security
    1)
    http://livedocs.adobe.com/flash/9.0/main/00000347.html
    (particularly security sandboxes and local content)
    2)
    http://www.adobe.com/devnet/flash/articles/fplayer8_security.html
    (more in depth about the rules around interacting with local
    content)
    Specifically, look at LocalConnection.allowDomain
    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/LocalConnection.html#a llowDomain()
    I hope these things help!
    -Erica

  • This bug has been around for over a year: SecurityError: Error #2123: Security sandbox violation

    Hi,
    The bug of 'SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: file:///xxx/xxx.swf cannot access rtmfp://fms4.acrobat.com/cocomo/na2-sdk-xxx/xxx. No policy files granted access.' was first reported in lccs forum over a year ago:
    http://forums.adobe.com/message/2803074
    But the bug is still around. The bug can be generated by calling BitmapData.draw() on a flash.media.Video object which is attached to a p2p stream. It looks like the solution is to have the publisher to call:
    send("|RtmpSampleAccess", true, true)
    on the NetStream object _before_ the subscriber calls NetStream.play(), in order to give the permission to subscribers for audio and video streams.
    In lccs library, the above permission authorisation happens in WebcamPublisher:
    protected function onNetStatus(p_evt:NetStatusEvent):void
    if (p_evt.info.code=="NetStream.Connect.Success") {
    setTimeout(sendSnapShotPermission, 500);
    _stream.send("|RtmpSampleAccess", true, true);
    protected function sendSnapShotPermission():void
    _stream.send("|RtmpSampleAccess", true, true);
    but it doesn't help the problem. In fact, it is not clear to me when this 'snap shot permission' is sent to the subscriber.
    One more note: This is not a critisism for the lccs development quality, but rather a question on how ready lccs is for production use. After encountering this bug, I had to go through the lccs code (the open source parts), and found out that the library is not really written, well, carefully, and it is full of temporary quick-n-dirty fixes.
    For instance in the above example, sendSnapShotPermission() is called after 500 milliseconds, probably to allow something to happen before calling the method, but how can you be sure that it will happen in 500 milliseconds? Probably,an event listener should have been used. Immediately in the next line, we see:
    _stream.send("|RtmpSampleAccess", true, true);
    which is a duplicate of sendSnapShotPermission(). many examples like this can be found throughout the library.
    Aureliano

    Hi Nigel,
    Two questions:
    1. When the publisher sends the access permission to the subcriber by:
    netStream.send("|RtmpSampleAccess", true, true)
    , on the subscriber side, what event or function can handle the guaranteed receipt of the access permission? Currently it is possible to draw the incoming stream video upon receiving NetStream.Play.Star and waiting for 5 seconds or so:
    public class MyWebcamSubscriber extends WebcamSubscriber {
    override protected function layoutCameraStreams():void
    // trying the event listener seems to work here.
    _streamManager.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
    override protected function onNetStatus(e:NetStatusEvent):void
    super.onNetStatus(e);
    case "NetStream.Play.Start":
    setTimeout(function():void {
    // draw the video from the incoming stream here.
    }, 5000);
    The questions is, which event can let the subscriber know that it has the access permission to the video stream?
    2. In WebcamPublisher, why is that the access permission is sent 3 times?
    a. Once on receiving NetStream.Connect.Success with 0.5 second delay, as in below.
    b. Once immediately upon receiving NetStream.Connect.Success, as in below.
    protected function onNetStatus(p_evt:NetStatusEvent):void
    if (p_evt.info.code=="NetStream.Connect.Success") {
    setTimeout(sendSnapShotPermission, 500);
    _stream.send("|RtmpSampleAccess", true, true);
    protected function sendSnapShotPermission():void
    _stream.send("|RtmpSampleAccess", true, true);
    c. Once in onConnectionTypeChange() with 2 seconds delay:
    protected function onConnectionTypeChange(p_evt:StreamEvent):void
    if ( _streamManager.isP2P) {
    _stream= new NetStream(_connectSession.sessionInternals.session_internal::connection as NetConnection,NetStream.DIRECT_CONNECTIONS);
    setTimeout(sendSnapShotPermission, 2000);

  • Error -2028

    Good Day
    Experts:
    I have run into an error that I am unable to find information on.  It is number -2028 "Associated statement is not prepared".  This results when I try add a query programatically using this code:
    Dim sboUserQuery As SAPbobsCOM.UserQueries
    sboUserQuery = g_B1Connection.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserQueries)
    With sboUserQuery
            .QueryCategory = CatId
            .QueryDescription = sQueryName(loopCnt)
            .Query = sQueryDesc(loopCnt)
    End With
    retVal = sboUserQuery.Add()
    Do you have any insight on this problem?
    Thanks for helping,
    EJD

    Hi Ed,
    SQL Profiler is a very useful tool to know how to use. It may help in this case, certainly to try and isolate where the error is occurring. To me the error message suggested that the SQL command(s) that the DI API is sending are incorrect. The reason I asked about whether it happens on all adds or not was because there might have been a special character in your input parameters which causes a syntax error for SQL. Now that you mention that it always worked before patch 43, I'm inclined to think its a patch bug in the DI API.
    Of course, I could be wrong about the cause of the problem (...wouldn't be the first time ) but using SQL Profiler would show firstly whether the DI API actually sends commands to SQL relating to the query tables (ie you should see insert statements that add your query). If no commands get sent then the error is happening within the DI API before this point. If you can see commands then you can see if the syntax looks ok.
    SQL Profiler is easy to set up and run if you are on a test system where no other users are entering data. On a live system, it can still be used but it's more of a pain to set up as you have to first filter out all other SQL traffic, otherwise you'll be looking for that proverbial needle.
    Kind Regards,
    Owen

  • Error 2028 customer not found , SBO 2007

    I get error an error sometimes when creating sales order through the SDK
    Error Detail:
    2028 customer not found
    However the customer does exist and lot of sales order were created of the same customer
    Any hint
    Sincerely yours
    Riade Asleh

    Hi Riade,
    Just check for spelling mistakes and if all the other data is in place.
    Regards,
    Vasu Natari.

  • Error -2028 Update No matching records found (ODBC -2028)

    An apology for my English, I'm trying to update a field but I get this error:
    No matching records found (ODBC -2028)
    This is part of the code that I use to add new ones and works fine, when I change the oItems.Add (); by oItems.Update () does not work.
    public static void addItem(DataRow itemObject)
       oItems = (SAPbobsCOM.Items)(oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems));
       oItems.ItemCode = itemObject["ItemCode"].ToString();
       oItems.ItemName = itemObject["ItemName"].ToString();
       lRetCode = oItems.Add();
       if (lRetCode != 0)
          oCompany.GetLastError(out lErrCode, out sErrMsg);
    I get the data from MySql, and I tried putting the data manually from an existing record and does not work
    Any ideas why?

    Hi,
    Before you can call Update on an item you need to call the GetByKey method to retrieve the item you want to update:
    public static void updateItem(DataRow itemObject)
       oItems = (SAPbobsCOM.Items)(oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems));
       if(oItems.GetByKey(itemObject["ItemCode"].ToString())
            oItems.ItemName = itemObject["ItemName"].ToString();
            lRetCode = oItems.Update();
            if (lRetCode != 0)
                    oCompany.GetLastError(out lErrCode, out sErrMsg);
    Kind Regards,
    Owen

  • Incoming Payment Error(-2028) Data source - No data found, pls help me

    Dear friend,
    Im struggle in Adding Incomming Payment, I got -2028 Error msg,
    DATA SOURCE – NO DATA FOUND pls help me to solve
    Its My code
    Public Sub incopay(ByVal oform As SAPbouiCOM.Form)
            Dim incom As SAPbobsCOM.Payments
            Dim value As Integer
            Dim strerror As String
            Try
                Dim rset As SAPbobsCOM.Recordset
                oitem = oform.Items.Item("om")
                oedit = oitem.Specific
                vfd1 = oedit.String
                incom = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments)
                incom.AccountPayments.AccountCode = acc
                incom.AccountPayments.AccountName = accn
                incom.AccountPayments.Decription = "deposit"
                incom.AccountPayments.SumPaid = vfd1
                'incom.CardCode = "C1"
                'incom.CardName = "Shama Broadcast Contents & Services (P) Ltd."
                incom.DocDate = Now
                incom.DueDate = Now
                incom.TaxDate = Now
                incom.DocCurrency = "INR"
                incom.Reference2 = 2
                incom.JournalRemarks = "Incoming Payments - 161020"
                'incom.AccountPayments.Add()
                'value = incom.Add
                incom.CheckAccount = "102020"
                incom.Checks.DueDate = Now
                incom.Checks.CountryCode = "IN"
                incom.Checks.BankCode = "HDFC"
                incom.Checks.Trnsfrable = SAPbobsCOM.BoYesNoEnum.tNO
                incom.Checks.CheckSum = 100
                incom.Checks.Add()
                incom.AccountPayments.Add()
                value = incom.Add
            Catch ex As Exception
                oapp.MessageBox(ex.Message)
            End Try
            ''incom.AccountPayments.Add()
            ''value = incom.Add()
            If value <> 0 Then
                ocompany.GetLastError(value, strerror)
                MsgBox(value & "   " & strerror)
            End If
        End Sub
    Regards,
    Hempradeep.S

    Hi Hempradeep,
    I haven't tried executing your code, but suggest that you try and solve it with elimination. This means you make your code shorter and shorter until it posts.
    So firstly take out the account payment and the check payments and just do a cash payment and see if it posts. If it posts then you gradually add the code you hade previously until it gives you that error again.
    That error you got can be because of many reasons. It could be that the cardcode, gl account, currency, etc, etc, etc does not exist. It could be because of any data you specify from another table does not exist or does not relate to this object. Like when you're posting to a customer and you actually specify a supplier (just an example and not your problem).
    Start with a very basic incoming payment and work your way up to the code you've got there now.
    Good luck,
    Adele

  • LOCAL_WITH_NETWORK sandbox and SecurityError: Error #2121: BitmapData.draw

    We have an application we run in a localWithNetwork security sandbox.  This application loads many assets from an off-site web server.  In spite of a very permissive crossdomain.xml, swfs downloaded from site give a 2121 error when we convert them to bitmaps at runtime.
      <?xml version="1.0" ?>
      <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
      <cross-domain-policy>
        <allow-access-from domain="*" />
        <site-control permitted-cross-domain-policies="all"/>
      </cross-domain-policy>
    Now, I understand why this restriction with BitmapData.Draw exists in general, and from what I've read in other discussion threads the general solution is to allow less restrictive access via crossdomain.xml.  This is the most permissive I know how to make it, although the documentation on the subject is not the most concise.  Are there details I'm missing here?
    For the moment we're just running this as LOCAL_TRUSTED, but this requires folks to be setup with the debug plugin which is a maintenance problem.
    Thanks in advance for any guidance.
    jv

    Crossdomain isn’t used in localWithNetwork because there is no “domain” for the request.
    I didn’t think you needed a debug plugin for LOCAL_TRUSTED, I thought any trust file would work.  Did you try creating an AIR app instead?  It might have different security rules.

  • SecurityError: Error #2152

    at flash.display::Stage/set displayState()
    Why I use stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE; will cause this error while 11.2 won't?
    Should I use FULL_SCREEN_INTERACTIVE if I want to receive keyboard event in fullscreen?

    Sorry, It's my fault.
    This feature works fine! But end users will see a permission dialog. Does this dialog must show?

  • Error -2028 : No matching Record found while adding Incoming payment

    Hi all,
             I was trying  to add an Incoming Payment using DI API, checked both DocEntry and ChequeSum property..and all other properties and seems set as well, it would be better if you can give any solution.Thank you
    Regards
    Sijimon Sidharthan
    oPay.CardCode = oInvoice.CardCode;
                                       string sCardName=oInvoice.CardName;
                                  oPay.CardName = oInvoice.CardName;
                                  oPay.JournalRemarks = "820 Import Test" +  oInvoice.CardCode;
                                  oPay.ApplyVAT = SAPbobsCOM.BoYesNoEnum.tYES;
                                  oPay.CashSum = 189.77;
                                       int conP=oInvoice.ContactPersonCode;
                                  oPay.ContactPersonCode = oInvoice.ContactPersonCode;
                                       string cur =oInvoice.DocCurrency;
                                  oPay.DocCurrency = oInvoice.DocCurrency;
                                  oPay.DocDate = now;
                                  oPay.TaxDate = now;
                                  oPay.DocRate = 0;
                                  oPay.LocalCurrency = SAPbobsCOM.BoYesNoEnum.tYES;
                                  oPay.DocType = SAPbobsCOM.BoRcptTypes.rCustomer;//rAccount;
                                  oPay.HandWritten = SAPbobsCOM.BoYesNoEnum.tNO;
                                  oPay.Remarks = "remarks";
                                  oPay.Reference1 =iBaseRef.ToString();//"R";
    //                              oPay.TransferAccount = "10100";//OTRC doesn't contain any code
    //                              oPay.TransferDate = now;
    //                              oPay.TransferSum = 0;
                                  #region Invoice
                                  oPay.Invoices.AppliedFC = 0;
                                  oPay.Invoices.DocEntry = iBaseRef;//baseEntry;
                                       int ln=oPay.Invoices.LineNum ;
                                  oPay.Invoices.DocLine = 0;
                                  oPay.Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_Invoice;
                                  //oPay.Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_ChequesForPayment;
                                  oPay.Invoices.SumApplied = 189.77;//amount;
                                  oPay.Invoices.Add();
                                  #endregion Invoice
                                  #region Cheque
                                  oPay.Checks.BankCode ="026008866"; //"026002794";//"Leumi";
                                  oPay.Checks.CheckAccount="10200-00";//"10203";//-00";//"1HD";10203-00
                                  oPay.Checks.DueDate=Convert.ToDateTime("04/03/2007");
                                  oPay.Checks.CheckSum =189.77;
                                  oPay.Checks.CheckNumber = 12345678;
                                  oPay.Checks.Add();
                                  #endregion Cheque
    int ret=oPay.Add();
                                  if(ret!=0)
                                       int lErrCode; string sErrCode;
                                       oCompany.GetLastError(out lErrCode, out sErrCode);
                                       MessageBox.Show(ret.ToString ()+ sErrCode);

    Hi Lan,
              I tried to add IncomingPayment with another Database works fine with all these properties..think some extra settings may be there in the database now I'm working , do you have any idea regarding to solve this issue ..Thank you
    Regards
    Sijimon Sidharthan

  • Error When Streaming Using AS3

    Hello Guys, I am trying to stream my webcam using AS3 code but I keep receiving this error message in the output panel when I run the application:
    ArgumentError: Error #2126: NetConnection object must be connected.
    at flash.net::NetStream/ctor()
    at flash.net::NetStream()
    At first I listen for the NetStatusEvent status and the connection succeded
    But when i include the NetStream class I receive that annoying error. I think this is the relevant code. Any ideas why it isnt working?
    import flash.net.NetConnection;
    import flash.events.NetStatusEvent;
    import flash.net.NetStream;
    import flash.media.Camera;
    import flash.events.StatusEvent;
    import flash.media.Video;
    import flash.media.Microphone;
    var nc:NetConnection = new NetConnection();
    nc.addEventListener(NetStatusEvent.NET_STATUS, netStatus);
    nc.connect("rtmfp://localhost/streamCamUrl");
    var ns:NetStream = new NetStream(nc);
    ns.publish("live", "recording");
    function netStatus(event:NetStatusEvent):void{
    switch(event.info.code){
      case "NetConnection.Connect.Success":
      trace("Connecting up...");
      break;
      case "NetConnection.Connect.Failed":
      trace("Unable to Connect");
      break;
      case "NetConnection.Connect.Rejected":
      trace("Ouchh!");
      break;
      case "NetStream.Connect.Success":
      trace("Thats great!");
      break;
      case "NetStream.Connect.Failed":
      trace("Livestream");
      break;
    var cam:Camera = Camera.getCamera();
    cam.setMode(520,320,15);
    cam.setQuality(0, 80);
    ns.attachCamera(cam);
    cam.addEventListener(StatusEvent.STATUS, statusHandler);
    var vid:Video = new Video();
    vid.height = cam.height;
    vid.width = cam.width;
    vid.attachCamera(cam);
    addChild(vid);
    var mic:Microphone = Microphone.getEnhancedMicrophone();
    mic.gain = 50;
    mic.setSilenceLevel(0, 2000);
    mic.framesPerPacket = 1;
    mic.codec = SoundCodec.SPEEX;
    ns.attachAudio(mic);
    mic.addEventListener(ActivityEvent.ACTIVITY, this.onMicStatus);
    function statusHandler(event:StatusEvent):void{
    switch (event.code)
            case "Camera.Muted":
                trace("User clicked Deny.");
                break;
            case "Camera.Unmuted":
                trace("User clicked Accept.");
                break;
    function onMicStatus(event:StatusEvent):void
        if (event.code == "Microphone.Unmuted")
            trace("Microphone access was allowed.");
        else if (event.code == "Microphone.Muted")
             trace("Microphone access was denied.");

    Thanks kglad for your comment. I deleted out the ns.publish method when I executed the code I got a different error...
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at Untitled_fla::MainTimeline/frame1()
    Connecting up...
    I have been tweaking around with the code but i still couldnt fix the issue. When I debugged the code this appeared in my output:
    [SWF] C:\Users\\AppData\Local\Temp\Untitled-1.swf - 3420 bytes after decompression
    *** Security Sandbox Violation ***
    Connection to rtmfp://localhost/streamCamera halted - not permitted
    -- Untrusted local SWFs may not contact the Internet.
    SecurityError: Error #2028: Local-with-filesystem SWF file cannot access Internet URL rtmfp://localhost/streamCam.era
    at flash.net::NetConnection/connect()
    Any advice how to fix this?

Maybe you are looking for

  • Cannot install Windows Live ID Sign-in Assistant.

    Well, I am having some issues installing "Windows Live Essentials" update and "Games for Windows Marketplace". I have found that the cause of this is from "Windows Live ID Sign-in Assistant", (wllogin_64.msi) which I am unable to install. Things I ha

  • Legend in ALV Table

    Hi all, Can we have a legend in ALV table. Basically I have different colors in different rows depending on some conidtions in the data. I have to show a legend giving meanings of which color stands for what condirion. Regards, Reema

  • How have people fixed cd burning prob in itunes 8.2?

    Hi there Ive read all the posts about CD burning in itunes 8.1 and 8.2. CD's wont burn and itunes just hangs until I force quit. Anyone ayone suggestions? Is there another way to burn a CD with itunes music, like a software download. Tracy

  • Staff Delivering TERP10 -Queries regarding Grey Areas in the content-

    I am looking to obtain a list of all UA staff members that are delivering TERP10. Is anyone aware of a list like that? The reason I want this, is that there are some "grey" areas within the TERP10 materials that would be good to have a general view o

  • Wont boot up

    macbook pro, 2011, won't go past start up apple?