Miel. Mobile Internet Explorer Logger

February 24th, 2009

Working in a Windows Mobile Project a realized that it was so hard to debug, because of the lack of a decent debugger. So I wrote MIEL a 7.3k script that let you insert logging in your code. You have 5 levels of logging log, debug, info, warn and error and you can view the source code of the page.

Here the example code:

<html>
    <head>
        <title>Miel Test</title>
    </head>
    <body>
    </body>
    <script type="text/javascript" src="miel.js">
    </script>
    <script type="text/javascript">
        // Init Logger
        miel.logger();

	// Test logging
        miel.log("log");
        miel.debug("debug");
        miel.info("info");
        miel.warn("warn");
        miel.error("error");

	// View Source Code of the actual page
        miel.viewSourceCode();
    </script>
</html>

You can find it in the svn here http://code.google.com/p/yvmobile/source/browse/#svn/trunk/miel

As3 banner rotator and xml

February 24th, 2009

Once again looking in google, and I just did not find any banner rotator in as3 for free. So, here is the as3 code for a banner rotator using xml.

It use QueueLoader , Hydrotween and Falcon. You can use images and swf. Furthermore, you can configure some parameters like the image o swf url and the buttons proporties like x,y and separation.

As all the source code here you can use it in comercial and non-commercial projects.

Art in the example by www.leonjuan.com

DOWNLOAD as3 banner rotator

APACKER – automatizing javascript and css compression

October 25th, 2008

This PHP script let you automatize the .js and .css compression using PACKER Javascript for PHP. You can put all the files that you want to compress in a manifest.txt and then run the script every time you modify the original script.

This script no compress files on the fly. This is the important thing here, not to overload the server making file compression. So its is your work to compress the files every time you modify the original ones.

First, download PACKER Javascript for PHP from http://joliclic.free.fr/php/javascript-packer/en/ and APACKER, decompress the files in the same directory.

Second, for example you have myproject-scr.js and myproject-scr.css files. By convention in the script you must name the files using the style xxxxxxxx-scr.js and/or xxxxxxxx-src.css. Then put this name files in a manifest.txt file one name by line.

Finally, upload all the files to your server and point your browser to http://myserver/apacker.php. APACKER automatically output the files myproject.js and myproject.css in the same directory that the original files.

Download APACKER

ShortLoader. Load images or SWF’s in 1 code line

September 28th, 2008

Sometime ago i was looking for a as3 class that let load and external asset and put a load bar while it was loading. But i did not found any utility so I write ShortLoader.

ShortLoader let you load an external asset a SWF or Image in one code line. Also you can customize easily the loading animation modifying a default library object.