devwiki:flash

Differences

This shows you the differences between two versions of the page.


devwiki:flash [2021/08/28 07:49] (current) – created ying
Line 1: Line 1:
 +====== 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:
 +  * free tool but not for freedom: [[http://www.adobe.com/products/flash-builder-family.html|Adobe Flash Builder]] (IDE) (link for free RIA IDE: [[https://freeriatools.adobe.com/|Flash Builder non-commercial]], Note: you need to wait for Adobe's check and approve, can be considered that as non-free option)
 +  * free tool and for freedom: [[http://swfmill.org/|xml2swf SWFmill]] [[http://code.google.com/p/minibuilder/|MiniBuilder]] [[http://www.flashdevelop.org/community/|FlashDevelop]]
 +  * best free option (mxml to swf compiler) (so-called Flex) [[http://opensource.adobe.com/wiki/display/flexsdk/Flex+SDK|free Flex SDK from Adobe open-source]]
 +
 +
 +====== Object oriented Develop with AS 3.0 ======
 +
 +  - create object in runtime from library <code actionscript>var c:Node = new Node(); 
 +addChild(c); </code>
 +  - get and set Object property <code actionscript>
 +c.x=graph_x;
 +c.y=graph_y;
 +</code>
 +  - function definition <code actionscript>
 +function drawNode(){
 + trace("hello");
 +}
 +
 +drawNode();
 +</code>
 +  - array <code actionscript>
 +var newPos:Array = new Array(2);
 +newPos=getPos(c);
 +</code>
 +  - global variable <code actionscript>
 +// as long as in the same page, all accessible
 +</code>
 +
 +====== ActionScript IDE======
 +
 +  * MiniBuilder online: http://code.google.com/p/minibuilder/
 +  * FlashDevelop: http://www.flashdevelop.org/wikidocs/index.php
 +
 +====== Flash Extended development by other developers======
 +
 +  * Flash based 3D engine
 +    * Alternative Platform: http://alternativaplatform.com/en/support/setup/
 +      * demo http://alternativaplatform.com/swf/demos/mobilephone/mobilephone.swf