SlideShare una empresa de Scribd logo
1 de 50
By Stanley Fok
    2009-06-11
   Part 1 – introducing Flash

   Part 2 – Flash Demo Tutorial
 Spherical Video Player
 2D Flash Physics Engine
 3D Isometric Engine – ffilmation
 Particle System
 MotionPortrait
 Pictaps
 http://ecodazoo.com/
   Yugo Nakamura
    中村勇吾

   The well-known God of
    Flash in Japan

 http://yugop.com/
 http://www.vcasmo.com/video/flash/202
Some of his masterpieces

 http://uniqlo.archive.tha.jp/us/
 http://www.uniqlo.com/grid/
 Eye Project
 https://
  www.ecotonoha.com/ecotonoha.html
   Usability

    › How user can accomplish a task effectively


   User Experience (UX)

    › The satisfaction and experience of a user
      when using the product
User experience


usability
Usability   UX
Image Source:
http://blogs.infragistics.com/ux/articles/text-treatment-and-user-experience.aspx
   Good RIA needs both UX and Usability!

                 Good             Happy Users
                  RIA



     Usability               UX
 A vector and raster graphic rendering
  engine
 Originally designed to create animations
 Frame-based (every frame has to be
  drawn)
 Event Driven
 Audio Video Support
 With scripting language called
  Actionscript
Examples:
 Flash
 Flex
 Silverlight
 JavaFx
 (AJAX)
Silverlight Deep Zoom
RIA                     HTML
Requires Plug-in         Yes                     No
Cross Platform Support   Most RIA are cross      Need more effort
                         borwser & OS, such as
                         Flash Player
Canvas                   Yes                     in HTML5 only

Audio and Video          Yes                     In HTML 5 only
Support
Asynchronous             Yes                     Only with AJAX
Interactivity / UX       Richer                  Poorer
Accessibility            Poorer                  Better
SEO                      Poorer (except          Better
                         silvlight)
Development time         longer                  shorter
Macromedia Flash MX 2004
Flash was BORN!
                                                               - Actionscript 2.0 with OOP
Named FutureSplash Animator
                                                               - FLV support


                              Actionscript 1.0
                              Launched With Flash 4

                                                               Stanley
                                                               first touch Flash!

 Apr 10, 1996                           Jun 15, 1999                                          Sep 9, 2003




1996        1997       1998        1999           2000         2001          2002            2003
        Nov 1996   Jun 1997   May 31, 1998             Aug 24, 2000           Mar 15, 2002

        Flash 1    Flash 2    Flash 3                    Flash 5                Flash MX
Adobe acquired                       Adobe Flash CS3 Professional
        Marcomedia                           - Actionscript 3.0 improved OOP
                                             - Performance imporved
                                             - Integrated with Adobe Products


       Marcomedia Flash Professional 8
       - Bitmap Data support                                            Adobe Flash CS4
       - Start to have 3D open source library                           Professional
       such as Sandy3D, Papervision3D                                   - Build in 3D functions
                                                                        - inverse kinemetics
                              Sep 13, 2005

               Apr 18, 2005                              Apr 16, 2007          Oct 15, 2008




2004          2005              2006              2007                  2008              2009
   AS 1.0
    › tellTarget(“/myMc”) {
       play();
      }
    › setProperty(“/myMc”,_y, 20);


   AS 2.0
    › myMc.play();
    › myMc._y = 20;
class MyBox extends Movieclip {
  public function MyBox() {
     …
  }

    private function onEnterFrame() {
       …
    }
}
   AS 2.0
    this.attachMovie(“myMc”, “newName”);
    myMc.onPress = function(){…};


   AS 3.0
    var myMc:Movieclip = new Movieclip();
    this.addChild(myMc);
    myMc.addEventListener(MouseEvent.Click,
    function(){…});
Flash
Source code                    Runtime




          .as
                             AIR (Desktop)
                           .air installation file
                Compile




                          Flash Player (Browser)
                                 .swf file
Flash            Flex
Source file          .fla (binary),   .mxml (acsii),
                     .as (ascii)      .as (ascii)
