Friday, July 31, 2015

About Adobe Flash Player

Adobe Flash Player v11 icon.pngAdobe Flash Player (labeled Shockwave Flash in Internet Explorer and Firefox) is freeware software for using content created on the Adobe Flash platform, including viewing multimedia, executing rich Internet applications, and streaming video and audio.
Flash Player can run from a web browser as a browser plug-in or on supported mobile devices. Flash Player was created by Macromedia and has been developed and distributed by Adobe Systems since Adobe acquired Macromedia.
Flash Player has a wide user base, and is a common format for games, animations, and GUIs embedded into web pages. Adobe states that more than 400 million out of more than 1 billion connected desktops update to the new version of Flash Player within six weeks of release.
Flash Player can be downloaded for free and its plug-in version is available for every major web browser. Google Chrome comes bundled with the sand boxed Adobe Flash plug-in and will continue to support the plug-in in Windows 8 Metro mode.
Flash Player runs SWF files that can be created by the Adobe Flash Professional authoring tool, by Adobe Flash Builder or by third party tools such as FlashDevelop. Flash Player supports vector and raster graphics, 3D graphics, an embedded scripting language called ActionScript, and streaming of video and audio. ActionScript is based on ECMAScript, and supports object-oriented code, and may be compared to JavaScript.

Features

Adobe Flash Player is a runtime that executes and displays content from a provided SWF file, although it has no in-built features to modify the SWF file at runtime. It can execute software written in the ActionScript programming language which enables the runtime manipulation of text, data, vector graphics, raster graphics, sound and video. The player can also access certain connected hardware devices, including web cameras and microphones, after permission for the same has been granted by the user.
Flash Player is used internally by the Adobe Integrated Runtime (Adobe AIR), in order to provide a cross-platform runtime environment for desktop applications and mobile applications. Adobe AIR supports installable applications on Windows, Linux, OS X, and some mobile operating systems such as iOS and Android. Flash applications must specifically be built for the Adobe AIR runtime in order to utilize additional features provided, such as file system integration, native client extensions, native window/screen integration, taskbar/dock integration, and hardware integration with connected Accelerometer and GPS devices.

Data formats

Flash Player includes native support for many different data formats, some of which can only be accessed through the Action Script scripting interface.
  • XML: Flash Player has included native support for XML parsing and generation since version 8. XML data is held in memory as an XML Document Object Model, and can be manipulated using Action Script. ActionScript 3 also supports ECMAScript for XML (E4X), which allows XML data to be manipulated more easily.
  • JSON: Flash Player 11 includes native support for importing and exporting data in the JavaScript Object Notation (JSON) format, which allows interoperability with web services and JavaScript programs.
  • AMF: Flash Player allows cookies to be stored on users computers, in the form of Local Shared Objects, the Flash equivalent to browser cookies. Flash Player can alsonatively read and write files in the Action Message Format, the default data format for Local Shared Objects. Since the AMF format specification is published, data can be transferred to and from Flash applications using AMF datasets instead of JSON or XML, reducing the need for parsing and validating such data.
  • SWF: The specification for the SWF file format was published by Adobe, enabling the development of the SWX Format project, which utilized the SWF file format and AMF as a means for Flash applications to exchange data with server side applications. The SWX system stores data as standard SWF bytecode which is automatically interpreted by Flash Player. Another open-source project, SWXml allows Flash applications to load XML files as native ActionScript objects without any client-side XML parsing, by converting XML files to SWF/AMF on the server.

Multimedia formats

