SlideShare una empresa de Scribd logo
1 de 28
Descargar para leer sin conexión
Open Source Flash 101


  'G' Gaurav Narain Saxena
   Akron Linux User Group
       January 7, 2010
Outline
●   Flash
●   ActionScript
●   Open Source Adobe
●   Open Source Flash
●   Salasaga
●   mtasc
●   swfmill
●   Swftools
●   References
Flash
●   "Like television for internet users"
●   Written in C++
●   Allows you to:
        –   Annotate web page with:
                ●   Animation, adverts, other flash components
                ●   Navigation – RIA
                ●   Streams of video
●   Proprietary
Flash
●   Concepts
       –   Timeline
       –   Stage
       –   Objects
       –   Controls
       –   etc.
Flash
ActionScript
●   Javascript for HTML= ActionScript for Flash
●   Scripting language based on ECMAScript
●   Extension: .as
●   Main points:
         –   Cross platform
         –   Manifested in flash and flex – platforms
         –   Designed by Gary Grossman (1998)
         –   Versions: AS3, AS2
ActionScript
Example (AS2): HelloWorld.as
class HelloWorld extends MovieClip
{
public function HelloWorld() {}
public function onLoad:Void{
    var txtHello:TextField = this.createTextField(
        “txtHello”,0,0,0,100,100);
    txtHello.text = “Hello, World!”;
}// displays 100x100 box with “Hello, World!” in it.
Open Source Adobe
●   Flex SDK
        –    Cross platform framework; provides compilers,
              libraries, debugger
●   Adobe-Mozilla Tamarin
        –   Open engine for ActionScript 3
●   BladeDS
        –   Server based Java remoting and web
             messaging technology
●   Webkit
        –    Open source browser engine, OSX framework
              used on apple computers
Open Source Adobe
●   Text Layout Framework: Typography
Open Source Flash
●   "Like sourceforge.net for open source flash
    enthusiasts"
●   Collaboration
        –   list: http://osflash.org/mailman/listinfo/
        –   irc: irc://irc.freenode.org##swf
●   Hosts and links to projects related to open
    source flash development
Open Source Flash
●   History
       –   May, 2005: Aral Balkan, Sonke Rohde,
            Nicolas Cannasse (MTASC) “Eureka!”
       –   June, 2005: Number of projects: 10
       –   January, 2008: Number of projects: 120
       –   Today: has many more project, a handful of
            broken links – cool nonetheless
Open Source Flash
●   Source code used to be shared
           –   Binary .fla files
           –   ActionScript Classes
●   2004: MTASC2 [MotionTwin ActionScript Compiler]released,
           –   kicked off Flash IDE Dev Projects
●   Swfmill, Axdt, AMES, FlashDevelop etc.
●   Frameworks started appearing:
           –   Arp, Cairngorm, PureMVC
●   Developers:
           –   Started embracing these frameworks
           –   Worked in teams
           –   Build scalable solutions
           –   All this independent of Flash IDE or Flex
Open Source Flash
●   OSFlash.org incubates all these projects collected under
    one roof
●   Doesn't stop !
●   Exciting technologies for Flash Platform are created:
         –   Papervision 3D: 3D Library for Flash
         –   Red5: Open Source server to handle audio, video,
              and real-time shared objects
         –   SWX: Native data format for Flash platform
         –   Flex3, Flex SDK, Compilers
Open Source Flash
●   Integrated Development     ●   Utilities
    Environment Alternatives   ●   Flash Applications
●   Command line tools,        ●   Servers and Remoting
    compilers
                               ●   Logging Tools
●   Eclipse Plugins
                               ●   Debugging tools
●   ActionScript libraries
                               ●   Documentation Systems
●   Frameworks
                               ●   Flash Players
●   Tweening, Animation and
    Physics                    ●   SWF Readers
●   Unit testing
●   Open Source IDE for creating flash based
    eLearning (alpha software)
●   GPL, developed on Linux
●   What can you do:
       –   Create instructional videos
       –   Get a feel for timeline and other Concepts
●   Demo in Firefox (.swf) or here
mtasc
●   First ActionScript 2 Open Source Compiler
●   What you can do:
       –   Compile large .as classes in very short time
       –   Generate .swf without flash – the tool itself!
●   Superseded by haXe
mtasc
●   Example:
    class Hello

    {

        static var app : Hello;

        function Hello() {

            _root.createTextField("tf",0,0,0,800,600);     // creates a 'tf' TextField size 800x600 at pos 0,0

            _root.tf.text = "Hello world !";    // write some text into it

        }