Target user          Designer,        Programmer
                     Programmer
Usage                Multimedia       Application

With timeline        yes              no

Reusable modules     Lack of          A lot, such as Chart,
                                      Window Panel, color
                                      picker, etc

Layout flexibility   More flexible    Less flexible, but
                                      support CSS
 Around 100 UI
  Components
 http://
  www.adobe.com/devnet/flex/tourdeflex/we
  /




          That is All for Flash…
Flash                      Flex
Banner Ad                 Application, such as online
                          Photoshop, Word, etc
Animation / Short Movie
                          Dashboard, Report
Games

Video Player

Campaign website
   Don't Give Up on Vista Ad
← 阿貴




           ↑ Happy Tree Friends


       ← 小小動畫
http://www.teagames.com/        Facebook game – Restaurant City




                http://www.electrotank.com/
http://www.clubpenguin.com/
 Flash can connect Socket of Server
 Using through RTMP, port 1935
  (Real Time Messaging Protocol)
    › video / audio streaming
    › video conference
    › real-time game
   Server
    › Adobe FMS (Flash Media Server)
      HKD$40,000 / server
    › SmartFoxServer HKD$20,000 / server
Photoshop Express: https://www.photoshop.com/
Buzzword: https://buzzword.acrobat.com/
iCoke HK: http://www.icoke.hk/coke2009/
Redbull flightlab: http://www.redbull.com/flightlab/
Nike ID: http://nikeid.nike.com/nikeid/index.jsp
Worldwide Ubiquity of Adobe Flash Player by Version - March 2009


                          Flash Player 7        Flash Player 8       Flash Player 9        Flash Player 10


Mature Markets1           99.3%                 99.1%                98.9%                 74.2%

US/Canada                 99.2%                 99.0%                98.8%                 74.5%

Europe2                   99.1%                 98.9%                98.6%                 75.3%

Japan                     99.8%                 99.5%                99.3%                 72.0%
Emerging
                          Not surveyed in this wave
Markets3

Notes

3.Mature markets include US, Canada, UK, Germany, France, Japan.
4.Europe includes UK, Germany, France.
5.The Emerging markets are surveyed every other wave. They include China, S. Korea, Russia, India and Taiwan.
Percentages are carried over from the previous wave when emerging markets are not surveyed.
 FLA Basic Setup
 Flash Display Components
 Flash Basic Commands and Events
 Scene Planning Techniques
    › Display Object Tree Structure
    › Object co-ordinate system
   Embed SWF to html
    › SWFObject
 Frame rate
 Background Color
 Movie Dimension
 Publishing Setting
    › Class Path
    › Strict Mode, Warning Mode
    › Size Report
    › Image / audio / video compression
 x, y
 scaleX, scaleY [1 means normal size]
 width, height
 alpha [0 to 1]
 rotation [in degree]
 visible [true / false]
 play()
 stop()
 gotoAndPlay()
 gotoAndStop()
 .parent //get parent
 addChild(obj); //dynamic attach child
 addChildAt(obj,depth);
 flash.events.KeyboardEvent
 flash.events.MouseEvent
 flash.events.Event
 flash.events.TimerEvent
 flash.events.FocusEvent
   2 issues to consider when building the UI
    1. How to build a good UI tree
    2. Where (x, y) to place the UI




                                  (x,y)
Stage                              Stage


                                          iconWheelMc
infoMc   iconContainerMc   coverMc




                                     infoMc            iconContainerMc




                                     coverMc
   Advantages for deep
    tree:                                        Stage
    › Buffer for timeline,
      leave flexibility for                 iconWheelMc

      designers
    › Make movieclip Plug              infoMc            iconContainerMc
      and Play
    › Inherit co-oridnate
                                       coverMc
      (x,y)                 Module

                              Module
   2D system
    › X -> increase to right
    › Y -> increase downwards
   The center reference point
    › It affects mcs’ scaling, rotation with script
   Best Practice
    › Choose the correct point which make your
      program more as dynamic as possible and
      less variables
 SWFObject is an open source project
  which helps you to embed swf in html
 http://
  code.google.com/p/swfobject/wiki/docume
 Single javascript file
  (9.5Kb / GZIPed: 3.8Kb)
   Static embed
    › Work on system which do not have well
     javascript support
   Dynamic embed
    › Avoid “click to activate” mechanism
    › Easy syntax
    › Enhance SEO (How?)
   Building a Flash Site
    › OOP
    › Workflow
    › How to build a proj?


   Please let me know what you are
    interested too!

