Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Aswing IRC Client Component
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Skitsanos  
View profile  
 More options Jan 14 2008, 12:27 pm
From: Skitsanos <skitsa...@gmail.com>
Date: Mon, 14 Jan 2008 09:27:18 -0800 (PST)
Local: Mon, Jan 14 2008 12:27 pm
Subject: Aswing IRC Client Component
Guys,

Good news for you, i've started porting some of the components i've
made past few years for .NET framework into ActionScript, first thing
i want to present you is IRC Client Component for Aswing, i've
uploaded first beta on SVN already so basically you can start working
with it.

Below you can find sample of IRC bot made with IrcClient component:

package
{
        import flash.display.Sprite;

        import org.aswing.net.irc.IrcClient;
        import org.aswing.net.irc.events.IrcEvent;
        import org.aswing.util.StringUtils;

        public class IrcClientTest extends Sprite
        {
                private var irc:IrcClient;

                public function IrcClientTest():void
                {
                        super();
                        irc = new IrcClient();
                        irc.server = "irc.freenode.net";
                        irc.port = 6667;

                        irc.nickName = "as3_bot";
                        irc.realName = "ActionScript 3 Client";

                        irc.addEventListener(IrcEvent.ERROR, __irc_error);
                        irc.addEventListener(IrcEvent.CONNECTED, __irc_connected);
                        irc.addEventListener(IrcEvent.STATUS, __irc_status);
                        irc.addEventListener(IrcEvent.CHANNEL_MESSAGE,
__irc_channel_message);
                        irc.addEventListener(IrcEvent.PRIVATE_MESSAGE,
__irc_channel_message);

                        irc.connect();
                }

                private function __irc_connected(e:IrcEvent):void
                {
                        irc.join("#aswing");
                }

                private function __irc_channel_message(e:IrcEvent):void
                {
                        var channel:String = e.ircData.channel;
                        var msg:String = e.ircData.message;

                        if (StringUtils.startsWith(msg, "!"))
                        {
                                irc.say(channel, "i can't handle this commnad");
                        }
                }

                private function __irc_status(e:IrcEvent):void
                {
                        //trace("status: " + e.ircData.message);
                }

                private function __irc_error(e:IrcEvent):void
                {
                        trace("ERROR: "+e.ircData.message);
                        if (StringUtils.startsWith(e.ircData.message, "Closing Link"))
                        {
                                irc.connect();
                        }
                }
        }


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
iiley  
View profile  
 More options Jan 14 2008, 8:31 pm
From: iiley <iiley.c...@gmail.com>
Date: Tue, 15 Jan 2008 09:31:25 +0800
Local: Mon, Jan 14 2008 8:31 pm
Subject: Re: Aswing IRC Client Component

Great news, is there a online demo to play with? :)

--
iiley
AsWing http://www.aswing.org
Personal http://www.iiley.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Skitsanos Labs  
View profile  
 More options Jan 15 2008, 8:40 am
From: Skitsanos Labs <i...@skitsanos.com>
Date: Tue, 15 Jan 2008 05:40:41 -0800 (PST)
Local: Tues, Jan 15 2008 8:40 am
Subject: Re: Aswing IRC Client Component
not yet, but i (or someone who has more free time) will do it for
sure.

On Jan 15, 3:31 am, iiley <iiley.c...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Skitsanos  
View profile  
 More options Jan 18 2008, 8:44 am
From: Skitsanos <skitsa...@gmail.com>
Date: Fri, 18 Jan 2008 05:44:15 -0800 (PST)
Local: Fri, Jan 18 2008 8:44 am
Subject: Re: Aswing IRC Client Component
Guys,

I've uploaded some more updates for IrcClient on SVN, please update
your files.

There are couple of changes you have to know about,

in code snippet that posted initially in this forum thread you will
see

irc.addEventListener(IrcEvent.CONNECTED, __irc_connected);

ideally you better use

irc.addEventListener(IrcEvent.READY, __irc_connected);

This will make sure that your channel join request or any other
channel/user related command is performed on the right moment.

Cheers,
Evi.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »