Archive for the ‘Links’ Category

Links: Design Patterns

May 27, 2010
  1. Structural Patterns – Facade Patternhides the complexities of system from the client and provides a simpler interface, see there as well
    (list of patterns as in book “Design Patterns, Elements of Reusable Object Oriented Software” by E.Gamma, R.Helm, R.Johnson, J.Vlissides):

    1. Creational Patterns:
      1. Factory Pattern
      2. Abstract Factory Pattern
      3. Singleton Pattern
      4. Builder Pattern
      5. Prototype Pattern
    2. Structural Patterns:
      1. Adapter Pattern
      2. Bridge Pattern
      3. Composite Pattern
      4. Decorator Pattern
      5. Facade Pattern
      6. Flyweight Pattern
      7. Proxy Pattern
    3. Behavioral Patterns:
      1. Chain of Responsibility Pattern
      2. Command Pattern
      3. Interpreter Pattern
      4. Iterator Pattern
      5. Mediator Pattern
      6. Momento Pattern
      7. Observer Pattern
      8. State Pattern
      9. Strategy Pattern
      10. Template Pattern
      11. Visitor Pattern
  2. Entry-Point Function Definition: Microsoft DLL
  3. QueryInterface retrieves pointers to the supported interfaces on an object


Links: Definitions

May 17, 2010
  1. Hash tables (hush function), “to quickly locate a data record (for example, a dictionary definition) given its “search key
    Associative arrays, dynamic sets.
  2. Namespaces: tutorial from Grant Skinner
  3. Matrices in AS3: tutorial from Senocular
  4. Matrix: analog of  “MovieClip.localToGlobal(point)” on Matrix level:

import flash.geom.Matrix;
 * "Global" matrix of nested MovieClip
 * @author Sergei Nikiforovski, 2010
 * note: as2 !
public function getMc_nestedMatrix( mc:MovieClip ):Matrix
 var m0:Matrix = mc.transform.matrix;

 var mc2:MovieClip;
 var m:Matrix = new Matrix();

 for (var s in mc) {
 if ( typeof( mc[s] ) == "movieclip" ) {
 mc2 = mc[s];
 m = getMc_nestedMatrix( mc2 );

 m.concat( m0 );
 return m;

Links: AS3 code to use

May 17, 2010
  1. Bulk loader – getting started:
    var loader : BulkLoader = new BulkLoader(“main-site”);
    loader.add(“background.jpg”, {id:”bg”});
    loader.add(“/unreliable-web-service.xml”, {maxTries:6});
    loader.addEventListener(BulkLoader.COMPLETE, onAllLoad):
    Developer guide.
  2. Debugging
    a). as3 hidden treasure in the mm.cfg fiel. Revealing and documenting many Flash secrets,
    – Windows, C:\Documents and Settings\username\mm.cfg
    b). Socket output server: SOS-max
  3. Tween, animations:
    a). Greensock: TweenLite, TweenMax, TweenNan
    b). Caurina tweener
  4. Component’s framework:
    a). AsWing, code download
    b). Minimal comps (BIT-101Peters Keith)  –  Google code
  5. External Interface:
    a). Buffer Source Code,
    b). Adobe example

Links: Flex, AS – PHP

May 17, 2010

1. Back end links:

  • Flex – building remote endpoint by Kevin Scroeder (browse for Zend posts there !), using Zend Framework. Provide data access layer;  ability to use components;  Zend studio, Zend_tool; MVC design pattern. Auto-created Folder’s structure: apps.configs, apps.controllers, apps.models, apps.views, apps/Bootstrap.php, docs, library, public, test; Two classes which extends zend’s Zend_Db_Table_Abstract, Zend_Db_Table_Row_Abstract. Service.php functions: getAll..(), get..ByID(), create..(); gateway.php; bootstrap.php
  • Flex and ZendFramework