You are on page 1of 20

Flash Lite Developer Guides for LG Phones

Version 1.3 - Jun 23th, 2009

LGDN-FTD-FL-DG-V1.3EN
LG Mobile Developer Network

Mobile Communication Company


Mobile Handset R&D Center
Copyright

Copyright
Copyright © 2008 LG Electronics Inc. All Rights Reserved.

Though every care has been taken to ensure the accuracy of this document, LG Electronics Inc. cannot accept
responsibility for any errors or omissions or for any loss occurred to any person, whether legal or natural, from
acting, or refraining from action, as a result of the information contained herein. Information in this document is
subject to change at any time without obligation to notify any person of such changes.

LG Electronics Inc. may have patents or patent pending applications, trademarks copyrights or other intellectual
property rights covering subject matter in this document. The furnishing of this document does not give the
recipient or reader any license to these patents, trademarks copyrights or other intellectual property rights.

No part of this document may be communicated, distributed, reproduced or transmitted in any form or by any
means, electronic or mechanical or otherwise, for any purpose, without the prior written permission of LG
Electronics Inc.

The document is subject to revision without further notice.

All brand names and product names mentioned in this document are trademarks or registered trademarks of
their respective owners.

Trademarks
Adobe, the Adobe logo, Flash, the Flash logo, and Flash Lite are either registered trademarks or trademarks of
Adobe Systems Incorporated in the United States and/or other countries.

All other trademarks and copyrights are the property of their respective owners.

2 Flash Lite™ Developer Guides for LG Phones


About This Document

About This Document

Revision History

Version Date Comment

1.0 2008-09-10 Initial Release

1.1 2008-12-12 Flash Lite 2.0 & 3.0 Enabled Phone Features were updated

Chapter 1 Flash Lite Enabled LG Phone Features was updated and Chapter
1.2 2009-02-09
2 Deploying SWF Files into LG Phone was added

1.3 2009-06-23 The GR500 and the Flash Lite in wallpaper column was added in Chapter 1

Purpose and Scope

This Guide is intended to make it easier for developers to create Adobe® Flash® Lite™ applications for
LG mobile phones equipped with Flash Lite.

This Guide provides Flash Lite 1.1, 2.0 and 3.0 supported LG phone features, and provides guide on how
to deploy SWF file into LG phones. Also, tips on how to optimize Flash Lite applications are described.

Audience

This Guide is designed for the developers with basic knowledge in Flash Lite. Thus, this guide assumes
that the reader is knowledgeable of basic concepts and terminology about Flash Lite. If you feel that the
contents of this guide difficult and require more detailed explanations, refer to the following references
or other related books.

References

Refer to the following references for more information:

Topic Reference

http://www.adobe.com/devnet/devices/flashlite.ht
Adobe Flash Lite product page
ml

http://livedocs.adobe.com/flashlite/3.0/docs/help.ht
Introduction to Flash Lite 2.x and 3.0 ActionScript
ml?content=Part3_Intro_FL_AS_1.html

http://livedocs.adobe.com/flashlite/3.0/docs/help.ht
Developing Flash Lite 2.x and 3.0 Application
ml?content=Part2_Dev_Guide_1.html

http://livedocs.adobe.com/flashlite/3.0/docs/help.ht
Flash Lite 2.x and 3.0 Action Script Language Reference
ml?content=Part4_API_Ref_1.html

http://www.adobe.com/devnet/devices/flashlite.ht
Adobe Mobile and Devices Developer Center
ml

Flash Lite™ Developer Guides for LG Phones 3


Conventions

Conventions

Codes

In this document, the following indications are used to explain the syntax of programming language and
source code:

 Source code is indicated in Courier New.

 Function names are indicated in bold Courier New.

 Parameters are indicated in Courier New.

Notes & Cautions

Notes and cautions are used to emphasize information. The following samples describe when each is
used.

Note
Note contains information about something that is helpful to you.

Caution
Caution contains important information about something that you should know.