Más contenido relacionado

Destacado

Ppt of mini project.
Ppt of mini project.Ppt of mini project.
Ppt of mini project.saikiran_gone
 
Final ppt of project
Final ppt of projectFinal ppt of project
Final ppt of projectRuchi Gulati
 
multimedia element
multimedia elementmultimedia element
multimedia elementAZMAN KADIR
 
Presentation on project report
Presentation on project reportPresentation on project report
Presentation on project reportramesh_x
 

Destacado (6)

Mini project ppt
Mini project pptMini project ppt
Mini project ppt
 
Ppt of mini project.
Ppt of mini project.Ppt of mini project.
Ppt of mini project.
 
Final ppt of project
Final ppt of projectFinal ppt of project
Final ppt of project
 
multimedia element
multimedia elementmultimedia element
multimedia element
 
Multimedia
MultimediaMultimedia
Multimedia
 
Presentation on project report
Presentation on project reportPresentation on project report
Presentation on project report
 

Similar a Flash 101

Creating Flash Content for Multiple Screens
Creating Flash Content for Multiple ScreensCreating Flash Content for Multiple Screens
Creating Flash Content for Multiple Screenspaultrani
 
Flash for Mobile Devices
Flash for Mobile DevicesFlash for Mobile Devices
Flash for Mobile Devicespaultrani
 
Adobe Max 2009 - Learnings
Adobe Max 2009 -  LearningsAdobe Max 2009 -  Learnings
Adobe Max 2009 - Learningsziblu
 
Flash Lite, un’occasione da 1.3 Miliardi di mobile phones
Flash Lite, un’occasione da 1.3 Miliardi di mobile phonesFlash Lite, un’occasione da 1.3 Miliardi di mobile phones
Flash Lite, un’occasione da 1.3 Miliardi di mobile phonesbiskero
 
Flash/ActionScript
Flash/ActionScriptFlash/ActionScript
Flash/ActionScriptguestc0b52c5
 
Adobe Flash History and Basics
Adobe Flash History and BasicsAdobe Flash History and Basics
Adobe Flash History and BasicsTasawr Interactive
 
SkillsMatter - In-the-Brain session - What's new in ActionScript 3.0
SkillsMatter - In-the-Brain session - What's new in ActionScript 3.0SkillsMatter - In-the-Brain session - What's new in ActionScript 3.0
SkillsMatter - In-the-Brain session - What's new in ActionScript 3.0Peter Elst
 
Apache Flex and the imperfect Web
Apache Flex and the imperfect WebApache Flex and the imperfect Web
Apache Flex and the imperfect Webmasuland
 
Liip Techtalk Flash Lite
Liip Techtalk Flash LiteLiip Techtalk Flash Lite
Liip Techtalk Flash LiteFlorian Weil
 
What’s Going On with the Adobe® Flash® Platform and why it is still Relevant ...
What’s Going On with the Adobe® Flash® Platform and why it is still Relevant ...What’s Going On with the Adobe® Flash® Platform and why it is still Relevant ...
What’s Going On with the Adobe® Flash® Platform and why it is still Relevant ...Joseph Labrecque
 
Flash Presentation 25.11.10
Flash Presentation 25.11.10Flash Presentation 25.11.10
Flash Presentation 25.11.10buschko
 
Webinar ES5 - Twist 8 - DIALOGUE Engine 5.1
Webinar ES5 - Twist 8 - DIALOGUE Engine 5.1Webinar ES5 - Twist 8 - DIALOGUE Engine 5.1
Webinar ES5 - Twist 8 - DIALOGUE Engine 5.1Activo Consulting
 