        static function main(mc) {       // entry point

            app = new Hello();

        }

    }
mtasc
●   $ mtasc -swf hello.swf -main -header
    800:600:20 hello.as
swfmill
●   Xml2swf swf2xml processor (can import)
●   Generates asset libs for MTASC or haXe
●   Built around xslt
●   What you can do:
        –   Import images, fonts
        –   Add components
        –   Create movieclips
        –   Place clips on the stage
        –   Create text fields
swfmill
●   Example.xml:
    <?xml version="1.0" encoding="iso-8859-1" ?>
    <movie width="320" height="240" framerate="12">
      <background color="#ffffff"/>
      <frame>
        <library>
           <clip id="foo" import="library/foo.jpg"/>
        </library>
     </frame>
    </movie>
swfmill
●   $ swfmill simple example.xml example.swf
swftools
●   Collection of utilities to work with .swf's
●   Mostly on command line
●   Loves to have:
        –   Freetype libraries from freetype.org
        –   Jpeg libraries from ijg.org
swftools
●   What you can do:        ●   What you can do:
       –   Pdf2swf                 –   Wav2swf
       –   Swfcombine              –   Avi2swf
       –   Swfstrings              –   Font2swf
       –   Swfdump                 –   Swfbbox
       –   Jpeg2swf                –   Swfc
       –   Png2swf                 –   Swfextract
       –   gif2swf                 –   as3compile
swftools




