XMLSocket onData Issue

I am trying to narrow down a bug in an application that
utilizes the XMLSocket class. I have reduced it to the following
code below. Is there such a scenario that practically simultaneous
messages sent from a server would cause 'false' to be traced more
than once (ie. can the code in the onData method evaluate test as
false more than once because onData is called a second time before
the first onData method has had time to update test to true)? Can
the onData method be treated as atomic? To a certain degree....?
At the root of this question, I am trying to grasp how
asynchronous calls are handled/queued to make sure I understand
them correctly and prevent certain cases where a single-time
operation may occur twice. If any one can help or direct me to
information regarding this, I would be very thankful.
Dan

Hi Tracy,
Thanks for your reply.
SocketComm is a action script class which maintains XMLSocket
object for the whole application.
package asclasses
import flash.display.Sprite;
import flash.events.*;
import flash.net.XMLSocket;
import mx.controls.Alert;
public class SocketComm extends Sprite
private var hostName:String = "localhost";
private var port:uint = 8080;
private var socket:XMLSocket;
public function createSocketConnection(hostName:String,
port:uint):XMLSocket {
if(socket == null) {
socket = new XMLSocket();
socket.connect(hostName, port);
}else if(socket != null && !socket.connected) {
socket.connect(hostName, port);
return socket;
Actually now i am able to communicate with server over
XMLSocket.
There was some problem at server side.
But still i am not comfortable with using
SocketComm(XMLSocket) as a common utility class due to event based
asynchronus model. Like in Java Socket all calls are synchronus, I
can easily create common class for socket communication.
But due to my unfamiliarity with event based asynchrous model
of programming, I am facing difficulties.
Like my requirement is to use SocketComm class as a
communication medium with server for various business operations
like add, modify and delete etc. from various Flex UI screens. But
due to event based model, I am not really sure how and when socket
is going to send response.
So if you look at my first post, I have added all listeners
to mxml page but i feel this is not a good design, As i have
atleast 4-5 mxml pages where in I will repeat these listeners.
I would really appreciate if you could provide me some
guidance on using SocketComm class as a effective common class.
Thanks in advance :)
Regards
Tarun

Similar Messages

  • XmlSocket.onXML and xmlSocket.onData problem

    Hi,
    I am having a problem with reading information that is being passed from a C# server. When I use xmlSocket.onXML, the xml object being passed from the server does not have any elements at all. When I use xmlSockt.onData, I am able to get the following output with tace:
    <?xml version="1.0"?>
    <Packet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <UserID>5555</UserID>
      <UserName>Success</UserName>
      <Operation>RefreshUsers</Operation>
    </Packet>
    However, when I check the string variable that I used to store this string in debug mode, the value of the string is "". And when I try to create an XML object using var my_xml:XML = new XML(srcstring); I get the same problem as when I used the xmlSocket.onXML method. The xml object my_xml contains no elements at all.
    Can anyone help me out on this? Thank you.

    So I switched from XMLSocket to just plain Socket.
    I have this now:
      var sock:Socket = new Socket();
                sock.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
                sock.connect("localhost", 7778);
                sock.writeUTFBytes(xmlMsg);
                sock.flush();
    But nothing gets transmitted unless I close the Flex app.
    I don't get this. What seems to be a problem?
    I read an API docs twice and it says that writeUTFBytes (or any other write methods) are just putting stuff in a buffer
    the flush() is the one that signals that the buffer content needs to be sent.
    I'm doing just that and still I get nothing on the other side unless I close the Flex app.
    Any suggestion?
    Thanks
    Greg

  • XMLSocket Issue

    HI,
    I have written a small program which uses XMLSocket to
    communicate with some server.
    It works for the first time, I mean when i send first
    message, I got the response from server but after that flex client
    does not send any message to server and i see no exception in the
    code.
    can anybody pls. help ?
    Following is the code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" width="800" height="600">
    <mx:TraceTarget level="0" />
    <mx:Script>
    <![CDATA[
    import asclasses.SocketComm;
    import flash.system.Security;
    import asclasses.ACTURLLoader;
    import mx.controls.Alert;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.events.FaultEvent;
    import mx.rpc.http.HTTPService;
    private var response:String;
    private var socketComm:SocketComm;
    private var sock:XMLSocket;
    private var isSocketConnected:Boolean = false;
    private function handleTest():void {
    // Printing Sandbox
    var sandbox:String = Security.sandboxType;
    sandboxType.text = sandbox;
    if(!isSocketConnected) {
    // Local Windows Service
    var host:String = winServiceHost.text;
    var port:String = winServicePort.text;
    socketComm = new SocketComm();
    sock = socketComm.createSocketConnection(host, int(port));
    configureSocketListeners(sock);
    }else {
    Alert.show("Entered in else part");
    if(sock.connected) {
    Alert.show("socket is connected");
    try {
    sock.send(msg.text+"\n");
    }catch(ie:IOError) {
    Alert.show(ie.toString());
    }else {
    Alert.show("sock is not conected");
    private function
    configureSocketListeners(dispatcher:IEventDispatcher):void {
    dispatcher.addEventListener(Event.CLOSE, socketHandler);
    dispatcher.addEventListener(Event.CONNECT, socketHandler);
    dispatcher.addEventListener(DataEvent.DATA, socketHandler);
    dispatcher.addEventListener(ErrorEvent.ERROR,
    socketHandler);
    dispatcher.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
    socketHandler);
    dispatcher.addEventListener(IOErrorEvent.IO_ERROR,
    socketHandler);
    dispatcher.addEventListener(ProgressEvent.SOCKET_DATA,
    socketHandler);
    private function socketHandler(event:Event):void {
    var socket:XMLSocket = XMLSocket(event.target);
    Alert.show(event.toString());
    trace(event.toString());
    if(event.type == Event.CLOSE) {
    winServiceContent.text = response;
    }else if(event.type == SecurityErrorEvent.SECURITY_ERROR) {
    socket.close();
    }else if(event.type == IOErrorEvent.IO_ERROR) {
    socket.close();
    }else if(event.type == DataEvent.DATA) {
    winServiceContent.text += DataEvent(event).data;
    }else if(event.type == Event.CONNECT) {
    // Sending first msg
    Alert.show("Sending Message : " + msg.text);
    socket.send(msg.text+"\n");
    isSocketConnected = true;
    }else if(event.type == ProgressEvent.SOCKET_DATA) {
    trace("progressHandler loaded:" +
    ProgressEvent(event).bytesLoaded + " total: " +
    ProgressEvent(event).bytesTotal);
    ]]>
    </mx:Script>
    <mx:Form id="fff" x="36" y="10" width="500"
    height="414">
    <mx:FormHeading label="Security Test Form"/>
    <mx:FormItem label="Sandbox Type">
    <mx:Text id="sandboxType"/>
    </mx:FormItem>
    <mx:FormItem label="Windows Service Host">
    <mx:TextInput id="winServiceHost"
    text="10.201.205.196"/>
    </mx:FormItem>
    <mx:FormItem label="Windows Service Port">
    <mx:TextInput id="winServicePort" text="8081"/>
    </mx:FormItem>
    <mx:FormItem label="Command Message">
    <mx:TextInput id="msg" />
    </mx:FormItem>
    <mx:FormItem label="Windows Service Content">
    <mx:TextArea id="winServiceContent"/>
    </mx:FormItem>
    </mx:Form>
    <mx:Button label="Test" click="handleTest()" x="54"
    y="452"/>
    <mx:Button label="Clear" x="132" y="452" />
    </mx:Application>

    Hi Tracy,
    Thanks for your reply.
    SocketComm is a action script class which maintains XMLSocket
    object for the whole application.
    package asclasses
    import flash.display.Sprite;
    import flash.events.*;
    import flash.net.XMLSocket;
    import mx.controls.Alert;
    public class SocketComm extends Sprite
    private var hostName:String = "localhost";
    private var port:uint = 8080;
    private var socket:XMLSocket;
    public function createSocketConnection(hostName:String,
    port:uint):XMLSocket {
    if(socket == null) {
    socket = new XMLSocket();
    socket.connect(hostName, port);
    }else if(socket != null && !socket.connected) {
    socket.connect(hostName, port);
    return socket;
    Actually now i am able to communicate with server over
    XMLSocket.
    There was some problem at server side.
    But still i am not comfortable with using
    SocketComm(XMLSocket) as a common utility class due to event based
    asynchronus model. Like in Java Socket all calls are synchronus, I
    can easily create common class for socket communication.
    But due to my unfamiliarity with event based asynchrous model
    of programming, I am facing difficulties.
    Like my requirement is to use SocketComm class as a
    communication medium with server for various business operations
    like add, modify and delete etc. from various Flex UI screens. But
    due to event based model, I am not really sure how and when socket
    is going to send response.
    So if you look at my first post, I have added all listeners
    to mxml page but i feel this is not a good design, As i have
    atleast 4-5 mxml pages where in I will repeat these listeners.
    I would really appreciate if you could provide me some
    guidance on using SocketComm class as a effective common class.
    Thanks in advance :)
    Regards
    Tarun

  • Something is wrong with XMLsocket

    alright , I am using XMLsocket class, actrionscript 2.0
    (flash 8). I have set up appache server on port 1024, and I can
    connect without problems. But something's wrong with sending test
    data (I am using log file to check for incoming server requests)
    the code is this:
    quote:
    var theSocket:XMLSocket = new XMLSocket();
    theSocket.connect("localhost", 1024);
    theSocket.onConnect = function(myStatus) {
    if (myStatus) {
    TraceTxt("connection successful");
    } else {
    TraceTxt("no connection made");
    theSocket.onClose = function () {
    trace("Connection to server lost.");
    function sendData() {
    var myXML:XML = new XML();
    var mySend = myXML.createElement("thenode");
    mySend.attributes.myData = "someData";
    myXML.appendChild(mySend);
    theSocket.send(myXML);
    TraceTxt("I am trying to send: " + myXML);
    sendButton.onRelease = function() {
    sendData();
    theSocket.onData = function(msg:String):Void {
    trace(msg);
    function TraceTxt(strMessage:String)
    dtxMessage.text = dtxMessage.text + strMessage + "\n";

    Hello Alana,
    Do these songs/tracks sound okay in iTunes?  Have you tried resetting your iPod to see if that makes a difference?  To do this, press and hold both the Select (Center) and Menu buttons together until the Apple logo appears. 
    I would also try a different set of headphones/earbuds to see if that makes a difference as well.
    And if the problem still continues, try restoring your iPod via iTunes and reloading all your music back over to it.
    The last you may want to consider doing, if nothing from above resolves the issue is to rerip these tracks into iTunes.  Try importing them in a different format or at a different bit rate to see if that makes a difference.
    B-rock

  • XMLSocket "Failed to load policy file" error

    I am trying to use an XMLSocket.swf file, and it is not connecting.  Do I need to open up a port on my server?  I am trying to run this on a dedicated remote Windows 2008 server.
    Here is the error from FlashFirebug:
         OK: Root-level SWF loaded: file:///C|/Users/vcaadmin/AppData/Roaming/Mozilla/Firefox/Profiles/70vbx4ys.default/exten sions/flashfirebug%40o%2Dminds.com/chrome/content/flashfirebug.swf
        OK: Root-level SWF loaded: http://speak-tome.com/flash/XMLSocket.swf
        OK: Searching for <allow-access-from> in policy files to authorize data loading from resource at xmlsocket://speak-tome.com:9997 by requestor from http://speak-tome.com/flash/XMLSocket.swf
        Error: Failed to load policy file from xmlsocket://speak-tome.com:9997
        Error: Request for resource at xmlsocket://speak-tome.com:9997 by requestor from http://speak-tome.com/flash/XMLSocket.swf has failed because the server cannot be reached.
    My crossdomain.xml is saved to the root of the web directory and looks like:
        <?xml version="1.0"?>
        <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
        <cross-domain-policy>
        <site-control permitted-cross-domain-policies="master-only"/>
        <allow-access-from domain="*"/>
        <allow-http-request-headers-from domain="*" headers="SOAPAction"/>
        </cross-domain-policy>
    I notice that both ports 843 and 9997 are closed for my domain (speak-tome.com - 72.167.253.16) when I check using a service such as yougetsignal.com/tools/open-ports.  Do I need to get these ports open to get the policy file to work?

    As a test, I uploaded my Flash/Gaia site into an existing site on my old host.  And although the site actually works in this setting, when I run things in the FlashPlayerDebugger, I'm still getting Security Sandbox Violations - so (as adninjastrator suggested in earlier post), this may have nothing to do with the DNS changes - but perhaps with my setting things up wrong somewhere so that the Flashplayer is trying to access my local computer - maybe??
    Debugger logs gives me this:
    Error: Failed to load policy file from xmlsocket://127.0.0.1:5800
    Error: Request for resource at xmlsocket://127.0.0.1:5800 by requestor from http://recreationofthegods.com/bin/main.swf has failed because the server cannot be reached.
    *** Security Sandbox Violation ***
    So, I've now uploaded the identical bin (which contains all the files for my site) - but I'm getting different behaviors on the two hosts.
    On the new holistic servers, the site won't go past the first page:  www.yourgods.com
    On the 1&1 servers, I still get runtime errors in FlashPlayerDebugger - but the site runs ok - http://www.RecreationOfTheGods.com/bin/index.html
    Posting those links in hopes someone with more experience in these sandbox issues can help steer me in the right direction.

  • XMLSocket on OS X

    Hi,
    I'm building a flash app that uses XMLSocket to talk to
    another app on the same machine on port 9090. It works on windows
    just fine, either in IE or in a projector. However, on Mac OS X it
    only works in a stand-alone projector. It will NOT connect when
    opened in either Safari or Firefox. In fact, my onConnect handler
    never gets called when run that way. Is this a sandbox issue? Do I
    need to change some security settings?

    Flash won't install while Safari is running. The usual process is to download the flash installation disk image, mount it, run the installer (which will ask you to quit Safari), and then re-launch Safari when done.
    If you don't already have the flash installation disk image in "Downloads",  you can get it at https://get.adobe.com/flashplayer. Quit Safari, mount the disk image and install. You should be good to go.

  • XMLSocket Class

    My Flex Application is using XMLSocketClass for communicating
    with Webserver. But connection cannot be established. I am not
    getting any error message.
    I am using the follwing code for establishing the connection:
    =================================================================
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import mx.collections.ArrayCollection;
    import flash.net.Socket;
    private var socket:XMLSocket;
    private function connectToServer():void
    socket = new flash.net.XMLSocket();
    socket.connect("71.222.34.91", 8002);
    function sendData()
    var xmlvalue:String=txtData.text.toString()
    var
    xmlfile:String="<command>GetRevision</command>"
    socket.send(xmlfile);
    private function getData()
    socket.addEventListener(DataEvent.DATA, onData);
    private function onData(event:DataEvent):void {
    trace("[" + event.type + "] " + event.data);
    ]]>
    </mx:Script>
    <mx:HBox width="80%" horizontalAlign="center">
    <mx:TextInput id="txtData" name=""/>
    <mx:Button id="btnConnect" label="Connect"
    click="connectToServer();btnConnect.enabled = false"/>
    <mx:Button id="btnSend" label="Send Data"
    click="sendData()"/>
    <mx:Button label="getData" id="btnGet"
    click="getData()"/>
    </mx:HBox>
    </mx:Application>
    ====================================================================
    Please help me to handle this error.

    Oops! We forgot to sent the server app's EOL and EOF byte
    stream. Without them the server app was simply caching the data
    until such a byte stream was received.

  • XMLSocket Problem

    I can work fine which run in flash . I can see the connection can established and disconnected until i close the flash
    but i publish the flash to html and run in broswer, the flash can connect to server but it will disconnected in the same time. That means i can see the log is established connection then disconnect connnection.
    I cannot find the solution.
    Please help.
    Thank you
    flash code :
    mySocket = new XMLSocket();
    mySocket.onConnect = function(success) {
        if (success) {
            msgArea.htmlText += "<b>Server connection established!</b>";
        } else {
            msgArea.htmlText += "<b>Server connection failed!</b>";
    mySocket.onClose = function() {
        msgArea.htmlText += "<b>Server connection lost</b>";
    XMLSocket.prototype.onData = function(msg) {
        msgArea.htmlText += msg;
    mySocket.connect("dyn.obi-graphics.com", 9999);
    //--- Handle button click --------------------------------------
    function msgGO() {
        if (inputMsg.htmlText != "") {
            mySocket.send(inputMsg.htmlText+"\n");
            inputMsg.htmlText = "";
    pushMsg.onRelease = function() {
        msgGO();

    So I switched from XMLSocket to just plain Socket.
    I have this now:
      var sock:Socket = new Socket();
                sock.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
                sock.connect("localhost", 7778);
                sock.writeUTFBytes(xmlMsg);
                sock.flush();
    But nothing gets transmitted unless I close the Flex app.
    I don't get this. What seems to be a problem?
    I read an API docs twice and it says that writeUTFBytes (or any other write methods) are just putting stuff in a buffer
    the flush() is the one that signals that the buffer content needs to be sent.
    I'm doing just that and still I get nothing on the other side unless I close the Flex app.
    Any suggestion?
    Thanks
    Greg

  • XMLsocket + localhost + FlashLite 2.1

    Hi,
    On FlashLite2.1, trivial XMLSocket code connecting to a
    localhost
    server fails in a strange manner:
    - The server sees the connection as established
    - But the onConnect callback never gets called
    This happens only on the device (a WM5 Samsung i860
    smartphone). Not
    in Device Central.
    This does not happen if the server is more "remote" (over USB
    or
    GPRS).
    I suspect an issue with the speed of establishment of the
    socket, a
    kind of race condition in the implementation of
    XMLsocket.connect().
    The code, in the Actions of a single frame swf, is:
    var sok:XMLSocket;
    // do_connect is bound to a button press event
    function do_connect()
    sok=new XMLSocket();
    sok.onConnect=function(){ /* set some dynamic text
    variable */}
    if (sok.connect("127.0.0.1",4444)) { /* do some other
    visible effect */}
    In the emulator it works like a charm. On the device,
    sok.connect()
    return true but the visible effect of onConnect (setting some
    dynamic
    text in the frame) never occurs !
    Any idea ?
    -Alex

    quote:
    Originally posted by:
    Simon G.
    quote:
    Originally posted by:
    Ben RB Chang
    I've checked Jarpa today
    . The key concept is:
    we can use this code in j2me app to execute my flash lite
    files.
    midlet.platformRequest("file:///e:/others/xx
    .swf")
    But I meet another problem.
    My default flash lite player on Nokia E70 is version 1.1.
    Although I installed flash lite player 2
    .1 and 3.0.
    It still open my *.swf by 1
    .1.
    And then it will show me an error:
    "Can't open file
    . File is broken."
    (The language of my phone is Chinese, it shows something like
    that..
    So, I must find out how to change the mapping between "mime
    type" and "default app".
    it still doesn't work but i think this idea is very close.
    Still working on it...
    Simon G.
    I try to solve the same problem. In a Flash file I want to
    load another textfile. So if I open the flash in the new player it
    works, but if I open the flash directly from the memory card in
    it's folder flash can't connect.
    After java opns the flash-document and the player starts I
    push 'Options' of the flash player and and go to "programm
    information" ... but there it shows version 3 - the newest flash
    player version?! But the connection doesn't work.

  • Memory Leak using XMLSocket

    Hi all,
    I have a simple example of opening a socket that receives
    information every 20-30 seconds and it works fine but I get a
    constant memory leak if I leave it running. I found someone else
    had this problem at
    http://www.actionscript.org/forums/showthread.php3?t=111750
    but they did not seem to get a resolution. Any ideas?
    Here are the code snippets:
    public function openConnection():void {
    socket = new XMLSocket();
    socket.addEventListener(Event.CONNECT, onConnect);
    socket.addEventListener(DataEvent.DATA, onData);
    socket.connect("myhost", 61000);
    public function onConnect(event:Event):void {
    trace ("socket connected");
    public function onData(event:DataEvent):void {
    trace("got data");
    trace(event.data);
    var url:String = event.data.toString();
    var response:XML = new XML(event.data);
    trace(url);

    OK, I found the answer, it has nothing to do with the socket
    connection:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=585&threadid =1191042&highlight_key=y&keyword1=image%20and%20source%20and%20memory
    Really though -- why has this not been fixed in the Image
    class yet ???

  • ITunes randomly stops playing purchases that have previously viewed on the same hardware. It has an error message about HD. How can this issue be resolved?  What information is available besides the "learn more" option that does not deal with the problem?

    iTunes randomly stops playing purchases that have previously viewed on the same hardware. It has an error message about HD. How can this issue be resolved?  What information is available besides the "learn more" option that does not deal with the problem?
    Many people have the same problem. However, there is little or nothing readily available to users. This problem has existed for two or more years. Does anyone have anything to offer about this disturbing problem?

    Thanks for the suggestion kcell. I've tried both versions
    9.0.115 and 9.0.124 and both fail with the policy permission error.
    I also tried with and without your crossdomain.xml file but
    with the same result. It looks like this file is intended for URL
    policy, instead of socket policy. Recently Adobe separated the two.
    When I run with the files installed on my dev PC, it does
    work, which makes sense because the flash player isn't loaded from
    an unknown domain.
    I did get one step closer. If a crossdomain.xml in the server
    root exists and the socketpolicy file is loaded from the app folder
    then the first two warnings disappear. The logs now show:
    OK: Root-level SWF loaded:
    https://192.168.2.5/trunk/myapp.swf
    OK: Policy file accepted: https://192.168.2.5/crossdomain.xml
    OK: Policy file accepted:
    https://192.168.2.5/trunk/socketpolicy.xml
    Warning: Timeout on xmlsocket://192.168.2.5:843 (at 3
    seconds) while waiting for socket policy file. This should not
    cause any problems, but see
    http://www.adobe.com/go/strict_policy_files
    for an explanation.
    Warning: [strict] Ignoring policy file with incorrect syntax:
    xmlsocket://192.168.2.5:993
    Error: Request for resource at xmlsocket://192.168.2.5:993 by
    requestor from https://192.168.2.5/trunk/myapp.swf is denied due to
    lack of policy file permissions.
    Which basically says, everything is okay, but you stay out
    anyway.
    PS: I found the XML schema files here:
    http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security_02.html
    and the socket policy schema:
    http://www.adobe.com/xml/schemas/PolicyFileSocket.xsd.
    UPDATE: When serving up the policy file on port 843 using the
    example perl script then the socket connection seems to be accepted
    and the connect succeeds. After that flex hangs trying to logon to
    the IMAP server.

  • XMLSocket NULL byte generation

    Hi,
    I'm trying to get an external script to communicate with an application instance running on my Flash Interactive Media Server installation.
    I've got the following server side actionscript in my AppStart():
    this.socket = new XMLSocket("test");
    this.socket.onXML = function(object) {
           trace("got xml!");
    this.socket.connect(null, 16005);
    The connection to an open socket on the localhost, port 16005 works fine, but when I try to write some xml to the socket that I accepted the connection on (running on the localhost), I never seem to get the onXML or onData callbacks on the server application instance. One question that I had was regarding the NULL byte. If the FMS application doesn't not receive the NULL byte, does that mean the callback won't happen? If so, can someone tell me how to take something like a Python string and *add* a NULL byte so that the FMS will invoke the proper onXML or onData callback when this data is sent?
    Thanks.

    I can't comment on the Python side, but your assumption is correct that FMS is not delivering the data because it lacks the requisite null termination character.

  • Flash Player 10.1.53.64 Update Issues in HTML renderring

    Hi,
    We have created lot of Flash based dynamic reports, where content is getting injected by XML. Recently we have seen lot of issues in the way the content is being renderred in flash player specifically on 10.1.53.64 update release. Just to give one example: Earlier I used to get the content as a HTML formatted text like &lt;b&gt;balh blah blah &amp;nbsp; blah blah&lt;/b&gt;
    All the previous flash palyer prior to this latest version used to render the above html text proplery in the html textfield element. But recently in this new Flash player same is not working
    What's weird in the above html code?
    User creates the formatted sentence in Java based applications text editor, which is then being passed to XML file as a string and then to Flash. When user want to embed "&" as a character and provides space after it, Flash Player 10.1.53.64 is not able to understand the html code and the string gets displayed as is in flash player.
    I know the solution to problem, i.e. if I pass string as &lt;b&gt;balh blah blah &amp&amp;nbsp; blah blah&lt;/b&gt; it works fine in new player. But this is just one instance of it. Earlier flash player had no problem with this string? Is it something changed in Flash Layer 10.1.53.64 which is causing some issues.
    What are the things that we need to take care of for similar instances?? Has any one faced similar issues in their code?
    Please let me know.
    Regards,
    Ashish

    We too have noticed a few new nasty parsing differences in the new  10.1.53.64 player.  Not only with '&lt;' and '&gt;' but with  other character entities (named, hex and decimal).  From our analysis it  appears that the new player parses CDATA differently than before.  In  our case we've found that we'll probably have to add '&amp;' to  every character entity by hooking into the XML object's 'onData' method.
    Due to the  volume of content we have changing the source content is out of the  question.
    As far as I can see the only bug that seems to  be logged for this is:  http://bugs.adobe.com/jira/browse/FP-5031
    I would recommend going there and voting to have this addressed.
    I  wish Adobe would acknowledge the issue by either saying it was a  purposeful change or a bug.  My vote is that it's a bug.

  • XMLSocket in AS3

    poor old lowmoose here is having problems with XLMSocket() in
    AS3:
    http://board.flashkit.com/board/showthread.php?t=736240
    me too, i've got very similar problems and reading about the
    trouble lowmoose had i'm wondering: is XMLSocket in AS3 a bit
    broken? AS3 is reasonably new and i can't imagine many people will
    have had experience of using XMLSocket yet so its not out of the
    question that it might have a few bugs that havenn't been
    discovered yet.
    without going into tremedous detail an application that was
    sending and receiving multiple asynchonous data thru an xmlsocket
    in AS2 was working fine. the same app, same code, but in AS3 is not
    working fine.
    can i please ask these two questions
    AS3 users: have you had similar problems with XMLSocket in
    AS3 and if so can you please tell us about them?; and
    AS3 developers: are there known issues with XMLSocket in AS3
    and if so could you share them with us please?
    because i need to decide very quickly about whether i should
    rollback to AS2 or not.....
    thank you! :)

    What is your sandbox set to? "Access local files only" or "Access network only"? It should be set to network once it's live, however 127.0.0.1 is obviously a local loop so you could be getting snagged with that. Try flipping between those sandboxes.
    Also open up TCP on the ports you need if you're using a software firewall.

  • Need Help figuring out security sandbox issue after changing webhost

    I'm in the process of switching my webhost from 1&1 shared hosting to a dedicated IP address with a smaller company that specializes in Drupal sites and doesn't know much about flash. 
    1&1 is still the Registrar for my domain, but I've 'parked' YourGods.com on the Holistic servers and have 'pointed' my site to the Holistic DomainNameServers instead of the 1&1 servers.
    After doing this, my Flash site (which is based on the Gaia framework) stopped working, and the Flashplayer Debugger, gave me the following errors:
    Error: Failed to load policy file from xmlsocket://127.0.0.1:5800
    Error: Request for resource at xmlsocket://127.0.0.1:5800 by requestor from http://www.yourgods.com/bin/main.swf has failed because the server cannot be reached.
    *** Security Sandbox Violation ***
    Connection to 127.0.0.1:5800 halted - not permitted from http://www.yourgods.com/bin/main.swf
    Someone helping me on another thread thought 127.0.0.1:5800 might mean the problem had to do with my paths and that I was trying to access something on my local computer, as opposed to being a standard cross-domain issue where one server was trying to access files on another, unrelated server.
    Can someone clarify this?
    I Googled 127.0.0.1:5800 and found some stuff about loops between a server and the originating computer but I'm really not sure how to put all of this together.
    Is there a way (with the flash debugger or other software) to step through my actionscript code with periodic breakpoints so I can figure out what line is causing the problem?
    Or a way to figure out if this is a problem between Holistic and my local computer or Holistic and the 1&1 web servers?
    Thanks for any help.

    Thanks Josh.
    I finally tracked this down last night with help from the folks at actionscript.org.  I hadn't deactivated my Debugger which runs off of a desktop AIR application - so the server was trying to reach my localhost to run its trace statements.  Deactivating the Debugger fixed the problem. 

Maybe you are looking for

  • How to update the COST column using another table's column

    Dear All, I have table: table parts: pno, pname, qoh, price, olevel table orders: ono, cno, eno, received, shipped table odetails: ono, pno, qty view:orders_view: ono, cno, eno, received, shipped,sum(qty*price)order_costview:odetails_view: ono, pno,

  • CertGenCa.pem is missing in examples domain

    Hello there, I am experiencing a problem with examples.security domain in WLS7.0, one of the Cert files is missing in sslclient, named as "CertGenCa.pem", can someone give me an idea of how can I get this Certificate file, please let me know. Thanks,

  • What is the file name .........

    of the start up screen containing the recent items in "open a recent item"?

  • HT1766 deleting back ups from itunes

    Hi, i have multiple devices, mine, my partners and our kids. i would like to know how to delete each individual back up and start again as my partner has a new device but her back up puts all of my data onto her phone,

  • Medium Write Error when burning

    Every time I attempt to burn a CD, I get the medium write error. I have done everything from use a laser cleaner disc to buy 6 different kinds of CD-Rs - nothing is working. Out of nowhere, every time I try to burn a cd, it either kicks the CD back o