Wed 4 Jan 2006
I have written newsgroup reader before, using Flash+PHP. Nowadays, ActionScript 3 has Socket Class, which can directly connect to NNTP Server, therefore I written this Flex2 version (swf, source). Written NNTP is not hard, I just used 3-4 hours, but solving the Chinese encoding problem, waste me 2 days, I have referenced 雲開’s and qhwa’s idea. Finally, I found that flash.system.System.useCodePage = true sounds like has not implemented in Flash Player 8.5 yet, so I gave up, I will write my own UTF-8 convert program in the future spare time (Java version). My original idea is writing a mature application, e.g: threading, paging, Base64 (discovered Flash has Base64Encoder Class but no decoder) and quoted-printable encoding conversion, attachment, subscribe newsgroup before release to public. Due to the basic Chinese encoding problem that I even cannot handle, so gave up. Release this demo with the source code: mxml, for interested people as a reference, study or improvement.
|
During the coding process, I found few problems, I hope that it is Flex2 alpha version not stable, or my knowledge is not enough. For example: TextArea Component vPosition is not work, ComboBox return null easily, useCodePage is not work…etc
Note: swf has to view locally, view it online will be blocked byFlash Player sandbox.
Other References


January 11th, 2006 at 3:54 pm
[...] NNTP [...]
September 15th, 2006 at 6:05 am
[...] NNTP [...]
June 27th, 2008 at 10:28 pm
[...] NNTP [...]
February 11th, 2009 at 1:20 am
[...] ActionScript 3.0 documentation >>10 sites labs.macromedia.com ActionScript 3 Language Reference AS3.0 Error and Warning Codes Flex Builder 2 - build your AS3 examples ActionScript 3 Wiki ActionScript 2 to ActionScript 3 Migration Guide Regular Expression Introduction E4X Actionscript 3 - New Capabilities Guy Watson Brief overview of AS3 (list of new commands) ActionScript 3.0 Sockets examples >>6 sites Email (POP3) IRC NNTP VNC AIM MSN ActionScript 3.0 Misc examples >> 21 sites Implementation of gettext in AS3 Alessandro Crugnola aka Sephiroth (for localization of interface) Encoding PNGs in ActionScript 3 Tinic Uro (source code) Encoding JPEGs in ActionScript 3 Tinic Uro (source code) Moving circle (source code) DisplayListTest (source code) Moving MovieClips in AS3 (source code) Mosaic from JPEG (source code and example) Msn Messenger in Flex 2.0…Almost!?!?!? Security??? AS 3 Experiment: Bouncing balls Betaruce (source and example) AS 3 Experiment: Animated Plasma Betaruce (source and example) AS 3 Experiment: Asteroids RocketBoots ( example) 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 oldschool tunnel (source + example) AS3 Bumbmaps (source + example) How to use Sockets in Actionscript3? (source) Lightning particlesAndre Michelle (9 different sources + examples) AS3 wavemapAndre Michelle ( source) VectorJunkie AS3.0 experiments There is more different experiments ActionScript 3.0 - 3D >> 4 sites AS3 perspective texturemapping Andre Michelle (parse 3ds - 3dMax file and render it) AS3 Pixelbased raycasting engine AS3 vector 3D class (source code) AS3 Raycaster Andre Michelle ActionScript 3.0 Sound >> 5 sites Sound Spectrum Example (source code) Sound Spectrum Example Muzak (player 8.5 needed) AS Spectrum (.zip file) Waveform display example(example - Player 8.5 needed) AS3 music controlled visualizer(source code + example - Player 8.5 needed) ActionScript 3.0 Text >> 1 site What character is under the mouse? G.Wygonik (source code) ActionScript 3.0 Webcam >> 1 site AS3 : Webcam labs Den Ivanov (example - Player 8.5 needed) ActionScript 3.0 Tutorials >> 17 sites Actionscript 3 - Keyword virtual and override Firdosh Tangri (source) Actionscript 3 - Keyword final and const Firdosh Tangri (source) Actionscript 3 - First steps (first class) Actionscript 3 - First steps II (flash.util.trace) Actionscript 3 - First steps III (describeType) Actionscript 3 - First steps IV (Drawing API) Actionscript 3 - First steps V (Create MovieClips - not attachMovie or createEmptyMovieClip) Actionscript 3 - First steps VI (Shape, Sprite - not only MovieClip) Actionscript 3 - First steps VII (interactivity) Actionscript 3 - First steps VIII (mouse events) Actionscript 3 - First steps IX (Delegation) Actionscript 3 - First steps X (publishing options) Actionscript 3 - First steps XI (Object) Actionscript 3 - First steps XII (Events) Actionscript 3 - First steps XIII (E4x) Actionscript 3 - First steps XIV components in AS3 Actionscript 3 - First steps XV (Embeding extern swf and play it) ActionScript 3.0 Performance examples >> 9 sites AS3.. 100 times faster? Flash Player 8.5 performance check Oddhammer Fluid Demo - 5000 particles Ralph Hauwert - 11 % CPU on my 2.5Ghz AS3: Pathfinder in big mazes Franto - (sources and examples, AS2, AS3) More AS3 performance tests JS, Flash7, Flash8, AS3 Oddhammer - (results table + sources) 150 circles coliding Andre Michelle (source) Mandelbrot explorer Ralph Hauwert Cloth simulation - Verlet Algorithm Franto AS3 optimations & suggestions Andre Michelle Other ActionScript 3.0 Collections >> 1 site Betaruce Actionscript 3 collection If you have another sources for ActionScript3.0 and Flash player 8.5 add them to comments, and i will update collection. Thanks. Enjoy. [...]