Flash Player is primarily a graphics and multimedia platform, and has supported raster graphics and vector graphics since its earliest version. It supports the following different multimedia formats which it can natively decode and playback.
  • MP3: Support for decoding and playback of streaming MPEG-2 Audio Layer III (MP3) audio was introduced in Flash Player 4. MP3 files can be accessed and played back from a server via HTTP, or embedded inside an SWF file, which is also a streaming format.
  • FLV: Support for decoding and playing back video and audio inside Flash Video (FLV and F4V) files, a format developed by Adobe Systems and Macromedia. Flash Video is only a container format and supports multiple different video codecs, such as Sorenson Spark, VP6 and more recently H.264. Flash Player uses hardware acceleration to display video where present, using technologies such as DirectX Video Acceleration and OpenGL to do so. Flash Video is used by YouTube, Hulu, Yahoo! Video, BBC Online and other news providers. FLV files can be played back from a server using HTTP progressive download, and can also be embedded inside an SWF file. Flash Video can also be streamed via RTMP using the Adobe Flash Media Server or other such server-side software.
  • PNG: Support for decoding and rendering Portable Network Graphics (PNG) images, in both its 24-bit (opaque) and 32-bit (semi-transparent) variants. Flash Player 11 can also encode a PNG bitmap via Action Script.
  • JPEG: Support for decoding and rendering compressed JPEG images. Flash Player 10 added support for the JPEG-XR advanced image compression standard developed by Microsoft Corporation, which results in better compression and quality than JPEG. JPEG-XR enables lossy and lossless compression with or without alpha channeltransparency. Flash Player 11 can also encode a JPEG or JPEG-XR bitmap via ActionScript.
  • GIF: Support for decoding and rendering compressed Graphics Interchange Format (GIF) images, in its single-frame variants only. Loading a multi-frame GIF will display only the first image frame.

Streaming protocols

  • HTTP: Support for communicating with web servers using HTTP requests and POST data. However, only websites that explicitly allow Flash to connect to them can be accessed via HTTP or Sockets, in order to prevent Flash being used as a tool for Cross-site request forgery, Cross-site scripting, DNS rebinding and Denial-of-serviceattacks. Websites must host a certain XML file known as a "cross domain policy", allowing or denying Flash content from specific websites to connect to them. Certain websites, such as Digg, Flikr, Photobucket already host a cross domain policy that permits Flash content to access their website via HTTP.
  • RTMP: Support for live audio and video streaming using the Real Time Messaging Protocol (RTMP) developed by Macromedia. RTMP supports a non-encrypted version over the TCP or an encrypted version over a secure SSL connection. RTMPT can also be encapsulated within HTTP requests to traverse firewalls that only allow HTTP traffics.
  • TCP: Support for TCP socket communication to communicate with any type of server, using stream sockets. Sockets can only be utilized using ActionScript, and can transferplain text, XML or binary data (ActionScript 3.0 and later). In order to prevent security issues, web servers that permit Flash content to communicate with them using sockets must host an XML-based cross domain policy file, served on Port 843. Sockets enable AS3 programs to interface with any kind of server software, such as MySQL.

Performance

Hardware acceleration