What’s New in Flash Player 11.2 and Adobe AIR 3.2
What’s New in Flash Player 11.2 and Adobe AIR 3.2What’s New in Flash Player 11.2 and Adobe AIR 3.2
What’s New in Flash Player 11.2 and Adobe AIR 3.2Joseph Labrecque
 

Similar a Flash 101 (20)

Creating Flash Content for Multiple Screens
Creating Flash Content for Multiple ScreensCreating Flash Content for Multiple Screens
Creating Flash Content for Multiple Screens
 
Flash for Mobile Devices
Flash for Mobile DevicesFlash for Mobile Devices
Flash for Mobile Devices
 
Evolution of flash platform
Evolution of flash platformEvolution of flash platform
Evolution of flash platform
 
Adobe Max 2009 - Learnings
Adobe Max 2009 -  LearningsAdobe Max 2009 -  Learnings
Adobe Max 2009 - Learnings
 
Flash Lite, un’occasione da 1.3 Miliardi di mobile phones
Flash Lite, un’occasione da 1.3 Miliardi di mobile phonesFlash Lite, un’occasione da 1.3 Miliardi di mobile phones
Flash Lite, un’occasione da 1.3 Miliardi di mobile phones
 
Flash/ActionScript
Flash/ActionScriptFlash/ActionScript
Flash/ActionScript
 
Flash Platform
Flash PlatformFlash Platform
Flash Platform
 
MoMo Oct Event
MoMo Oct EventMoMo Oct Event
MoMo Oct Event
 
Adobe Flash History and Basics
Adobe Flash History and BasicsAdobe Flash History and Basics
Adobe Flash History and Basics
 
Another Test
Another TestAnother Test
Another Test
 
SkillsMatter - In-the-Brain session - What's new in ActionScript 3.0
SkillsMatter - In-the-Brain session - What's new in ActionScript 3.0SkillsMatter - In-the-Brain session - What's new in ActionScript 3.0
SkillsMatter - In-the-Brain session - What's new in ActionScript 3.0
 
Flash is your Friend
Flash is your FriendFlash is your Friend
Flash is your Friend
 
Apache Flex and the imperfect Web
Apache Flex and the imperfect WebApache Flex and the imperfect Web
Apache Flex and the imperfect Web
 
Liip Techtalk Flash Lite
Liip Techtalk Flash LiteLiip Techtalk Flash Lite
Liip Techtalk Flash Lite
 
What’s Going On with the Adobe® Flash® Platform and why it is still Relevant ...
What’s Going On with the Adobe® Flash® Platform and why it is still Relevant ...What’s Going On with the Adobe® Flash® Platform and why it is still Relevant ...
What’s Going On with the Adobe® Flash® Platform and why it is still Relevant ...
 
Echo HTML5
Echo HTML5Echo HTML5
Echo HTML5
 
Flash Presentation 25.11.10
Flash Presentation 25.11.10Flash Presentation 25.11.10
Flash Presentation 25.11.10
 
Webinar ES5 - Twist 8 - DIALOGUE Engine 5.1
Webinar ES5 - Twist 8 - DIALOGUE Engine 5.1Webinar ES5 - Twist 8 - DIALOGUE Engine 5.1
Webinar ES5 - Twist 8 - DIALOGUE Engine 5.1
 
FUGN - Stage Video and Molehill
FUGN - Stage Video and MolehillFUGN - Stage Video and Molehill
FUGN - Stage Video and Molehill
 
What’s New in Flash Player 11.2 and Adobe AIR 3.2
What’s New in Flash Player 11.2 and Adobe AIR 3.2What’s New in Flash Player 11.2 and Adobe AIR 3.2
What’s New in Flash Player 11.2 and Adobe AIR 3.2
 

Último

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 

Último (20)

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 

