Results 1 to 8 of 8
Like Tree1Likes
  • 1 Post By Zyril

Thread: No reaction of devolper

  1. #1
    JasonK is offline Member
    Join Date
    Feb 2013
    Posts
    3
    Rep Power
    0

    Default No reaction of devolper

    So i payd a Java scriptor to make a chat and now i cant get any answer of him.


    Can someone explain wat this script does ??



    Java Code:
    //class ChatSocket
    package 
    {
        import flash.display.*;
        import flash.events.*;
        import flash.external.*;
        import flash.net.*;
        import flash.utils.*;
        
        public class ChatSocket extends flash.display.Sprite
        {
            public function ChatSocket()
            {
                super();
                flash.external.ExternalInterface.marshallExceptions = true;
                this.socket = new flash.net.XMLSocket();
                this.socket.addEventListener(flash.events.Event.CONNECT, this.onConnect);
                this.socket.addEventListener(flash.events.Event.CLOSE, this.onClose);
                this.socket.addEventListener(flash.events.IOErrorEvent.IO_ERROR, this.onError);
                this.socket.addEventListener(flash.events.SecurityErrorEvent.SECURITY_ERROR, this.onSecurityError);
                this.socket.addEventListener(flash.events.DataEvent.DATA, this.onData);
                flash.external.ExternalInterface.addCallback("connect", this.connect);
                flash.external.ExternalInterface.addCallback("disconnect", this.close);
                flash.external.ExternalInterface.addCallback("send", this.sendCommand);
                flash.external.ExternalInterface.call("setTimeout", "Chat.init()", 0);
                return;
            }
    
            public function connect(arg1:String, arg2:int, arg3:int=20000):void
            {
                this.socket.timeout = arg3;
                this.socket.connect(arg1, arg2);
                return;
            }
    
            public function close():void
            {
                if (this.socket.connected) 
                {
                    this.socket.close();
                }
                return;
            }
    
            public function sendCommand(arg1:String):void
            {
                if (this.socket.connected) 
                {
                    this.socket.send(arg1);
                }
                return;
            }
    
            private function onConnect(arg1:flash.events.Event):void
            {
                flash.external.ExternalInterface.call("setTimeout", "Chat.onConnect()", 0);
                return;
            }
    
            private function onError(arg1:flash.events.IOErrorEvent):void
            {
                flash.external.ExternalInterface.call("setTimeout", "Chat.onSocketError(\'" + arg1.text + "\')", 0);
                return;
            }
    
            private function onSecurityError(arg1:flash.events.SecurityErrorEvent):void
            {
                flash.external.ExternalInterface.call("setTimeout", "Chat.onSecurityError(\'" + arg1.text + "\')", 0);
                return;
            }
    
            private function onClose(arg1:flash.events.Event):void
            {
                flash.external.ExternalInterface.call("setTimeout", "Chat.onSocketClose()", 0);
                return;
            }
    
            private function onData(arg1:flash.events.DataEvent):void
            {
                var loc1:*=new flash.utils.ByteArray();
                loc1.writeUTFBytes(arg1.data);
                var loc2:*=Base64.encode(loc1);
                flash.external.ExternalInterface.call("setTimeout", "Chat.onSocketData(\'" + loc2 + "\')", 0);
                return;
            }
    
            private var socket:flash.net.XMLSocket;
        }
    }

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: No reaction of devolper

    1. What language is it because it is certainly not Java? Is it Javascript? If so, you'll want to Google for a Javascript forum to ask this question.
    2. I sure hope that you didn't pay him much.

  3. #3
    JasonK is offline Member
    Join Date
    Feb 2013
    Posts
    3
    Rep Power
    0

    Default Re: No reaction of devolper

    I thought it was java LOL
    and yes it has cost me a lot

  4. #4
    Zyril is offline Senior Member
    Join Date
    Oct 2011
    Location
    Sweden
    Posts
    124
    Rep Power
    0

    Default Re: No reaction of devolper

    That is ActionScript. Google and find a nice forum as Fubarable said!
    Fubarable likes this.

  5. #5
    JasonK is offline Member
    Join Date
    Feb 2013
    Posts
    3
    Rep Power
    0

    Default Re: No reaction of devolper

    Quote Originally Posted by Zyril View Post
    That is ActionScript. Google and find a nice forum as Fubarable said!
    Sorry about that.. But if anyone know please help :)

  6. #6
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: No reaction of devolper

    Moved from New to Java

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  7. #7
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: No reaction of devolper

    Quote Originally Posted by JasonK View Post
    Sorry about that.. But if anyone know please help :)
    Again this is a Java forum, and your question has no bearing on this language other than sharing C-like syntax.

  8. #8
    noctarius is offline Member
    Join Date
    Jun 2012
    Location
    Remscheid, Germany
    Posts
    61
    Rep Power
    0

    Default Re: No reaction of devolper

    The code just handles dataconnection to the server. It uses ExternalInterface to communicate retrieved data over to JavaScript (I guess to handle the visualization).

Similar Threads

  1. Help needed on reaction time programm
    By young2link in forum New To Java
    Replies: 6
    Last Post: 10-15-2012, 02:22 AM
  2. Replies: 1
    Last Post: 01-15-2012, 02:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •