SE|PY MAC mailing list added

Due to the growing requests for help on compiling sepy on mac I’ve decided to create a dedicated mailing list.
By the way, I hope to make some tests on a mac by the end of this summer, i really would like to offer a product as much as possible cross-platform.. actually the big problem for me is that i haven’t a mac
These are the current mailing list for SE|PY:

sepy-macdev
Compile and develop SEPY on MAC system

sepy-developement
discussions about SE|PY develpement, features, python-flash related

sepy-cvs
If you want to be informed on cvs commits

Flash Updater 7.2 available now!

Flash 7.2Version 7.2 of Macromedia Flash MX 2004 and Flash MX Professional 2004 is now available with improvements in performance, stability and documentation.

What’s changed?
* Faster initial launch time
* Compile times up to twice as fast
* More than 400 additional code examples
* Additional documentation on working with components
* Over 100 bug fixes. Read the details in the release notes.

The updater is available for the English version of Flash only, it seems others language we have to wait till end of summer.

Also a new class has been added: mx.utils.Delegate
and here a sample of usage:

import mx.utils.Delegate;
myDataGrid.addEventListener("change",Delegate.create(this,onMyDataGridChange));
myComboBox.addEventListener("change",Delegate.create(this,onMyComboBoxChange));
function onMyDataGridChange(eventObj:Object):Void{	trace("myDataGrid change event fired");}

function onMyComboBoxChange(eventObj:Object):Void{	trace("myComboBox change event fired");}

SE|PY ActionScript editor 1.0.3.3

I’ve just uploaded a new version (1.0.3.3) of SEPY ActionScript Editor.
In this version:

  • Minor graphical changes
  • fixed: [ 994202 ] Cancel New project Error
  • fixed: [ 994203 ] Missing tooltip (minor bug)
  • Removed “;” after closing bracket “}” in the autoformat code.
  • Added option for use the auto-indent feature
  • Switched to wxPython 2.5.2.3pu-20040722
  • Changes in the Flash Help window.

Download the Windows installer
Download the source code

As always, thanks to all the people who help me with bugs reporting. It’s essential for the project development.
P.S. I’ve noticed that python group just released the first alpha of python 2.4. Once released the final release I will switch to the new version.

Installing PHP5 on Apache server

Today i was trying to install the new PHP5 module on my local apache server.
It’s really simple at least, but when searching for instructions i discovered WAMP5, which includes in the installation:

  • Apache 1.3.31
  • PHP 5.0.0
  • MySQL 4.0.18
  • PhpMyAdmin 2.5.7
  • sqlitemanager

I’ve immediately installed it 😉
Once installed you’ll see a new tray icon with some options for your installed services.
I sugges it if you are thinking to install PHP5 on your local machine (i have also a separate apache/php4/mysql3 framework on my machine too, in this way i can always switch trought the two version of PHP/MySQL)

PHP 5.0.0 Released!

Finally, after months of release candidates…
Some of the key features of PHP 5 include:

* The Zend Engine II with a new object model and dozens of new features.
* XML support has been completely redone in PHP 5, all extensions are now focused around the excellent libxml2 library (http://www.xmlsoft.org/).
* A new SimpleXML extension for easily accessing and manipulating XML as PHP objects. It can also interface with the DOM extension and vice-versa.
* A brand new built-in SOAP extension for interoperability with Web Services.
* A new MySQL extension named MySQLi for developers using MySQL 4.1 and later. This new extension includes an object-oriented interface in addition to a traditional interface; as well as support for many of MySQL’s new features, such as prepared statements.
* SQLite has been bundled with PHP. For more information on SQLite, please visit their website.
* Streams have been greatly improved, including the ability to access low-level socket operations on streams.
* And lots more…

http://www.php.net

Flash remoting for python

Yesterday I received an email form Vsevolod ILyushchenko announcing me the alpha version of Flash remoting for python!
http://simonf.com/amfpython/. There are also many examples here: http://simonf.com/amfpython/code.html

Second update: Serializer Class 2.1
There is a bug fixing with in special chars lenght, thanks to Rainer Becker. The new mxp file is available on the sourceforge site.

Last thing. I’ve just uploaded an example which Daniel Tavelli send me.
An example of Xpath usage in flash mx 2004 using the xfactorstudio xpath class for ActionScript

PEAR::SWF updating… read and modify swf with PHP

I’ve just begun to modify the old PHP class flashHeader. Now using the PEAR::File class for a better file I/O processes.
Basically now, other than returning all the main information from an swf file, such as the bg color, framerate, player version, compression, protection used, movie size.., it allows to modify some of those parameters.
For example it can change the framerate, background, protection… I’m also working in order to allows the class modify some other swf tags in runtime..
Working example

Here the source file

<?php
// include the PEAR package
require “File/File_SWF.php”;
$flash = new SWF(“source.swf”);
if(
$flash->is_valid()){
$stat = $flash->stat(); // this give all the info
// and also..
$fps = $flash->getFrameRate();
$size = $flash->getMovieSize();
$bg = $flash->getBackgroundColor();
$prot = $flash->getProtected();
$compr = $flash->getCompression();
$version = $flash->getVersion();

// they can be changed…
$flash->setFrameRate(60);
$flash->setProtected(1);
$flash->setBackgroundColor(51,51,204);
$flash->setCompression(1);

// and write a new file…
$flash->write(“./new_one.swf”,1);
}
?>