Need help with security when AS3 running inside the browser

Hello

I'm relatively new to flash, but a fairly skilled programmer.

I've created a game that works perfectly and communicates with a WinSock server on port 4000 to publish his final to score. With the help of simple XMLSocket and Send.

When I start the game in the stand-alone flash player everything works perfectly as it should

However, when I embed in an HTML page or similar this is wrong. The game works fine, but the final display on the WinSock socket server fails. I got the error message.

ioErrorHandler: [SecurityErrorEvent type = "securityError" bubbles = false cancelable = false eventPhase = 2 text = "Error #2048"]

My server is a local server run me IIS 6. Everything works very well by the stand-alone flash player, so I know that the ports are clear and firewalls is not the problem.

Searching around google and forums I discovered in 9,0,124,0 (flash I'm short) that they brought security enhancements, namely you must validate a cross-domain file.

My file is sitting in the wwwroot in my Web server where my flash swf is hosted and looks like

< cross-domain-policy >
< allow-access-from domain = "" * "safe ="false"/ >"
< / cross-domain-policy >

I also tried adding to article 1 of the swf file

Security.loadPolicyFile (" http://mydomainname.com/crossdomain.xml");

I tried all the bottlenecks, but I can't get the flash to communicate with the server socket when it inside a web browser.

If I run it in the stand-alone player, everything works perfectly.

Can someone help me please. I've been googling and ripping my hair out for centuries. It's the last step in my project and I failed the final step.


Just to add.

My server and the test computer are on the same domain, the web server is a win2003 server and my tests and server coding is a XP machine running IE7. They are connected by a router ADSL, sharing the same external IP address, but rather through the DHCP addressing. Everything works fine for winsocket port port forwarding.

Just for emphasis, I think that this configuration is correct, because everything works fine when I run in the flash player.

Thank you very much

I fixed it later.

In version 9.0.124.0 flash they force now you have a server running on port 843 XML socket server somewhere if you want to use XMLSocket in a browser.

Nothing to do with the domain or crossdomain.xml files.

You must also call

Security.loadPolicyFile ("xmlsocket://x.x.x.x:843") before opening the socket.

to load into the XML file that defines what is allowed.

Google search for AS3 and socket server port 843 and you will find examples and even a simple Java based server to use.

Tags: Adobe Animate

Similar Questions

  • Need help with a script (o - o8) *, see the Virgin if there is no

    Hi all what I need help with a script I can't find an example.

    I'm trying to subtract 2 numbers and then multiply this product. (o o8) * one but I just want to do the calculations if all fields have the numbers IE field o, o8 of field and field one.

    Thank you in advance. I was stuck on this days searching the Internet.

    Assuming you want to affect the outcome of this calculation in another text field, use this code as a custom field calculation script:

    var o = this.getField("o").valueAsString;
    var o8 = this.getField("o8").valueAsString;
    var a = this.getField("a").valueAsString;
    if (o!="" && o8!="" && a!="") event.value = (Number(o)-Number(o8))*Number(a);
    else event.value = "";
    
  • Need help with problems when running mount on Ubuntu

    I see fuse errors when I'm putting the remote disk using vmware-mount utility. I know I'm missing something here (probably related to the fuse or lib path) but does not know what it is. Would appreciate any help.

    Configuration:

    Ubuntu 8.10 x 86

    VDDK installed

    Fuse is installed (also confirmed as suggested in FAQ questions), here is the result of modprobe:

    fuse of $ modprobe-l

    lib/modules/2.6.27-7-generic/kernel/FS/fuse/fuse. Ko

    Mount command

    $ sudo mount-vmware - v MyDC/vm/VM-TEST-WXP - h 192.168.1.5 u MyDomain\Administrator passwordfile/home/userid/mntpoint f ' [nfs datastore] VM-TEST-WXP/VM-TEST - WXP.vmdk.

    Output

    Can't open the drive: unknown error (1)

    Fuse of initialization failed.

    On Ubuntu, it may be still do better: sudo apt - get install libxml2

    from a command line. Then Ubuntu will notify you when there are updates for the package, and the version of the installed package will be supported by Canonical.

  • Need help with html and as3 dropdown

    First of all Hello!  I need to create a html for a company Web site. The design that I did is in photoshop... .and I need to create a menu drop-down. The first question is: can I create the drop in flash without having to use html frames? Can I connect one of the menu buttons in an html page so that it loads in the same window of the browser to another html page (If Yes... with what?)?  Please... I need to know... because I prefer simply to apply it in flash rather then html. And the second question is: If the scene in flash can be transparent? Because if I do the menu inside, it will be impossible to match all the dimensions of the stage... and I would like to integrate it in an html page, if possible without the stage color >... Thanks in advance!    Tudor

    For the opening of the pages you wish to study using the navigateToURL() function.  The help documentation provides information abiout it year how to control the appearance of the window as well.

    To make the transparent scene is more than a html one aspect of Flash element, if you can set it to publish it.  The key is to set the wmode paraemter which is located in the "transparent" html embed code  I don't know if all browsers supports this feature, but I think that many are willing to.

  • need help with a game to run

    I, m trying to run diablo 2 and the colors are all messed up. I ran in compatibility mode and changed my settings on 800 x 600 16 bits but the colors again mess up can help anyone?


    Thanks for the help


    Justin

    Hello

    Update the display driver.

    $C God will not look you over for medals, but for scars. Each winner has scars; I do this either on the same heart

  • need help with nero kwik dvd burner to the top and running.new nget computer appreciate any help

    new computer, need help for nero dvd borning kwik place and ongoing, as if I wanted to get stuff for my grandchildren, any help really appreciated. Thank you

    http://www.Softpedia.com/get/portable-software/CD-DVD-tools/Windows-portable-applications-portable-AmoK-CD-DVD-burning.shtml

  • Need help with secure Channel 5 Certification...

    Hi all

    I intend to resume Certification VCP-5 in a month... If you'd be grateful if someone can suggest some tests of online\mock..., share their exp and provide some useful tips...

    Concerning

    gaurav0811 wrote:

    I'm extremely sorry, I was not yet aware of it.

    What you thought you should ask when you asked to the images?

  • I need help with security issues pass when I don't remember responses

    I bought a new phone and I was trying to buy some ringtones but its application to verify my info so he asks me my security questions the problem is I don't remember not answers, and when I tried to call customer servcie was closed

    You have to ask Apple to reset your security questions. To do this, click here and choose a method; If this page does not list one for your country or if you are unable to call, complete and submit this form.

    If they are closed, wait until they are open.

    (137812)

  • Need help with VMware Player to run!

    I've been using VMware Player 7.1 successfully for some time, but my drive hard host started making noise, so I installed a new SSD drive as drive C on the host computer.  My old hard drive installation was 8.1 for Windows 64-bit, but needed to be cleaned, so I did a clean install of Windows 8.1 64 bit on my new SSD for the host.  My guest OS (8.1 64-bit Windows) has been installed on drive E, then I'm not touching this player.  I then installed VMware Player 7.1 and all is well.  However, when I now run VMware Player 7.1 and try to open my (8.1 Windows 64-bit) guest OS, he says now that the Intel VT - x is disabled.  I've never touched the BIOS at all, but to check I went into the BIOS and Intel Virtualization is always on because it has been.  My system is a motherboard ASUS Sabertooth with an i7 processor and 16 GB of ram.

    So I rechecked everything in the BIOS and made sure the virtualization is enabled.  What else can I do to get VMware Player 7.1 running?  Help, please!

    The log file created when I tried to run the guest operating system is attached.

    Thank you

    Abby

    It is indeed strange that there is a difference with no changes to the BIOS. In any case, other messages in the forums, it seems like some antivirus/end point protection applications can cause these issues (see, for example, binary translation is incompatible with the long mode). You have already installed this application?

    It might be interesting to see vmware.log from the virtual machine HARD disk.

    André

  • Need help with problem when implementing IPC with JPF portlet (WLP 10.3.2)

    Hi all.
    I implemented the CPI between 2 flow of the Page Java portlets (local IPC) training in certain pages:
    [Establishing the IPC by using custom and Page Flow events | http://download.oracle.com/docs/cd/E13218_01/wlp/docs81/ipcguide/custevent.html]
    [An example Simple of IPC establishing | http://download.oracle.com/docs/cd/E13218_01/wlp/docs81/ipcguide/howworks.html#1000903]
    [Portal Federation with WebLogic Portal WRSP: Advanced IPC Techniques | http://www.developer.com/lang/article.php/3749366/Portal-Federation-with-WebLogic-Portal-WRSP-Advanced-IPC-Techniques.htm]

    But I'm dealing with a strange error. Here is the error in the console:
    <Oct 27, 2010 9:59:15 AM ICT> <Error> <netuix> <BEA-423330> <The method [ saysomething ] was not found in the backing class [ backing.InputBacking ].> 
    My scenario is: display portlet must listen to the events that will be drawn from entry portlet then display them.
    In InputController.portlet, I have a code:

    + < netuix:portlet backingFile = 'backing. InputBacking"definitionLabel ="InputController"title ="Input"> +.
    + < netuix:handleCustomEvent = "customEvent" eventLabel = "handleCustomEvent1" + event
    fromSelfInstanceOnly = "false" onlyIfDisplayed = "false" sourceDefinitionWildcard = "any" >
    + < netuix:invokeBackingFileMethod method = "saysomething" / > +.
    + < / netuix:handleCustomEvent > +.

    + < netuix:handlePageFlowEvent action = "customEvent" eventLabel = "handlePageFlowEvent1" +.
    fromSelfInstanceOnly = "false" onlyIfDisplayed = "true" sourceDefinitionWildcard = "any" >
    + < netuix:invokePageFlowAction action = "submit" / > +.
    + < / netuix:handlePageFlowEvent > +.

    + < netuix: content > +.
    + < netuix:pageflowContent contentUri="/input_portlet/input/InputController.jpf"/ > +.
    + < / netuix: content > +.
    + < / netuix:portlet > +.

    And it comes to codesnippet in InputBacking.java


    + / public class InputBacking extends AbstractJspBacking {+

    + public private static final long serialVersionUID = 1 L; +

    + ' public Sub pushInput (HttpServletResponse response HttpServletRequest request, Event event) {+
    + Setting PortletBackingContext = PortletBackingContext.getPortletBackingContext (request); +
    + String msg = (String) request.getParameter (context.getInstanceLabel () + "{actionForm.input}" "") +;
    + context.fireCustomEvent ("customEvent", msg); +
    +     }+
    + ' public Sub saysomething (HttpServletResponse response HttpServletRequest request, Event event) {+
    + System.out.println("*** Hello, this is a set point ***"); +
    +     }+
    +}+


    I don't know why pageflow impossible dectet my method? Someone help me?

    Kind regards.
    Doubt_Man

    Published by: Doubt_Man on October 27, 2010 11:09

    Published by: Doubt_Man on October 27, 2010 11:52

    Hello

    You get the error message indicates that the portal framework cannot find the method with the signature of method appropriate to your backup file. You have the correct name of the method, but the portal framework is not to find a method with the correct (in the right order) arguments when using reflection to examine your backup file.

    If you change the method signature to the order of the required arguments:

    void saysomething(HttpServletRequest request, HttpServletResponse response, Event event)
    

    the framework needs to properly run your method of backup file when the event is received. The fact that you get the error message indicates that other configurations AutoEventWireup for the event works; He can just find the right method in your backup file to finally deliver the event to.

    Kevin

  • Need help with security in OBIEE

    I have problems with OBIEE 11 g security.

    I'm trying to set up a user, UserA, so that they have access to a single file OBIEE.

    Here's what I did:

    -Application creation, role role - contains BiSystemUser and GroupA (Group) in Enterprise Manager

    -Create GroupA in Enterprise Manager

    -Wear creation

    -Added UserA to GroupA in Enterprise Manager

    In Business Intelligence:

    Under shared folders, created a folder and the permissions assigned on this file for the application role role can read/rail/view

    But when I login as UserA, I can see all the other files in the shared folders even if I never assigned role can access.

    What I am doing wrong?

    Thank you

    Dear cm 999 999,

    Please let us know how you create group in EM, we can only create users/groups in the Console.

    Now the real work:

    Step 1: create a user in the CONSOLE.

    Step 2: Crete a role in MS and joint above the user for this role.

    Step 3: assign the permission is this role / user on your new shared folder.

    Please don't check no other roles such as: BIConsumer/BIAuthenticated user is to have access to your newly created folder.

    Note: Any time you restart OPMN services also.

    Thank you

    Deepsa

  • Need help with CASE When statement in a Where Clause

    So I have a SQL (simplified for this forum)

    Select t1.*
    from table1, table2 t2 t1
    where t1.field1 = t2.field1
    and when t1.field2 is null then trunc (sysdate) < = trunc (t1.date1 + 17)
    of another trunc (sydate) > = end of trunc (t2.date2 + t2.date3)

    I end up getting an error ORA-00905: lack of keyword

    I'm sure that I just got something here involved.

    You can not make the comparison within the statement underlying case like this. Assuming you have appropriate data types, something like this should work

    Select t1.*
    from table1 t1, table2 t2
    where t1.field1 = t2.field1
      and ((t1.field2 is null and
            trunc(sysdate) <= trunc(t1.date1 + 17)) or
           trunc(sydate) > = trunc(t2.date2 + t2.date3))
    

    John

  • Need help with lack of OneDrive icon in the tray on my Windows 7 PC

    Today, I connected to my Windows 7 PC and opened my OneDrive file, expecting to see a folder with a few pictures that I had uploaded from my mobile phone. I tried my laptop and on this PC, the files were there which indicates that the synchronization was not on my desktop PC. Sort by dumb luck, I managed to get the synchronization begins and when it happened I noticed that there was a cloud icon in my taskbar and icon remained in my taskbar until I rebooted. Upon reboot, however, cloud oneDrive icon is missing and I was unable to find a way to get it back. On my laptop, I noticed that the cloud icon is in the taskbar whenever I start, but not on my desktop PC. Has anyone experienced this problem and managed to get the icon every time? If Yes can you please share with me how to retrieve the OneDrive icon in the system tray? Thank you.

    I go to www.OneDrive.com and re - install the latest version of the app sync OneDrive.  This will repair the installation more replace any missing registry for Autorun keys during startup.

    Thanks for the reply.

    I guess I should have made more than one investigation before I posted, but I managed to fix this after reading your post. I took a glance at my laptop which was running icon and I could see an entry for OneDrive in the MSConfig Startup tab, but it wasn't in the startup folder. I ran AutoRuns of Sysinternals and on the connection tab, I found an entry for OneDrive in HKCU\software\Microsoft\Windows\CurrentVersion\Run and I then pulled regedit and find this key value in the registry. I then I went back to my desktop PC, pulled up Regedit and created a new string value, renamed OneDrive and joined in the data value field: "C:\Users\[MyName]\AppData\Local\Microsoft\OneDrive\OneDrive.exe" / background to match what I had on my laptop. Out of Regedit, I rebooted and found that OneDrive did start, was the cloud icon in the system tray and I could find the OneDrive entry in MSConfig. Perhaps this might help someone else who has the same problem.  Thanks again.

  • Need help with XP, you try to restore the system to the mode safe mode with command prompt.

    XP does not start even in safe mode.  Can access the mode safe mode with command prompt. Tried to use the repeated suggestion here.  The said command is not available.

    http://support.Microsoft.com/kb/304449 I tried these instructions from microsoft are supported and the command will not be accepted.

    Any help out there?

    Hello

    1. What is the exact error message when you try to access the computer in safe mode?
    The issue seems to be with the corrupted registry that prevents Windows XP startup.
    How do I recover from a corrupted registry that prevents Windows XP startup
    http://support.Microsoft.com/kb/307545
    Note:
    To do: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:
    How to back up and restore the registry in Windows
    http://support.Microsoft.com/kb/322756
  • Need help creating tip Action for Navigation "Inside-the-same-slide" to let the user Play slide again

    I use 8 Captivate. It is a scenario of HTML5.

    I have need of a button which will allow the user to "replay" the slide. I don't want the button to take the user to the front, back, or do anything else. I want the button to start the slide at the beginning and play without interruption until the end.

    I am looking for help on how to do this using variables and advanced for HTML5 actions or, Alternatively, recommendations on the good tutorials for advanced actions. I prefer the tutorials that will allow me to start at the bottom. I was not able to find tutorials advanced action that assume no prior experience.

    I know that each new user must say this, and I'm afraid that's true for me too. If I can't create a HTML5 work quickly replay button, it will get me in trouble with the client.

    Try this:

    cpCmndGotoSlide is a system variable, which the index starts at 0. The variable cpInfoCurrentSlide system includes an index starting at 1. The reason for the subtraction in this Expression. You need to add continue because a tip action will not release the read head.

    Why choose Standard Simple action? -Captivate Blog

Maybe you are looking for

  • Add several pictures to be projected. Auto detection time.

    Hello I created an audio slide show by using FCPX. I have all my pictures in the clip browser. All files are named 1-50. I would like to add to my project in the right order and set the duration for each picture to 6 seconds. What it the fastest and

  • Modbus reading on request

    Is there a way to read only a modbus on request? I want to be able to click a button 'Get Data of the controller. Also related, I just want it write on command. I currently have a trigger/relay for writing data, but I can't tell if modbus is always s

  • Dell windows 7 free upgrade

    Hey has any who actually received the update to windows 7? I bought my laptop on 10 July and my service tag not yet in the database dells. It has been good for 10 days. After many calls to dell the thing only customer service can tell me to wait 10 d

  • Deployment in production Verify problem

    Hello, we strive to aprove a project through the production of check deployment. But we receive this warning:WARNING Fri Aug 01 18:24:27 BRT 2014 1406928267401/atg/epub/workflow/process/WorkflowProcessManager runtime error [] checkInProject of action

  • updated for windows 7 Pro for windows - 10 now lightroom 6 is not open, but the fact Photoshop cs6

    updated for windows 7 Pro for windows - 10 now lightroom 6 is not open, but the fact Photoshop cs6