CNXS puzzle flashgame
Support our free open source projects by playing and spamming our latest flash game.
Enjoy! http://cnxs.disktree.net/
Support our free open source projects by playing and spamming our latest flash game.
Enjoy! http://cnxs.disktree.net/
I’ve started to write a web based multiuser chat, intended to get used mainly by developers. Nothing massiv so far. Last feature i’ve just added: syntax highlight code in serveral languages, which might come in handy.
EDIT:
* Make sure your firewall does not block ports 843, 5222.
* User a HTML5/CSS3 enabled browser.
While adding support for wrapping media files into the according html5 tag (audio or video) to my realtime microblogging application at roar.disktree.net i discovered a nasty situation as follows:
How to know if a file with the ‘.ogg’ extension is video rather than audio from within javascript ?
Possible workarounds to distinguish (in case of my application):
Anyhow, no solution for javascript, so it would be good to agree on:
Or am i overlooking something ?
.. introducing 2 new awesome improvements:
OMG, haXe rules so much ![]()
The latest haXe release (2.03) includes experimental support for flash9 SWC output. Which means you now can use our HXMPP library from actionscript3 without loosing haXe compiler performances improvements. Before this was only possible by generating as3 code which was a bit tricky sometimes.
Download the current HXMPP-SWC from the link below if you are a AS3 developer who dont wants to get hands dirty with the haXe stuff (you propably should). The SWC only includes jabber-client related classes (as HXMPP also supports creating server components ).
Usage is straightforward. Here is an example.
[ HXMPP 0.3.1 SWC ]
[ API documentation ]
Please report detected bugs concerning SWC to the haXe mailing list or HXMPP related things to the the issue tracker.
Based on HXMPP i’ve created a simple example of a web based jabber account registration form. Intention for this is to get used on any user registration where an (additional) jabber account should get created too. The application compiles seamlessly to flash9+ and javascript (flash plugin required for the socket connection) and got tested against openfire and ejabberd.
Note: UI is pretty rough, just for testing purposes.
Note: A list of free jabber services.
Note: Use firebug to show the transfered XMPP.
[ view haXe source code ]
[ download haXe source code ]
BTW: HXMPP 0.3 got released some days ago and is available at code.google.
HXMPP is now also available at code.google for easy access and bug tracking.
For development i am still using a GIT respository which can be cloned from:
git://83.64.208.21/hxmpp.git.
![]()
I am very pleasant to announce version 0.2 of our jabber/xmpp library for building xmpp based clients and components. Its written in haxe and cross targets flash9+, js, php and nekoVM.
Haxe seems to be the a superb platform for this kind of thing, since it targets 2 very attractive platforms in the browser (flash, js), but can also create command line based applications like server-components or bots with very little to null difference in code. The only thing that changes from platform to platform is the socket implementation.
I dont have implemented BOSH so far, but you can use the included (invisible) flash9-socket-bridge for connecting to the server with js applications through “regular” sockets. Which has the drawback of the flash player dependency but gives a small (13k), stable connection manager that often feels much more reliable than hakish BOSH connections, at least in firebug;) And…, since disktree.net uses flash in most web based applications anyway, the dependency drawback is kinda irrelevant.
Check the demos in /demos/*.hx for usage.
Hope to see some nice applications! The possiblilities are endless!
[ README ]
[ DOWNLOAD ]
[ API-DOC ]
[ 83.64.208.21/home/tong/git/hxmpp.git ]
Example of usage from plain javascript (without the need of the haxe compiler).
http://paste.disktree.net/34
I am currently working on a programable mutliuser chat bot named ZOD. Visit haxe@conference.jabber.org, with luck, you may experience the impregnation of an artificial intelligence, live and in realtime.
The changed security settings in flash player >= 9,0,124,0 does not allow you to make a socket connection directly to a server without first obtaining explicit permission from that server in form of a policy-file-request. Follow this article for more information and the flash-policy servers written in perl and python adobe is providing.
I thought it would be nice to have a neko one, so it shall be developed ( using haXe of course ). Thanks to the neko.net.ThreadServer class writing a multi threaded socket server is an easy task.
[flash-policy-server-source.zip]
This could easy be extended with db-logging, .., whatever.
Follow this link for a neko.net.ThreadServer tutorial.
Follow this link for listening to audio tracks produced by myself in between somthing about 2004- 2006. The flash audio player is experimental work providing a basic mediaplayer framework for controlling av media content in flash via an external interface.
From the project description:
WMPE ( short for web media player enviroment ) is a javascript framework written in haXe to provide connectivity to and from mediaplayers emebed in websites.
It provides external interface connections:
* to flash9+ mediaplayers.
* from mediaplayers to controls ( flash or html )
The pros of this approach:
* less loading, no need to embed multiple swf-playback engines.
* centralized audio playback.
* centralized configuration.
* centralized playlist management.
( * sidebar player )
To the title of this blog post: The tracks were produced under the (inactive) music-label sperrplan. Superposition is an upcoming music project from a friend of mine ( for which the player engine gets developed ).
Here comes the flash from my haXe game of life implementation before the programming paradigm “loose interest after implementing the basics” (one of my best friends ) moves this project into some kind of trash.
The Game of Life is a cellular automaton devised by the British mathematician John Horton Conway in 1970. It is the best-known example of a cellular automaton.
i’ve started a new branch using the new flash player 10 3D api and will drop the ugly hacks to have a third dimension completely. So this is the last version for fp9.
Currently i am limited to do some experiments and learning the new api using as3 and the mxmlc compiler cause haxe does not fully support fp10.
( btw, if you have’nt noticed: flash player 10 RC is availbale at labs.adobe.com since 8.11.8 )
[ holo_0.1.2.zip ]
[ skybox_example.swf ]
[ material_example.swf ]
cause this branch is kinda dead, i dont want to get into details about the changes.
.. read the sources and check the demos.
if anyone is interested in doing further develoment. justdoit! and let me know!
Please mind that if you want to have solid 3D in flash but using haXe you are better creating external bindings to one of the existing as3 libs, which works nice for away3D at least.
I’ve upgraded my APE ( 2D physics engine ) port to work with haXe2.
[ sources.zip ]
holo is an open source 3D engine written in haXe ( 1.19 ) targeting flash9.
A lot of core stuff is ported from the away3D engine ( which i liked most in terms of design, while studying ).
For now, the runtime target isn’t abstract ( the hx way ), means there is no support for other platforms than flash9 ( soon flash10 ). After studying actionscript3 3d libraries, i thought it would be a great drawback for not using the flash api in respect for designing the display system and the render pipeline and would end up in #if #else hell. Also the performance loss would be nonexcusable. A haXe quicksort of the drawable primitive objects takes about five time than flash.Array.sortOn().
A little performance profit compared to as3 versions should come through the inlining of the math methods and the usage of haxe.FastList ( sadly most collections need an index ).
I have not tested with engine itself right now but:!
Matrix4×3 multiply of two empty matrices:
AS3 ( away3d version ) : 1722 ms
HX : 47 ms
Should have an impact! ( i should doublecheck this, to prove its amzingly true .. later )
Sadly, in flash, rendering takes it all. I’ve only discovered “feelable” performance improvements with render related stuff like backface culling. Maybe this changes with the gain of complexity in the scene.
I do not have model importer rigth now, but have rewritten a AS3 export python script for blender which is included in the sources.
[ BlenderTorus.swf ]
[ BlenderMonkey.swf ]
[ Fluid.swf ]
Current code is written for haXe 1.19.
[ holo.0.1.zip ]
[ git clone git://83.64.208.21/home/tong/git/holo.git ]
[Edit]
The matrix multiplication performance comparison above isn’t valid, because the as3 version was tested in debug player.
After all, 10000000 matrix43 multiplications on release player:
as3 ( away3d ): ~550ms
haXe version: ~460ms
I knowed that the debug player is slower, but thought about a x0.5 rather than x35.
Next,