Flash 101

  • 1. By Stanley Fok 2009-06-11
  • 2. Part 1 – introducing Flash  Part 2 – Flash Demo Tutorial
  • 3.  Spherical Video Player  2D Flash Physics Engine  3D Isometric Engine – ffilmation  Particle System  MotionPortrait  Pictaps  http://ecodazoo.com/
  • 4. Yugo Nakamura 中村勇吾  The well-known God of Flash in Japan  http://yugop.com/  http://www.vcasmo.com/video/flash/202
  • 5. Some of his masterpieces  http://uniqlo.archive.tha.jp/us/  http://www.uniqlo.com/grid/  Eye Project  https:// www.ecotonoha.com/ecotonoha.html
  • 6. Usability › How user can accomplish a task effectively  User Experience (UX) › The satisfaction and experience of a user when using the product
  • 10. Good RIA needs both UX and Usability! Good Happy Users RIA Usability UX
  • 11.  A vector and raster graphic rendering engine  Originally designed to create animations  Frame-based (every frame has to be drawn)  Event Driven  Audio Video Support  With scripting language called Actionscript
  • 12. Examples:  Flash  Flex  Silverlight  JavaFx  (AJAX)
  • 14. RIA HTML Requires Plug-in Yes No Cross Platform Support Most RIA are cross Need more effort borwser & OS, such as Flash Player Canvas Yes in HTML5 only Audio and Video Yes In HTML 5 only Support Asynchronous Yes Only with AJAX Interactivity / UX Richer Poorer Accessibility Poorer Better SEO Poorer (except Better silvlight) Development time longer shorter
  • 15. Macromedia Flash MX 2004 Flash was BORN! - Actionscript 2.0 with OOP Named FutureSplash Animator - FLV support Actionscript 1.0 Launched With Flash 4 Stanley first touch Flash! Apr 10, 1996 Jun 15, 1999 Sep 9, 2003 1996 1997 1998 1999 2000 2001 2002 2003 Nov 1996 Jun 1997 May 31, 1998 Aug 24, 2000 Mar 15, 2002 Flash 1 Flash 2 Flash 3 Flash 5 Flash MX
  • 16. Adobe acquired Adobe Flash CS3 Professional Marcomedia - Actionscript 3.0 improved OOP - Performance imporved - Integrated with Adobe Products Marcomedia Flash Professional 8 - Bitmap Data support Adobe Flash CS4 - Start to have 3D open source library Professional such as Sandy3D, Papervision3D - Build in 3D functions - inverse kinemetics Sep 13, 2005 Apr 18, 2005 Apr 16, 2007 Oct 15, 2008 2004 2005 2006 2007 2008 2009
  • 17. AS 1.0 › tellTarget(“/myMc”) { play(); } › setProperty(“/myMc”,_y, 20);  AS 2.0 › myMc.play(); › myMc._y = 20;
  • 18. class MyBox extends Movieclip { public function MyBox() { … } private function onEnterFrame() { … } }
  • 19. AS 2.0 this.attachMovie(“myMc”, “newName”); myMc.onPress = function(){…};  AS 3.0 var myMc:Movieclip = new Movieclip(); this.addChild(myMc); myMc.addEventListener(MouseEvent.Click, function(){…});
  • 20. Flash
  • 21. Source code Runtime .as AIR (Desktop) .air installation file Compile Flash Player (Browser) .swf file
  • 22. Flash Flex Source file .fla (binary), .mxml (acsii), .as (ascii) .as (ascii) Target user Designer, Programmer Programmer Usage Multimedia Application With timeline yes no Reusable modules Lack of A lot, such as Chart, Window Panel, color picker, etc Layout flexibility More flexible Less flexible, but support CSS
  • 23.  Around 100 UI Components  http:// www.adobe.com/devnet/flex/tourdeflex/we / That is All for Flash…
  • 24. Flash Flex Banner Ad Application, such as online Photoshop, Word, etc Animation / Short Movie Dashboard, Report Games Video Player Campaign website
  • 25. Don't Give Up on Vista Ad
  • 26. ← 阿貴 ↑ Happy Tree Friends ← 小小動畫
  • 27. http://www.teagames.com/ Facebook game – Restaurant City http://www.electrotank.com/
  • 29.  Flash can connect Socket of Server  Using through RTMP, port 1935 (Real Time Messaging Protocol) › video / audio streaming › video conference › real-time game  Server › Adobe FMS (Flash Media Server) HKD$40,000 / server › SmartFoxServer HKD$20,000 / server
  • 35. Worldwide Ubiquity of Adobe Flash Player by Version - March 2009   Flash Player 7 Flash Player 8 Flash Player 9 Flash Player 10 Mature Markets1 99.3% 99.1% 98.9% 74.2% US/Canada 99.2% 99.0% 98.8% 74.5% Europe2 99.1% 98.9% 98.6% 75.3% Japan 99.8% 99.5% 99.3% 72.0% Emerging Not surveyed in this wave Markets3 Notes 3.Mature markets include US, Canada, UK, Germany, France, Japan. 4.Europe includes UK, Germany, France. 5.The Emerging markets are surveyed every other wave. They include China, S. Korea, Russia, India and Taiwan. Percentages are carried over from the previous wave when emerging markets are not surveyed.
  • 36.
  • 37.
  • 38.  FLA Basic Setup  Flash Display Components  Flash Basic Commands and Events  Scene Planning Techniques › Display Object Tree Structure › Object co-ordinate system  Embed SWF to html › SWFObject
  • 39.  Frame rate  Background Color  Movie Dimension  Publishing Setting › Class Path › Strict Mode, Warning Mode › Size Report › Image / audio / video compression
  • 40.
  • 41.  x, y  scaleX, scaleY [1 means normal size]  width, height  alpha [0 to 1]  rotation [in degree]  visible [true / false]
  • 42.  play()  stop()  gotoAndPlay()  gotoAndStop()  .parent //get parent  addChild(obj); //dynamic attach child  addChildAt(obj,depth);
  • 43.  flash.events.KeyboardEvent  flash.events.MouseEvent  flash.events.Event  flash.events.TimerEvent  flash.events.FocusEvent
  • 44. 2 issues to consider when building the UI 1. How to build a good UI tree 2. Where (x, y) to place the UI (x,y)
  • 45. Stage Stage iconWheelMc infoMc iconContainerMc coverMc infoMc iconContainerMc coverMc
  • 46. Advantages for deep tree: Stage › Buffer for timeline, leave flexibility for iconWheelMc designers › Make movieclip Plug infoMc iconContainerMc and Play › Inherit co-oridnate coverMc (x,y) Module Module
  • 47. 2D system › X -> increase to right › Y -> increase downwards  The center reference point › It affects mcs’ scaling, rotation with script  Best Practice › Choose the correct point which make your program more as dynamic as possible and less variables
  • 48.  SWFObject is an open source project which helps you to embed swf in html  http:// code.google.com/p/swfobject/wiki/docume  Single javascript file (9.5Kb / GZIPed: 3.8Kb)
  • 49. Static embed › Work on system which do not have well javascript support  Dynamic embed › Avoid “click to activate” mechanism › Easy syntax › Enhance SEO (How?)
  • 50. Building a Flash Site › OOP › Workflow › How to build a proj?  Please let me know what you are interested too!

Notas del editor

  1. http://yugop.com/ver3/index.asp?id=32Quick time 0.0
  2. http://www.luar.com.hk/flashbook/archives/001391.php
  3. http://memorabilia.hardrock.com/
  4. Talk about pros and cons about RIAAccessibilityNo resize in fontNo rollover tag for linksSEOSilverlight use XAML, which Is XML file to define interface14
  5. 10 versions in 13 yearsWith AS2.0, more open source project, library starts to be developed!
  6. Network speedHardware speed
  7. Xml is good for:Source code managementSeparation of code logic with UIAIRSupport SQL LightAccess file systemSystem Alerthttp://www.adobe.com/products/air/Single Development, multiple platform//Ebay Desktop
  8. Flex is open sourceWith eclipse as dev envFlex builder needs $, chart component also need $
  9. over 12 million user accounts in 2007Acquire by Disney with 7億 USD
  10. Flash has a very free UI structureUsually composed by many movieclip