           Pdf2swf
           example
Take Home
●   Flash has 99.99% market share
        –   (nah, just kidding)
●   Tools exist that facilitate usage of the flash
    platform which you can adopt for your
    application domain:
        –   Sciences
        –   Programming
        –   Sysadmin? (atleast the command line ones)
Questions?
References
●   osflash.org
●   Adobe flash
●   Open Source Adobe
●   salasaga.org
●   swfmill.org
●   mtasc.org
●   swftools.org
●   ActionScript Wiki
●   ActionScript 2 Language Reference

Más contenido relacionado

La actualidad más candente

Js engine performance
Js engine performanceJs engine performance
Js engine performance
paullfc
 
Webdevcon Keynote hh-2012-09-18
Webdevcon Keynote hh-2012-09-18Webdevcon Keynote hh-2012-09-18
Webdevcon Keynote hh-2012-09-18
Pierre Joye
 
Develop, test and debug cross platforms apps with PhoneGap
Develop, test and debug cross platforms apps with PhoneGapDevelop, test and debug cross platforms apps with PhoneGap
Develop, test and debug cross platforms apps with PhoneGap
Giorgio Natili
 

La actualidad más candente (20)

Let's server your Data
Let's server your DataLet's server your Data
Let's server your Data
 
Js engine performance
Js engine performanceJs engine performance
Js engine performance
 
Salt and pepper — native code in the browser Browser using Google native Client
Salt and pepper — native code in the browser Browser using Google native ClientSalt and pepper — native code in the browser Browser using Google native Client
Salt and pepper — native code in the browser Browser using Google native Client
 
Armbian linux
Armbian linuxArmbian linux
Armbian linux
 
HTML, CSS & Javascript Architecture (extended version) - Jan Kraus
HTML, CSS & Javascript Architecture (extended version) - Jan KrausHTML, CSS & Javascript Architecture (extended version) - Jan Kraus
HTML, CSS & Javascript Architecture (extended version) - Jan Kraus
 
3 Things Everyone Knows About Node JS That You Don't
3 Things Everyone Knows About Node JS That You Don't3 Things Everyone Knows About Node JS That You Don't
3 Things Everyone Knows About Node JS That You Don't
 
Open source and .net
Open source and .netOpen source and .net
Open source and .net
 
CBDW2014- Intro to CommandBox; The ColdFusion CLI, Package Manager, and REPL ...
CBDW2014- Intro to CommandBox; The ColdFusion CLI, Package Manager, and REPL ...CBDW2014- Intro to CommandBox; The ColdFusion CLI, Package Manager, and REPL ...
CBDW2014- Intro to CommandBox; The ColdFusion CLI, Package Manager, and REPL ...
 
Internet Archive at Open Video Conference 2009
Internet Archive at Open Video Conference 2009Internet Archive at Open Video Conference 2009
Internet Archive at Open Video Conference 2009
 
Webdevcon Keynote hh-2012-09-18
Webdevcon Keynote hh-2012-09-18Webdevcon Keynote hh-2012-09-18
Webdevcon Keynote hh-2012-09-18
 
Mongodb - drupal dev days
Mongodb - drupal dev daysMongodb - drupal dev days
Mongodb - drupal dev days
 
Introducing haXe
Introducing haXeIntroducing haXe
Introducing haXe
 
Introduction to rails
Introduction to railsIntroduction to rails
Introduction to rails
 
Composer Helpdesk
Composer HelpdeskComposer Helpdesk
Composer Helpdesk
 
Fixing Gaps. Strengthening the Chromium platform for content blocking
Fixing Gaps. Strengthening the Chromium platform for content blockingFixing Gaps. Strengthening the Chromium platform for content blocking
Fixing Gaps. Strengthening the Chromium platform for content blocking
 
Develop, test and debug cross platforms apps with PhoneGap
Develop, test and debug cross platforms apps with PhoneGapDevelop, test and debug cross platforms apps with PhoneGap
Develop, test and debug cross platforms apps with PhoneGap
 
Modern web technologies
Modern web technologiesModern web technologies
Modern web technologies
 
Intro to vagrant
Intro to vagrantIntro to vagrant
Intro to vagrant
 
DanNotes 2013: OpenNTF Domino API
DanNotes 2013: OpenNTF Domino APIDanNotes 2013: OpenNTF Domino API
DanNotes 2013: OpenNTF Domino API
 
Node js for beginners
Node js for beginnersNode js for beginners
Node js for beginners
 

Destacado

Modul 10 pembelajaran
Modul 10 pembelajaranModul 10 pembelajaran
Modul 10 pembelajaran
Hadiw
 

Destacado (14)

Amazing Photos
Amazing PhotosAmazing Photos
Amazing Photos
 
Modul 10 pembelajaran
Modul 10 pembelajaranModul 10 pembelajaran
Modul 10 pembelajaran
 
The Metropolitan Museum of Art
The Metropolitan Museum of ArtThe Metropolitan Museum of Art
The Metropolitan Museum of Art
 
Red Rock Canyon National Conservation Area (Revisited) - Las Vegas Nevada
Red Rock Canyon National Conservation Area (Revisited) - Las Vegas NevadaRed Rock Canyon National Conservation Area (Revisited) - Las Vegas Nevada
Red Rock Canyon National Conservation Area (Revisited) - Las Vegas Nevada
 
The Strip - Las Vegas Nevada
The Strip - Las Vegas NevadaThe Strip - Las Vegas Nevada
The Strip - Las Vegas Nevada
 
Xunantunich, Belize
Xunantunich, BelizeXunantunich, Belize
Xunantunich, Belize
 
Open Source Flash101 Gaurav Saxena For Virginia Marti College of Arts and Design
Open Source Flash101 Gaurav Saxena For Virginia Marti College of Arts and DesignOpen Source Flash101 Gaurav Saxena For Virginia Marti College of Arts and Design
Open Source Flash101 Gaurav Saxena For Virginia Marti College of Arts and Design
 
Ghosts In The Machine Today's Invisible Threats Oct 2009
Ghosts In The Machine Today's Invisible Threats Oct 2009Ghosts In The Machine Today's Invisible Threats Oct 2009
Ghosts In The Machine Today's Invisible Threats Oct 2009
 
bash
bashbash
bash
 
Tower of London
Tower of LondonTower of London
Tower of London
 
Ambergris Caye, Belize
Ambergris Caye, BelizeAmbergris Caye, Belize
Ambergris Caye, Belize
 
Grace Cathedral - San Francisco California
Grace Cathedral  - San Francisco CaliforniaGrace Cathedral  - San Francisco California
Grace Cathedral - San Francisco California
 
Hoover Dam - Arizona & Nevada
Hoover Dam - Arizona & NevadaHoover Dam - Arizona & Nevada
Hoover Dam - Arizona & Nevada
 
Tate Modern Art Museum
Tate Modern Art MuseumTate Modern Art Museum
Tate Modern Art Museum
 

Similar a Open Source Flash 2010

Minko - Scripting 3D apps with Lua and C++
Minko - Scripting 3D apps with Lua and C++Minko - Scripting 3D apps with Lua and C++
Minko - Scripting 3D apps with Lua and C++
Minko3D
 

Similar a Open Source Flash 2010 (20)

Apache Flex and the imperfect Web
Apache Flex and the imperfect WebApache Flex and the imperfect Web
Apache Flex and the imperfect Web
 
IPMI is dead, Long live Redfish
IPMI is dead, Long live RedfishIPMI is dead, Long live Redfish
IPMI is dead, Long live Redfish
 
O365Con19 - Things I've Learned While Building a Product on SharePoint Modern...
O365Con19 - Things I've Learned While Building a Product on SharePoint Modern...O365Con19 - Things I've Learned While Building a Product on SharePoint Modern...
O365Con19 - Things I've Learned While Building a Product on SharePoint Modern...
 
Django, What is it, Why is it cool?
Django, What is it, Why is it cool?Django, What is it, Why is it cool?
Django, What is it, Why is it cool?
 
2016 03 15_biological_databases_part4
2016 03 15_biological_databases_part42016 03 15_biological_databases_part4
2016 03 15_biological_databases_part4
 
Bootstrap4 x pages
Bootstrap4 x pagesBootstrap4 x pages
Bootstrap4 x pages
 
Use open source software to develop ideas at work
Use open source software to develop ideas at workUse open source software to develop ideas at work
Use open source software to develop ideas at work
 
A Tour of Open Source on the Mainframe
A Tour of Open Source on the MainframeA Tour of Open Source on the Mainframe
A Tour of Open Source on the Mainframe
 
Developing and Testing Cross Compatible Modules with PowerShell Core
Developing and Testing Cross Compatible Modules with PowerShell CoreDeveloping and Testing Cross Compatible Modules with PowerShell Core
Developing and Testing Cross Compatible Modules with PowerShell Core
 
Screw HTML5, make cool shit with AIR
Screw HTML5, make cool shit with AIRScrew HTML5, make cool shit with AIR
Screw HTML5, make cool shit with AIR
 
Minko - Scripting 3D apps with Lua and C++
Minko - Scripting 3D apps with Lua and C++Minko - Scripting 3D apps with Lua and C++
Minko - Scripting 3D apps with Lua and C++
 
Echo HTML5
Echo HTML5Echo HTML5
Echo HTML5
 
Once upon a time, there were css, js and server-side rendering
Once upon a time, there were css, js and server-side renderingOnce upon a time, there were css, js and server-side rendering
Once upon a time, there were css, js and server-side rendering
 
MWLUG - Universal Java
MWLUG  -  Universal JavaMWLUG  -  Universal Java
MWLUG - Universal Java
 
Node.js an Exectutive View
Node.js an Exectutive ViewNode.js an Exectutive View
Node.js an Exectutive View
 
Suse Studio: "How to create a live openSUSE image with OpenFOAM® and CFD tools"
Suse Studio: "How to create a live openSUSE image with  OpenFOAM® and CFD tools"Suse Studio: "How to create a live openSUSE image with  OpenFOAM® and CFD tools"
Suse Studio: "How to create a live openSUSE image with OpenFOAM® and CFD tools"
 
Haxe Toolkit for cross-platform applications development
Haxe Toolkit for cross-platform applications developmentHaxe Toolkit for cross-platform applications development
Haxe Toolkit for cross-platform applications development
 
Voxxed days Vilnius 2015 - Android Reverse Engineering Lab
Voxxed days Vilnius 2015 - Android Reverse Engineering LabVoxxed days Vilnius 2015 - Android Reverse Engineering Lab
Voxxed days Vilnius 2015 - Android Reverse Engineering Lab
 
Apache Cordova
Apache CordovaApache Cordova
Apache Cordova
 
A Brief Intro to Adobe Flex
A Brief Intro to Adobe FlexA Brief Intro to Adobe Flex
A Brief Intro to Adobe Flex
 

Último

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Último (20)

ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 

Open Source Flash 2010