Until version 10 of the Flash player, there was no support for GPU acceleration. Version 10 added a limited form of support for shaders on materials in the form of the Pixel Bender API, but still did not have GPU-accelerated 3D vertex processing. A significant change came in version 11, which added a new low-level API called Stage3D (initially codenamed Molehill), which provides full GPU acceleration, similar to WebGL. (The partial support for GPU acceleration in Pixel Bender was completely removed in Flash 11.8, resulting in the disruption of some projects like MIT's Scratch, which lacked the manpower to recode their applications quickly enough.)
Current versions of Flash Player are optimized to use hardware acceleration for video playback and 3D graphics rendering on many devices, including desktop computers. Performance is similar to HTML5 video playback. Also, Flash Player has been used on multiple mobile devices as a primary user interface renderer.

Compilation

Although code written in Action Script 3 executes up to 10 times faster than the previous Action Script 2, the Adobe Action Script 3 compiler is a non-optimizing compiler, and produces inefficient bytecode in the resulting SWF, when compared to toolkits such as CrossBridge.
CrossBridge, a toolkit that targets C++ code to run within the Flash Player, uses the LLVM compiler to produce bytecode that runs up to 10 times faster than code the ActionScript 3 compiler produces, only because the LLVM compiler uses more aggressive optimization.
Adobe has released ActionScript Compiler 2 (ASC2) in Flex 4.7 and onwards, which improves compilation times and optimizes the generated bytecode and supports method inlining, improving its performance at runtime.
As of 2012, the Haxe multiplatform language can build programs for Flash Player that perform faster than the same application built with the Adobe Flex SDK compiler.

Development toolset

Development methods

Flash Player applications and games can be built in two significantly different methods:
  • "Flex" applications: The Adobe Flex Framework is an integrated collection of stylable Graphical User Interface, data manipulation and networking components, and applications built upon it are known as "Flex" applications. Startup time is reduced since the Flex framework must be downloaded before the application begins, and weighs in at approximately 500kb. Adobe Flash Builder is the premium tool for Flex application development, since it includes an integrated drag-and-drop user interface builder, not found in competing tools like FlashDevelop.
  • "Pure ActionScript" applications: Applications built without the Flex framework allow greater flexibility and performance. Video games built for Flash Player are typically pure-Actionscript projects. Various open-source component frameworks are available for pure ActionScript projects, such as MadComponents, that provide UI Components at significantly smaller SWF file sizes.
In both methods, developers can access the full Flash Player set of functionalities, including text, vector graphics, bitmap graphics, video, audio, camera and microphone capability, among others. Adobe AIR also includes additional features such as file system integration, native extensions, native desktop integration, and hardware integration with connected devices.

Development tools

Adobe provides five ways of developing applications for Flash Player:
  • Adobe Flash Builder (enterprise application development & debugging)
  • Adobe Flash Professional (graphic design, animation & scripting toolset)
  • Adobe Scout (visual profiler for performance optimization)
  • Adobe Flex SDK (a free SDK to compile Flash applications from source code)
  • CrossBridge (a free SDK to cross-compile C++ code to run in Flash Player)
Third-party development environments are also available:
  • FlashDevelop, an open-source Flash Action Script IDE, which includes a debugger for AIR applications
  • Powerflasher FDT, a commercial Action Script IDE
  • CodeDrive, an extension to Microsoft Visual Studio 2010 for Action Script 3 development and debugging
Adobe has provided a free software development kit (SDK) in order to build Flash applications, now known as the Apache Flex SDK. The Flex SDK allows developers to use any text editor such as Notepad++ or FlashDevelop (an IDE) to edit ActionScript source code (.as files), and then build a corresponding Flash application application (.swf) or AIR application application and installer (.air file) from the same.

Game development

Adobe offers the free Adobe Gaming SDK, consisting (as of August 2014) of several open-source AS3 libraries built on the Flash Player Stage3D APIs for GPU-accelerated graphics :
  • Away3D — GPU-accelerated 3D graphics and animation engine
  • Starling — GPU-accelerated 2D graphics that mimics the Flash display list API
  • Feathers — GPU-accelerated skinnable GUI library built on top of Starling
  • Dragon Bones — GPU-accelerated 2D skeletal animation library
A few commercial game engines target Flash Player (Stage3D) as run-time environment, such as Unity 3D and Unreal Engine 3. Before the introduction of Stage3D, a number of older 2D engines or isometric engines like Flixel saw their heyday.
Adobe also developed the CrossBridge toolkit which cross-compiles C/C++ code to run within the Flash Player, using LLVM and GCC as compiler backends, and high-performance memory-access opcodes in the Flash Player (known as "Domain Memory") to work with in-memory data quickly. CrossBridge is targeted toward the game development industry, and includes tools for building, testing, and debugging C/C++ projects in Flash Player.
Notable online video games developed in Flash include Angry BirdsFarmVille and FarmVille 2, and AdventureQuest (started in 2002, and still active as of 2011).

Open source

The documentation for the SWF file format is provided by Adobe free of cost on their website after they relaxed the requirement of accepting a non-disclosure agreement to view the same in 2008.
Adobe has not been willing to make complete source code of the Flash Player available for free software development. Free and open source alternatives to the Adobe Flash Player such as Gnash have been built, but are still incomplete and therefore not a viable alternative. The only fully functional open source Flash Player is the commercially available Scaleform GFx Player (at the time, then acquired in 2011, by Adobe and later versions are proprietary), which is designed for integration into non-Flash video games.
The source code for ActionScript Virtual Machine 2 (AVM2) which implements ActionScript 3 was donated as open-source to Mozilla Foundation on November 7, 2006, to begin work on the Tamarin virtual machine that will finally implement the ECMAScript 4 language standard with the help of the Mozilla community. It was released under the terms of a MPL/GPL/LGPL tri-license and includes the specification for the ActionScript bytecode format; Tamarin Project jointly managed by Mozilla and Adobe Systems is now considered obsolete by Mozilla.
The Adobe Flex SDK which compiles SWF files from source code was released as an open-source project and was donated to the Apache Software Foundation in 2011, and rebranded as Apache Flex.
Adobe created the Open Screen Project which removes licensing fees and opens data protocols for Flash. The project has not received much success.
The Flash community has created many open-source projects that target Flash Player, such as Flash Develop (an alternative IDE to Flash Builder), MTASC (compiler), and Haxe(multiplatform language). Away3D is a 3D game engine for Flash, and is entirely open source.
Some CPU emulators have been created for Flash Player, including Chip8, Commodore 64, ZX Spectrum and the Nintendo Entertainment System. They enable video games created for such platforms to run within Flash Player.

Availability

Desktop platforms

The latest version of Flash Player is available for many major desktop platforms, including Windows (XP and newer) and OS X (10.6 and later). The latest version is also available on Linux but only on Google Chrome as Adobe no longer releases updates for the non-PPAPI plugin on Linux.
Adobe released an alpha version of Flash Player 10 for x86-64 Linux on November 17, 2008. Adobe released a beta version of Flash Player 11 on July 13, 2011, which has 64-bit editions for all supported platforms. Flash Player 11 was released to web on October 3, 2011.
Adobe Flash Player 11 is available in three flavors: "ActiveX", "Plug-in" and "Projector". The "ActiveX" version is an ActiveX control for use in Internet Explorer and any other Windows applications that supports ActiveX technology. The "plug-in" version is available for Netscape-compatible browsers on Microsoft Windows, Macintosh and Linux. The "projector" version is a standalone player that can open SWF files directly.
In February 2012, Adobe announced it would discontinue development of Flash Player on Linux for all browsers except Google Chrome. As of April 2015 version 18 is the Adobe Labs preview release.
The Extended Support Release (ESR) of Flash Player on Mac and Windows, a version of Flash Player kept up to date with security updates, but none of the new features or bug fixes available in later versions, has been version 11.7 as of 9 July 2013 then version 13 as of 13 May 2014.
The following table documents Flash Player and Adobe AIR support on desktop operating systems:
Operating SystemPrerequisitesUsageLatest Adobe Flash PlayerBrowser support
Microsoft WindowsWindows XP/Vista/7/8, Windows Server 2003/2008/2012 (AIR for "Win32")Internet browsers, standalone applicationsFlash Player 18.0, AIR 18.0Internet Explorer, Firefox, Chrome,Chromium, Safari, Opera
Mac OS XOS X 10.6 or newerInternet browsers, standalone applicationsFlash Player 18.0, AIR 18.0Safari, Firefox, Chrome, Chromium,Opera
Linux with NPAPI-based browsersNoneInternet browsersFlash Player 11.2Firefox, Chrome, Chromium, Opera
Linux with Google Chrome, includingChromium OS (PPAPI-based browsers)Google ChromeInternet browsersFlash Player 18.0Google Chrome, Chromium, Opera

Mobile platforms

In 2011, Flash Player had emerged as the de facto standard for online video publishing on the desktop, with adaptive bitrate video streaming, DRM, and fullscreen support.On mobile devices however, after Apple refused to allow the Flash Player within the inbuilt iOS web browser, Adobe changed strategy, enabling Flash content to be delivered as native mobile applications using the Adobe Integrated Runtime.
Up until 2012, Flash Player 11 was available for the Android (ARM Cortex-A8 and above), although in June 2012, Google announced that Android 4.1 (codenamed Jelly Bean) would not support Flash by default. Starting in August 2012, Adobe no longer updates Flash for Android. In spite of this, Adobe Flash is still available to install on Android devices via Adobe's update archives (up to Android 4.3).
Flash Player is certified to be supported on a select range of mobile and tablet devices, from Acer, BlackBerry 10, Dell, HTC, Lenovo, Logitech, LG, Motorola, Samsung, Sharp,SoftBank, Sony (and Sony Ericsson), and Toshiba. As of 2012, Adobe has stopped browser-based Flash Player development for mobile browsers in favor of HTML5, however Adobe continues to support Flash content on mobile devices with the Adobe Integrated Runtime, which allows developers to publish content that runs as native applications on certain supported mobile phone platforms.
Version 9 is the most recent version currently available for the Linux/ARM-based Nokia 770/N800/N810 Internet tablets running Maemo OS2008, classic Mac OS and Windows 95/NT. Version 10 can be run under Windows 98/Me using KernelEx. HP offers Version 6 of the player for HP-UX. Other versions of the player have been available at some point for OS/2, Symbian OS, Palm OS, BeOS and IRIX. The Kodak Easyshare One includes Flash Player.
Adobe said it will optimize Flash for use on ARM architecture (ARMv6 and ARMv7 architectures used in the ARM11 family and the Cortex-A series of processors) and release it in the second half of 2009. The company also stated it wants to enable Flash on NVIDIA Tegra, Texas Instruments OMAP 3 and Samsung ARMs. Beginning 2009, it was announced that Adobe would be bringing Flash to TV sets via Intel Media Processor CE 3100 before mid-2009. ARM Holdings later said it welcomes the move of Flash, because "it will transform mobile applications and it removes the claim that the desktop controls the Internet." However, as of May 2009, the expected ARM/Linux netbookdevices had poor support for Web video and fragmented software base.
Among other devices, LeapFrog Enterprises provides Flash Player with their Leapster Multimedia Learning System and extended the Flash Player with touch-screen support.Sony has integrated Flash Player 6 into the PlayStation Portable's web browser via firmware version 2.70 and Flash Player 9 into the PlayStation 3's web browser in firmware version 2.50. Nintendo has integrated Flash Lite 3.1, equivalent to Flash 8, in the Internet Channel on the Wii.
The following table documents Flash Player and Adobe AIR support on mobile operating systems:
Operating systemPrerequisitesUsageLatest Adobe Flash Player
AndroidAndroid 2.2 to Android 4.3, ARM Cortex-A8+Standalone Applications & Internet BrowserFlash Player 11.1, AIR 3.1
AndroidAndroid 2.1, available on some rare Android devices like the Motorola FlipoutInternet BrowserFlash Lite 3.0
Apple iOSNoneStandalone ApplicationsFlash Player 11.1, AIR 3.1
BlackBerry 10Any version of BlackBerry 10 (Up to and including version 10.3. Flash was removed from 10.3.1 onwards)Internet Browser & Standalone ApplicationsFlash Player 11.1, AIR 3.1
BlackBerry Tablet OSNoneStandalone Applications & Internet BrowserFlash Player 11.1, AIR 3.1
MaemoInternet BrowserFlash Player 9.4
PS3Firmware 2.50, NetFront 2.81Internet BrowserFlash Player 9.1 (update 3)
PSPFirmware 2.70Internet BrowserFlash Player 6
Symbian OSInternet BrowserFlash Lite 4.0
WiiOperaInternet ChannelFlash Lite 3.1
Pocket PCPocket PC 2003Internet BrowserFlash Player 7 (stand-alone apps v6)
Windows MobileWindows Mobile 5Internet BrowserFlash Player 7

Criticism

Usability

In some browsers, previous Flash versions have had to be uninstalled before an updated version could be installed. However, as of version 11.2 for Windows, there are now automatic updater options. Linux is partially supported, as Adobe is cooperating with Google to implement it via Chrome web browser on all Linux platforms.
Mixing Flash applications with HTML leads to inconsistent behavior with respect to input handling (keyboard and mouse not working as they would in an HTML-only document). This is often done in web sites and can lead to poor user experience with the site.
The 2014-02-20 update to 12.0.0.70 introduced a reported bug, producing green video with sound only. This defect is related to hardware acceleration and may be overcome by disabling hardware acceleration via the Adobe settings in Firefox (accessed by right clicking within the video) or in Internet Explorer (within the Tools settings). This defect may be related to widely used graphics hardware, AMD Radeon HD video cards, and similar visual defects have occurred in earlier Flash updates, with the same workaround.

Privacy

Flash Player supports persistent local storage of data (also referred to as Local Shared Objects), which can be used similarly to HTTP cookies or Web Storage in web applications. Local storage in Flash Player allows websites to store non-executable data on a user's computer, such as authentication information, game high scores or saved games, server-based session identifiers, site preferences, saved work, or temporary files. Flash Player will only allow content originating from exactly the same website domain to access data saved in local storage.
Because local storage can be used to save information on a computer that is later retrieved by the same site, a site can use it to gather user statistics, similar to how HTTP cookies and Web Storage can be used. With such technologies, the possibility of building a profile based on user statistics is considered by some a potential privacy concern. Users can disable or restrict use of local storage in Flash Player through a "Settings Manager" page. These settings can be accessed from the Adobe website or by right-clicking on Flash-based content and selecting "Global Settings".
Local storage can be disabled entirely or on a site-by-site basis. Disabling local storage will block any content from saving local user information using Flash Player, but this may disable or reduce the functionality of some websites, such as saved preferences or high scores and saved progress in games.
Flash Player 10.1 and upward honor the privacy mode settings in the latest versions of the Chrome, Firefox, Internet Explorer, and Safari web browsers, such that no local storage data is saved when the browser's privacy mode is in use.

Security

Adobe security bulletins and advisories announce security updates, but Adobe Flash Player release notes do not disclose the security issues addressed when a release closes security holes, making it difficult to evaluate the urgency of a particular update. A version test page allows the user to check if the latest version is installed, and uninstallers may be used to ensure that old-version plugins have been uninstalled from all installed browsers.
In February 2010, Adobe officially apologized for not fixing a known vulnerability for over 1 year. In June 2010 Adobe announced a "critical vulnerability" in recent versions, saying there are reports that this vulnerability is being actively exploited in the wild against both Adobe Flash Player, and Adobe Reader and Acrobat. Later, in October 2010, Adobe announced another critical vulnerability, this time also affecting Android-based mobile devices. Android users have been recommended to disable Flash or make it only on demand. Subsequent security vulnerabilities also exposed Android users, such as the two critical vulnerabilities published in February 2013 or the four critical vulnerabilities published in March 2013, all of which could lead to arbitrary code execution.
Symantec's Internet Security Threat Report states that a remote code execution in Adobe Reader and Flash Player was the second most attacked vulnerability in 2009. The same report also recommends using 'browser add-ons' wherever possible to disable Adobe Flash Player when visiting untrusted sites. McAfee predicted that Adobe software, especially Reader and Flash, would be primary target for attacks in 2010. Adobe applications had become, at least at some point, the most popular client-software targets for attackers during the last quarter of 2009. The Kaspersky Security Network published statistics for the third quarter of 2012 showing that 47.5% of its users were affected by one or more critical vulnerabilities. The report also highlighted that "Flash Player vulnerabilities enable cybercriminals to bypass security systems integrated into the application."
Steve Jobs criticized the security of Flash Player, noting that "Symantec recently highlighted Flash for having one of the worst security records in 2009". Adobe responded by pointing out that "the Symantec Global Internet Threat Report for 2009, found that Flash Player had the second lowest number of vulnerabilities of all Internet technologies listed (which included both web plug-ins and browsers)."

Vendor lock-in

Flash Player 11.2 does not play certain kinds of content unless it has been digitally signed by Adobe, following a license obtained by the publisher directly from Adobe.
This move by Adobe, together with the abandonment of Flex to Apache was criticized as a way to lock out independent tool developers, in favor of Adobe's commercial tools.
This has been resolved as of January 2013, after Adobe no longer requires a license or royalty from the developer. All premium features are now classified as general availability, and can be freely used by Flash applications.

Apple controversy

In April 2010, Steve Jobs, at the time CEO of Apple Inc. published an open letter explaining why Apple would not support Flash on the iPhone, iPod touch and iPad. In the letter he blamed the "openness", the stability, the security and the performance of the Flash Player as reasons for refusing to support it. He explained why Flash is not suitable fortouchscreen devices. He also claimed that when one of Apple's Macintosh computers crashes, "more often than not" the cause can be attributed to Flash, and described Flash as "buggy". Adobe's CEO Shantanu Narayen responded by saying, "If Flash [is] the number one reason that Macs crash, which I'm not aware of, it has as much to do with the Apple operating system."
Steve Jobs also claimed that a large percentage of the video on the internet is supported on iOS, since many popular video sharing websites such as YouTube have published video content in an HTML5 compatible format, enabling videos to playback in mobile web browsers even without Flash Player.

No comments: