THIS IS OUT OF DATE. CHECK THE NEWER VERSION HERE
I started working on my Flash IRC Client (flIRC) some time before Flash 8.5 was released. Now two days later I want to show you the first demo of my little project and experiment. You can see a very early version here.
Ther is still a lot of work to do but you can already join channels and talk. Private messages to other users are not supported yet like a lot of events like JOIN/PART/KICK/MODE etc. Please remember Flash 8.5 is now only two days old and I never used this Flex stuff before.
The application:
I am using Flex2. This is not an AS3 only project so I have got my code in theese mxml files which is a little bit confusing at the beginning but you will like it because you can be very fast. I do not care about application states, I do not care about initializing components and all this stuff. It is very easy to use. Even the alignment of the elements can be done by Flex.
Connection:
As I wrote one day ago there is a problem with the security model of Flash. The workaround is quiet simple and has nothing to do with Flash directly. I installed a proxy on my shell and just forward every connection to irc.quakenet.org. The only problem is that the connections are not client-side only.
Macromedia should handle a socket request like using the camera. A simple dialog box would make life easier.
Other problems:
The TextArea seems to be very buggy. I wont blame Macromedia for this because it is only an Alpha. But one problem is very annoying. If you use htmlText and add a lot of text very fast (while-loop for example) then the TextArea won’t display all the text you appended to it.
The workaround is using a simple flash.util.Timer and an Array where all messages get stored. On every tick one message gets added.
Most IRC clients do not support UTF-8 encoding. The socket got a writeUTFBytes() function but all the special german characters look wrong on other clients. The solution here was using a simple byte array which gets filled by a string. Most of the communication is now located in an own class called IRCSocket.
Using textarea.vPosition = textarea.maxVPosition; worked for me in Flash 8. This does not seem to work in 8.5 so currently the text wont scroll.
Links:
THIS IS OUT OF DATE. CHECK THE NEWER VERSION HERE
9 Comments
What kind of Addon is the bar in your browser?
It is the WebDeveloper toolbar.
Cool dude well done
Im interested in creating a FLASH IRC Client, there are plenty out there, but many work on their OWN servers which must be downloadeded to us the socket, could you explain very quickly how to get a flash irc client to connect to a server and send/recieve data? or even help me on my way ?
Hi
we are looking for a flash irc client like this.
Is it possible to buy it or buy the code?
thanks
The 8.5 player is still not released and the Flex2 Builder Alpha is for testing purposes only.
I could think about creating such an application when AS3 is finally released.
oh god you are so cool !!!
how did u make that !
Pls reupload
have source?
7 Trackbacks
[...] some kind of request it might be some time to explain detailed how I used the Socket in my IRC client. First of all I will explain how to bypass the securitymodel. I wrote about this before bu [...]
[...] =”_blank”> Handle Socket-Data depending on CRLF (source) Security model and Flash 8.5 flashIRC – First Steps in Flash 8.5 and Flex (example) AS3 oldschool fire (source + example) AS3 o [...]
[...] send it back!?.. grr… – recreating Darron Schall’s VNC client !? – recreating Joa’s FlIRC client !? – recreating a web-browser – making a Flash base web-crawler that spiders the web… [...]
ActionScript 3.0 站点集合
转自(http://bbs.javascript.com.cn/read.p…=1604&fpage=1)ActionScript 3.0 collection 68 sitesActionScript…
[...] under Coolsite Email (POP3) http://spbarber.com/blog/pop3-socket-example-using-flex-2/ IRC http://blog.je2050.de/?p=35 NNTP http://luar.com.hk/blog/?p=647 VNC http://www.darronschall.com/weblog/archives/000190.cfm AIM http://lab.zeusdesign.n [...]
[...] a demo version. Not all features of the IRC protocol may work properly. Links: flIRC Old post about flIRC
zero comments so far »
Please won’t you leave a commen [...]
[...] IRC [...]