Definition of Terminology
The following table defines the terminologies used in this document:

Terminology Description

OTA Over-The-Air

MMS Multimedia Messaging Service

4 Flash Lite™ Developer Guides for LG Phones


Organization

Organization
This document contains the following chapters:

Chapter 1 Flash Lite Enabled LG Phone Features

This chapter provides Flash Lite 1.1, 2.0 and 3.0 phone features supported on LG mobile devices.

Chapter 2 Deploying SWF Files into LG Phone

This chapter introduces the SWF file deployment methods and guide on how to use LG PC Suite tool to
deploy SWF files into LG phones.

Appendix A Optimization Tips

This appendix A describes development steps for Flash Lite application performance optimization techniques.

Flash Lite™ Developer Guides for LG Phones 5


Contents

Contents

1 Flash Lite Enabled LG Phone Features ......................................................................... 8

1.1 Flash Lite 1.1 Enabled Phone Features ..................................................................................................................................... 9

1.2 Flash Lite 2.0 Enabled Phone Features ..................................................................................................................................... 9

1.3 Flash Lite 3.0 Enabled Phone Features ...................................................................................................................................10

2 Deploying SWF Files into LG Phone ........................................................................... 11

2.1 SWF File Deployment Methods ..................................................................................................................................................12

2.1.1 Phone Directory ...................................................................................................................................................................... 12

2.1.2 SWF File Size Limitation ...................................................................................................................................................... 13

2.2 Deploying SWF File Using LG PC Suite ..................................................................................................................................14

2.2.1 Deployment Process ............................................................................................................................................................. 14

A Optimization Tips ........................................................................................................... 17

A.1 Problems ................................................................................................................................................................................................18

A.2 Performance Considerations ........................................................................................................................................................19

Index ...................................................................................................................................... 20

6 Flash Lite™ Developer Guides for LG Phones


Tables

Tables
Table 1-1. Flash Lite 1.1 enabled phone features ........................................................................................................................9

Table 1-2. Flash Lite 2.0 enabled phone features ........................................................................................................................9

Table 1-3. Flash Lite 3.0 enabled phone features ..................................................................................................................... 10

Table 2-1. SWF File Deployment Method ..................................................................................................................................... 12

Table 2-2. SWF File Size Limitation .................................................................................................................................................. 13

Flash Lite™ Developer Guides for LG Phones 7


1 Flash Lite Enabled LG Phone
Features

This chapter provides Flash Lite 1.1, 2.0 and 3.0 phone features supported on LG mobile devices.

Contents

1.1 Flash Lite 1.1 Enabled Phone Features


1.2 Flash Lite 2.0 Enabled Phone Features
1.3 Flash Lite 3.0 Enabled Phone Features
Chapter 1 - Flash Lite Enabled LG Phone Features

1.1 Flash Lite 1.1 Enabled Phone Features


The features of Flash Lite 1.1 enabled LG mobile devices are as below:

Table 1-1. Flash Lite 1.1 enabled phone features

Browser Flash Lite


FL Color Standalone
Region Model LCD size inline in
version depth player
playback wallpaper

Europe U400 1.1 240x320 32 bit Yes No No

1.2 Flash Lite 2.0 Enabled Phone Features


The features of Flash Lite 2.0 enabled LG mobile devices are as below:

Table 1-2. Flash Lite 2.0 enabled phone features

Browser Flash Lite


FL Color Standalone
Region Model LCD size inline in
version depth player
playback wallpaper

Europe KC560 2.0 240x320 16 bit Yes No Yes

Europe, C.
KF350 2.0 240x320 16 bit Yes No Yes
South America

Europe, C.
South America, KF700 2.0 240x480 16 bit Yes Yes Yes
Middle East

Europe U830 2.0 176x220 16 bit Yes Yes No

Europe KC970 2.0 240x320 16 bit Yes Yes No

Europe KU990 2.0 240x400 16 bit Yes Yes Yes

North America CB630 2.0 240x320 16 bit Yes Yes Yes