  • 1. Open Source Flash 101 'G' Gaurav Narain Saxena Akron Linux User Group January 7, 2010
  • 2. Outline ● Flash ● ActionScript ● Open Source Adobe ● Open Source Flash ● Salasaga ● mtasc ● swfmill ● Swftools ● References
  • 3. Flash ● "Like television for internet users" ● Written in C++ ● Allows you to: – Annotate web page with: ● Animation, adverts, other flash components ● Navigation – RIA ● Streams of video ● Proprietary
  • 4. Flash ● Concepts – Timeline – Stage – Objects – Controls – etc.
  • 6. ActionScript ● Javascript for HTML= ActionScript for Flash ● Scripting language based on ECMAScript ● Extension: .as ● Main points: – Cross platform – Manifested in flash and flex – platforms – Designed by Gary Grossman (1998) – Versions: AS3, AS2
  • 7. ActionScript Example (AS2): HelloWorld.as class HelloWorld extends MovieClip { public function HelloWorld() {} public function onLoad:Void{ var txtHello:TextField = this.createTextField( “txtHello”,0,0,0,100,100); txtHello.text = “Hello, World!”; }// displays 100x100 box with “Hello, World!” in it.
  • 8. Open Source Adobe ● Flex SDK – Cross platform framework; provides compilers, libraries, debugger ● Adobe-Mozilla Tamarin – Open engine for ActionScript 3 ● BladeDS – Server based Java remoting and web messaging technology ● Webkit – Open source browser engine, OSX framework used on apple computers
  • 9. Open Source Adobe ● Text Layout Framework: Typography
  • 10. Open Source Flash ● "Like sourceforge.net for open source flash enthusiasts" ● Collaboration – list: http://osflash.org/mailman/listinfo/ – irc: irc://irc.freenode.org##swf ● Hosts and links to projects related to open source flash development
  • 11. Open Source Flash ● History – May, 2005: Aral Balkan, Sonke Rohde, Nicolas Cannasse (MTASC) “Eureka!” – June, 2005: Number of projects: 10 – January, 2008: Number of projects: 120 – Today: has many more project, a handful of broken links – cool nonetheless
  • 12. Open Source Flash ● Source code used to be shared – Binary .fla files – ActionScript Classes ● 2004: MTASC2 [MotionTwin ActionScript Compiler]released, – kicked off Flash IDE Dev Projects ● Swfmill, Axdt, AMES, FlashDevelop etc. ● Frameworks started appearing: – Arp, Cairngorm, PureMVC ● Developers: – Started embracing these frameworks – Worked in teams – Build scalable solutions – All this independent of Flash IDE or Flex
  • 13. Open Source Flash ● OSFlash.org incubates all these projects collected under one roof ● Doesn't stop ! ● Exciting technologies for Flash Platform are created: – Papervision 3D: 3D Library for Flash – Red5: Open Source server to handle audio, video, and real-time shared objects – SWX: Native data format for Flash platform – Flex3, Flex SDK, Compilers
  • 14. Open Source Flash ● Integrated Development ● Utilities Environment Alternatives ● Flash Applications ● Command line tools, ● Servers and Remoting compilers ● Logging Tools ● Eclipse Plugins ● Debugging tools ● ActionScript libraries ● Documentation Systems ● Frameworks ● Flash Players ● Tweening, Animation and Physics ● SWF Readers ● Unit testing
  • 15. Open Source IDE for creating flash based eLearning (alpha software) ● GPL, developed on Linux ● What can you do: – Create instructional videos – Get a feel for timeline and other Concepts
  • 16. Demo in Firefox (.swf) or here
  • 17. mtasc ● First ActionScript 2 Open Source Compiler ● What you can do: – Compile large .as classes in very short time – Generate .swf without flash – the tool itself! ● Superseded by haXe
  • 18. mtasc ● Example: class Hello { static var app : Hello; function Hello() { _root.createTextField("tf",0,0,0,800,600); // creates a 'tf' TextField size 800x600 at pos 0,0 _root.tf.text = "Hello world !"; // write some text into it } static function main(mc) { // entry point app = new Hello(); } }
  • 19. mtasc ● $ mtasc -swf hello.swf -main -header 800:600:20 hello.as
  • 20. swfmill ● Xml2swf swf2xml processor (can import) ● Generates asset libs for MTASC or haXe ● Built around xslt ● What you can do: – Import images, fonts – Add components – Create movieclips – Place clips on the stage – Create text fields
  • 21. swfmill ● Example.xml: <?xml version="1.0" encoding="iso-8859-1" ?> <movie width="320" height="240" framerate="12"> <background color="#ffffff"/> <frame> <library> <clip id="foo" import="library/foo.jpg"/> </library> </frame> </movie>
  • 22. swfmill ● $ swfmill simple example.xml example.swf
  • 23. swftools ● Collection of utilities to work with .swf's ● Mostly on command line ● Loves to have: – Freetype libraries from freetype.org – Jpeg libraries from ijg.org
  • 24. swftools ● What you can do: ● What you can do: – Pdf2swf – Wav2swf – Swfcombine – Avi2swf – Swfstrings – Font2swf – Swfdump – Swfbbox – Jpeg2swf – Swfc – Png2swf – Swfextract – gif2swf – as3compile
  • 25. swftools Pdf2swf example
  • 26. Take Home ● Flash has 99.99% market share – (nah, just kidding) ● Tools exist that facilitate usage of the flash platform which you can adopt for your application domain: – Sciences – Programming – Sysadmin? (atleast the command line ones)
  • 28. References ● osflash.org ● Adobe flash ● Open Source Adobe ● salasaga.org ● swfmill.org ● mtasc.org ● swftools.org ● ActionScript Wiki ● ActionScript 2 Language Reference