ART-Improving Execution Time for Flash Applications

ART-Improving Execution Time for Flash Applications

Ming Ying, James Miller
DOI: 10.4018/jssoe.2011010101
OnDemand:
(Individual Articles)
Available
$37.50
No Current Special Offers
TOTAL SAVINGS: $37.50

Abstract

Rich Internet Applications (RIA) require fast execution time and allow richer, faster, and more interactive experiences. Flash is a common technology for building RIAs. Flash programmers usually specialize in graphic design rather than programming. In addition, the tight schedule of projects makes the Flash programmers ignore non-functional characteristics such as the efficiency of their systems; yet, to enhance Flash users’ experiences, writing efficient ActionScript code is a key requirement. Flash programmers require automated support to assist with this key requirement. This paper proposes a refactoring system called ART (ActionScript Refactoring Tool) to provide automatic support for Flash programmers by rewriting their ActionScript code to make their applications faster.
Article Preview
Top

Introduction

Nowadays, the Web 2.0 has significantly changed the way users interact with the web. The nature of Web 2.0 requires the growth of Rich Internet Application (RIA) technologies, such as Flash and Ajax. RIA technologies allow richer, faster and more interactive experiences. It breaks the old click-and-wait user experience mode. Instead, by only changing updated information without refreshing the entire page, RIA makes the web-based application feels more like a desktop application (Hewlett-Packard, 2007).

Adobe Flash is a multimedia platform for creating interactive and animated web sites. Flash movies and games are commonly integrated into web pages as components for entertainment or advertisement. For example, there are many Flash games in Facebook (n.d.). Flash contains ActionScript 3.0 (AS3) which is an object-oriented scripting language based on ECMAScript. To view these Flash movies and to execute these ActionScript files, browsers require the Adobe Flash Player add-on. Adobe (2009) claims that about 99% of Internet-enabled desktops have the Adobe Flash Player (10-current version) installed. Many smartphones including Android, BlackBerry, Palm webOS devices, etc now also support Flash Player 10.

The performance of Flash applications, especially in mobile devices, directly influences the user’s experience. Speed is one of the most important requirements for mobile devices’ users (Buyukozkan, 2009). The user’s experience of Flash applications is partially determined by the download time and execution time of Flash files. Download time depends on the size of the Flash file and the connection speed to Internet. The file size can be reduced through the compression of the file. Execution time relies on the processing power of the client machine and the performance of the ActionScript code. Although reducing Flash files’ size is helpful, it is not the key point; writing faster and more efficient ActionScript code is the most useful way to improve the user’s experience.

The quality of Flash code is highly dependent on the developers; however, Flash programmers often “have backgrounds in music, art, business, philosophy, or just about anything other than programming. This diversity results in awesome creativity and content” (Skinner, 2007), but imposes technical challenges. In addition, the tight schedule of a project tends to result in developers concentrating on “getting the functionality correct” (Skinner, 2007), while ignoring non-functional characteristics such as efficiency.

This paper presents a “refactoring for efficiency” Flash support system, ART (ActionScript Refactoring Tool), to help AS3 programmers produce more efficient code by automatically transforming their ActionScript code. This paper is organized as follows: First we discusse the efficiency problems in traditional web applications and RIAs, and related works. Then we introduce the Flash execution model. Next we analyze possible strategies for improving efficiency in Flash applications and then describe the design of ART. Finally we provide an evaluation of our system and conclude the article.

Complete Article List

Search this Journal:
Reset
Volume 13: 1 Issue (2024): Forthcoming, Available for Pre-Order
Volume 12: 2 Issues (2022): 1 Released, 1 Forthcoming
Volume 11: 2 Issues (2021)
Volume 10: 2 Issues (2020)
Volume 9: 2 Issues (2019)
Volume 8: 4 Issues (2018)
Volume 7: 4 Issues (2017)
Volume 6: 4 Issues (2016)
Volume 5: 4 Issues (2015)
Volume 4: 4 Issues (2014)
Volume 3: 4 Issues (2012)
Volume 2: 4 Issues (2011)
Volume 1: 4 Issues (2010)
View Complete Journal Contents Listing