Drag and Drop Tree component, yet another!

Yes, this is another drag and drop tree component 🙂
It was a log I wanted to extends the built-in Flash mx 2004 Tree component in order to allow drag and drop operations.. but time was always my enemy.
I was lucky that i need one for work.. i look around and i founded some cool other similar components, but i wanted to be able to do it by myself 😉
It just extends the base Tree component and you can set some drag and drop rules, just costants..
for example, i set these costants to be used:

  • TreeDnd.DEFAULT
  • TreeDnd.DENYALL
  • TreeDnd.DENYDRAGFOLDER
  • TreeDnd.DENYDRAGITEM
  • TreeDnd.DENYDROPFOLDER

they can be used in combinations:
myDnd.dragRules = TreeDnd.DENYDRAGFOLDER | TreeDnd.DENYDROPITEM
in this way you cannot drag a folder, only leaf nodes, and you cannt drop the dragged item into a leaf node, only into a folder or before/after another leaf node…

[kml_flashembed publishmethod=”static” fversion=”10.0.22″ movie=”/wp-content/uploads/2004/12/example.swf” width=”550″ height=”400″ targetclass=”flashmovie”]

Get Adobe Flash player

[/kml_flashembed]
Download the component here.

AMFPHP, method table automation

Christophe Herreman created a very nice PHP class in order to automate the method table creation inside your AMFPHP class.
In this way, using his class, you can instead of writing every time you create a new PHP class, or just editing it, the code like:

$this->methodTable = array(
"getParkTypes" => array(
"description" => "Returns list of park types",
"access" => "remote",
"arguments" => array ("arg1")
),
"getParksList" => array(
"description" => "Shows list of parks given a park type",
"access" => "remote",
"arguments" => array ("parkType")
),
"getParkDetails" => array(
"description" => "Return details on a park give the parkname",
"access" => "remote",
"arguments" => array ("parkName")
)
);

You can just use this code:

require_once("MethodTable.php");
$this->methodTable = MethodTable::create($this);

The only problem for most of us is that this requires PHP5
Link: http://cherreman.blogspot.com/…automation.html

Idea for SEPY 2.0?

I’m in the way to release a new updated version ( will be 1.0.5.3 ) with some minor fix and some other feature added.
Current deveopement of SEPY will terminate in a few weeks, this is because the code which I stared to write more than one year ago has become too much dirty and new feature i would like to add are quite impossible to integrate in the current developement status.
For this reason I’m planning to write a new version 2.0 from scratch.
I hope to begin for the xmas holidays or for the first days of the next year.
What i would like to ask to you is to send me all the feature request, all the ideas you have about your ideal editor, and send to me. Also ideas for a new logo will be really appreciated!


Please send me at sephiroth_tmm at users.sourceforge.net

Gmail Drive!

I was told this freeware shell extension by one of my co-workers, and it works great. OS support is for all Windows platforms.
It creates a virtual filesystem on top of your Google account and enables to save and retrieve files stored on your GMail directly from inside Windows Explorer. It literally adds a new drive to your computer under the My Computer folder, where you can create new folders, copy and drag’n’drop files to.
One of the things that I can suggest is; using file type icons would be better instead of system file icons in the virtual directories.
More details are here.
Link: http://www.viksoe.dk/code/gmail.htm

FireFox 1.0 is here!

Finally after a long period being in developement, Firefox 1.0 was announced!
It’s a long time this is my default and only browser… I cannot imagine to surf the internet without it actually.
I want to say I have nothing against Microsoft, but the comparison between Internet Explorer and Firefox it’s really embarrassing.

“Beware of spyware. If you can, use the Firefox browser.” – USA Today
“Better than Internet Explorer by leaps and bounds.” – FORBES

Link: http://www.mozilla.org/products/firefox/

MTASC : Motion-Twin ActionScript 2 Compiler

MTASC is the first ActionScript 2 Open Source free compiler.
Right now it’s a command line compiler which get .as files as input and will generate .swf files as output. This means it can be easily integrated into any editor which can run command line tools (such as sepy).
It seems MTASC is more and more quickly than the internal flash compiler:
MTASC is based on the best compiler technology available (namely the OCaml programming language) and thus provide a great speed improvement over MMC (compile around 100 classes in less than 5 seconds).
Since the source code is made more concise by using good technology, it is more easy to maintain and implement robust and proven typing algorithms. The feedback we get from Open Source community help us fixes the bug quickly.

It’s made using OCaml as programming language.
The mailing list is available at this link: http://lists.motion-twin.com/mailman/listinfo/mtasc
For examples, download and bugs refer to the linked MTASC page.

Nightwish, once again!

Really great concert yesterday at the Mazda Palace in Milan!

I was surprised… I couldn’t believe so many people know them here in Italy 🙂

Master! Apprentice! Heartborne, 7th Seeker
Warrior! Disciple! In me the Wishmaster…
A dreamy-eyed child staring into night
On a journey to storyteller’s mind
Whispers a wish speaks with the stars the words are silent in him
Distant sigh from a lonely heart
“I’ll be with you soon, my Shalafi”
Grey Havens my destiny…