0 Replies Latest reply on Apr 20, 2012 7:21 AM by ReshapeMedia

    What is Ganzior

    ReshapeMedia
      What is Ganizor

      (Open source - http://sourceforge.net/projects/ganizor/) - Try it now, examples included!


      Ganizor is a PHP library designed and developed for Flash and HTML 5. The system uses FTML for quick toggling between both Flash and HTML 5, but also has future plan for [Pure States] where Ganizor can be loaded as a raw SWF or raw HTML 5.

       

      Here is a working example of Ganizor in  action.

       

          //add some kids

          $container = new Container();

          $container->relativeChildSize = true;

       

          $label = new Label();

          $label->text = 'My Label';

       

          $button = new Button();

          $button->label = 'My Button';

          $button->bold = true;

       

          $box = new VBox();

          $box->gap = 10;

       

          //layout

          $box->addChild($label);

          $box->addChild($button);

          $container->addChild($box);

       

          //always use [addChildToStage] to add display

          //elements to the render list

          addChildToStage($container);

       

      That does just what you think it should and builds the display list as it would in Flash.  This is all done in PHP and does not require you to switch sandboxes.

       

      (Open source - http://sourceforge.net/projects/ganizor/) - Try it now, examples included!

       

      - its only getting better!