Lorem Ipsum – All the facts – Lipsum generator

April 29, 2008 · Posted in General, Tools · Comment 

Lorem Ipsum – All the facts – Lipsum generator

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec convallis feugiat nisl. Sed vitae odio. Quisque quis sem a sapien pretium pharetra. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed tortor sem, dictum eu, sagittis eu, porttitor quis, massa. Vestibulum lorem nisl, molestie id, commodo quis, scelerisque at, dolor. Aenean bibendum tincidunt est. Aenean mollis. Suspendisse sagittis, ligula eu adipiscing viverra, lorem turpis feugiat magna, id bibendum lectus libero eu ligula. In sagittis sodales mauris. Vivamus at leo eget nisl porta posuere. Vestibulum id purus. Phasellus eu justo elementum erat euismod euismod. Fusce cursus quam sed massa. Phasellus sed leo. Sed feugiat.

You get the picture!

Preloading in AS3

April 27, 2008 · Posted in AS3, Flash · Comment 

The process of preloading in AS3 is quite different to AS2. In my AS2 projects I often use a small (<20K) loading progress indicator to preload the larger application SWF. Once the main SWF is completely loaded, I would then replace the preloader content with that of the application.

One easy alternative to this is to add the loaded application content directly to the stage instance of the preloader.

My preloader code:

package  {
    import flash.display.DisplayObject;
    import flash.display.Loader;
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.events.ProgressEvent;
    import flash.net.URLRequest;

    /**
    * ...
    * @author Zu
    */
    public class Preloader extends Sprite {
        private var loader:Loader;

        public function Preloader() {
            loader = new Loader();
            loader.contentLoaderInfo.addEventListener( Event.INIT, onLoadInit );
            loader.contentLoaderInfo.addEventListener( ProgressEvent.PROGRESS, onLoadProgress );
            //The name of the application file to be loaded is passed in through flashvars or query string.
            //Assuming that I've named my flashvar as FILE
            var sAppFile:String = loaderInfo.parameters["FILE"];
            loader.load( new URLRequest(sAppFile));
        }

        private function onLoadProgress(e:ProgressEvent):void {
            //simple trace to see the loading progress.
            //code some sort of visual indicator of progress
            trace( e.bytesLoaded );
        }

        private function onLoadInit(e:Event):void {
            //add the loaded application to the stage
            stage.addChild(loader);
	    //remove the preloader
	    this.parent.removeChild(this);
        }

    }

}

This can easily be modified to preload multiple files.

ZK – #1 Ajax and Mobile Framework

April 24, 2008 · Posted in General, JavaScript · Comment 

ZK – #1 Ajax and Mobile Framework

ZK framework offers a quite a comprehensive set of UI components, windowing, scripting and many other cool features. The ZUML markup looks very easy to pickup for anyone with a bit of HTML background.

It’s built with Java and runs on Tomcat.

The documentation looks to be at a mature state.

Well worth further investigation…

RegExr: Online Regular Expression Testing Tool

April 21, 2008 · Posted in AS3 · Comment 

Very useful Regular expression builder/tester tool by Grant Skinner – props!!!

RegExr: Online Regular Expression Testing Tool

Creating ActionScript 3.0 components in Flash

April 18, 2008 · Posted in AS3, Flash · Comment 

Adobe – Developer Center : Creating ActionScript 3.0 components in Flash

Helpful Resources For Learning Flex

April 11, 2008 · Posted in Flex, Tutorials · Comment 

LFFS – 7: Helpful Resources For Learning Flex (part one) – InsideRIA

The article is a great compilation of various Flex resources available.

Modest Maps

April 2, 2008 · Posted in AS2, AS3, Flash · Comment 

Modest Maps

This seems like a great opensource mapping/tilling  engine for use with NASA, Google maps and other map providers.

Old fav Sinclaire ZX games in Flash

April 2, 2008 · Posted in Games · Comment 

This is pretty sweet – Green Beret used to be my most fav game!

ZX games

The Flash Blog » New Video Tutorial on Binary Socket Fundamentals

April 2, 2008 · Posted in AS3, Flash · Comment 

The Flash Blog » New Video Tutorial on Binary Socket Fundamentals

Lee has added this really useful video tutorial. This will come in very handy, no doubt!

Papervision3D: Part 1- Foundation and 3D Object Basics – InsideRIA

April 1, 2008 · Posted in AS3, Flash, Tutorials · Comment 

Papervision3D: Part 1- Foundation and 3D Object Basics – InsideRIA

Excellent intro to get you started with the latest PV3D engine.