KU970
Europe, Asia 2.0 240x400 16 bit Yes Yes No
U970

Flash Lite™ Developer Guides for LG Phones 9


Chapter 1 - Flash Lite Enabled LG Phone Features

1.3 Flash Lite 3.0 Enabled Phone Features


The features of Flash Lite 3.x enabled LG mobile devices are as below:

Table 1-3. Flash Lite 3.0 enabled phone features

Browser Flash Lite


FL Color Standalone
Region Model LCD size inline in
version depth player
playback wallpaper

Europe,
KM900 3.0 480x800 16 bit Yes Yes No
C. South America

Europe HB620 3.0 320x240 16 bit Yes Yes Yes

Europe, Asia KB770 3.0 240x400 16 bit Yes No Yes

Europe KS500 3.0 240x320 16 bit Yes Yes No

Europe, C. South
KF750
America, Middle 3.0 240x320 16 bit Yes Yes Yes
KF757
East & Africa, CIS

Europe KC910 3.0 240x400 16 bit Yes Yes Yes

GT500
Europe, Asia 3.0.4 240x400 16 bit Yes Yes No
GT505

North America GR500 3.0 240x400 16 bit No Yes No

10 Flash Lite™ Developer Guides for LG Phones


2 Deploying SWF Files into LG
Phone

This chapter introduces the SWF file deployment methods and guide on how to use LG PC Suite tool to
deploy SWF files into LG phones.

Contents

2.1 SWF File Deployment Methods


2.2 Deploying SWF File Using LG PC Suite
Chapter 2 - Deploying SWF Files into LG Phone

2.1 SWF File Deployment Methods


The following methods can be used to deploy SWF files into LG phones.

 OTA Provisioning (Web Download)


 Bluetooth
 LG PC Suite (USB Cable)
 Email Attachment
 MMS
 External Memory Card

The following table shows SWF file deployment method supported by LG phones:

Table 2-1. SWF File Deployment Method

U400 U830
KU990 KC970
KB770 HB620
Deployment Method CB630 KC560 KF350 KM900
KS500 KF700
KC910 KF750
GT500/GT505

OTA Provisioning    

Bluetooth    

LG PC Suite    

Email Attachment   

MMS  

External Memory Card  

2.1.1 Phone Directory

To deploy SWF files into mobile phones, you must deploy the files into the correct folder in the device.
In most LG phones, the standalone player is supposed to recognize SWF files those are located in the
FlashContents folder or subfolders within them.

Once the file is deployed, you can find the SWF file from My Files – Flash Contents menu to view and
select it. The standalone player will then open the SWF file for viewing.

Note
Most LG phones support this folder, while in some case the folder might be different. You must first
check the folder and deploy SWF files into it.

12 Flash Lite™ Developer Guides for LG Phones


Chapter 2 - Deploying SWF Files into LG Phone

2.1.2 SWF File Size Limitation

The size limitations of SWF files for each model are listed in the following table. When you deploy SWF
files into LG phones, they must be less than the limitation in size.

Table 2-2. SWF File Size Limitation

100 KB 300 KB 500 KB

U400, U830, KC970, KC560, KF350, KS500,


CB630, KU990, HB620, KF750, KC910, KM900
KB770, KF700 GT500/GT505

Flash Lite™ Developer Guides for LG Phones 13


Chapter 2 - Deploying SWF Files into LG Phone

2.2 Deploying SWF File Using LG PC Suite


LG phones support the following deployment tool that allows you to download and deploy SWF file on
your target devices using a USB cable.

LG PC Suite
LG PC Suite is a Data Transfer Software Suite that helps you conveniently transfer data stored in a
mobile phone to a PC, and from a PC back to a mobile phone. You can also download the latest version
of LG PC Suite from the LG Mobile.com web site.

Requirements
The following hardware and software are needed to deploy SWF file using LG PC Suite:

 USB Data Cable


 LG PC Suite
 USB Driver: If the USB driver is not deployed into a PC, it will be deployed automatically when you
