devwiki:flash

Flash platform based application development

Advantage of Flash:

  • swf output file is supported on web and desktop, even on mobile environment
  • swf can be further converted into “.app”, “.exe”
  • swf can be further converted into AIR package, which supported on Win, Mac, Linux and web
  • Flash has actionscript (coding) and rich-interface components, good for fast easy UI app creation
  • swf can be created used open source app with xml files
  • swf can be dynamically generated on web, like using PHP
  • swf can read and write other media formats like video, sound, text,
  • swf can handle database and xml data

Disadvantage:

  • It is flash, like Java, not fast, small, native enough
  • It is controlled and owned by Adobe

Dev tool:

Object oriented Develop with AS 3.0

  1. create object in runtime from library
    var c:Node = new Node(); 
    addChild(c); 
  2. get and set Object property
    c.x=graph_x;
    c.y=graph_y;
  3. function definition
    function drawNode(){
     trace("hello");	
    }
     
    drawNode();
  4. array
    var newPos:Array = new Array(2);
    newPos=getPos(c);
  5. global variable
    // as long as in the same page, all accessible

ActionScript IDE

Flash Extended development by other developers

  • devwiki/flash.txt
  • Last modified: 2021/08/28 07:49
  • by ying