deploy LG PC Suite.

2.2.1 Deployment Process

The deployment process of a SWF file using LG PC Suite is as follows:

1. Connect a target phone to your PC using a USB data cable.

2. Launch LG PC Suite deployed on the PC. If the Connection Wizard appears, select the connect
method between the target phone and the PC and perform the user authentication process. The
Connection Wizard then detects which phone is connected to the PC and the following window
appears.

14 Flash Lite™ Developer Guides for LG Phones


Chapter 2 - Deploying SWF Files into LG Phone

3. If the target phone is successfully connected to the PC, the following window appears. Clck [Contents].

4. Select your project folder that contains the SWF files in the PC Folder, then a list of SWF files in the
folder is shown in the right panel of the window.

Select the desired SWF file and select [To Phone] from top menu to deploy them. You can also drag
and drop the selected SWF file into the right panel of the window.

Flash Lite™ Developer Guides for LG Phones 15


Chapter 2 - Deploying SWF Files into LG Phone

5. Deploying the SWF file starts and the following screens are displayed on the phone LCD.

6. As deploying the SWF files are finished, the phone starts to read them.

Once the SWF files are deployed, they can be used on the device.

16 Flash Lite™ Developer Guides for LG Phones


A Optimization Tips

This appendix A describes development steps for Flash Lite application performance optimization
techniques.

Contents

A.1 Problems
A.2 Performance Considerations
Appendix A - Optimization Tips

A.1 Problems
Since Flash Lite applications run on performance restricted devices, developing without regard to the
mobile device’s performance presents the following obstacles.

 CPU performance issues: Using high-quality motion and vector images


 Increasing memory utilization: Using high-quality or complex images and bitmaps

18 Flash Lite™ Developer Guides for LG Phones


Appendix A - Optimization Tips

A.2 Performance Considerations


In this section we present methods for maximizing Flash Lite application performance.

1. Establishing the concept


Establishing content concepts with considerations for the mobile CPU performance.

2. Design
Creating image sources (bitmap or vector) with CPU performance and memory considerations in mind.

3. Architecture planning and development


Developing with ActionScript and architecture planning for code reuse and easier, simpler editing.

4. Device CPU & memory checks


Check CPU and memory usage on device when application runs.
 Use QXDM1 to check UI task performance.
 Use Flash Lite SAPlayer2 to check memory utilization.

5. Optimization
Concentrate on optimizing problem areas where quality and utilization are important.

The following is a general optimization method:


 Memory utilization should be practical for viewing structured movie clips.

The following are for design optimization:


 Limit alpha usage.
 Use bitmap images.
 Limit use of masks.
 Use simple vector shapes.
 Limit use of gradients.
 Limit use of full screen modes.
 For CPU performance caps, set _quality to LOW and replace vector images with bitmaps. While a
HIGH _quality setting produces smooth vector images, it increases CPU consumption.

The following are ActionScript optimization techniques:


 Use local variables instead of global variables.
 Use short variable names.
 After using onEnterFrame make sure to use Delete to avoid unnecessary CPU usage.
 Limit excessive use of onEnterFrame.

6. Conclusion

1 QXDM is a QUALCOMM device diagnostic tool.


2 SAPlayer is a debug tool included with the full version of Flash™.

Flash Lite™ Developer Guides for LG Phones 19


Index
B M
Bluetooth ..................................................................................... 12 MMS ............................................................................................... 12

E O
Email Attachment..................................................................... 12 Optimization .............................................................................. 20
External Memory Card .......................................................... 12 OTA ................................................................................................. 12

F P
Flash Lite 1.1 Featured Phones ............................................9 Phone Directory ....................................................................... 12
Flash Lite 2.0 Featured Phones ............................................9
Flash Lite 3.0 Featured Phones ......................................... 10 S
SWF File Deployment Methods ........................................ 12

SWF File Size Limitation ....................................................... 13
LG PC Suite ......................................................................... 12, 14

You might also like