This is not the document you are looking for? Use the search form below to find more!

Report home > Manual & Guide

Learning Flash Lite 1.X ActionScript

0.00 (0 votes)
Document Description
Dowload ebook free learning programming in flash and actionscript: Learning Flash Lite 1.x ActionScript.pdf. Ebook Flash from Free ITebooks, ebook on caomputer and programming
File Details
  • Added: May, 10th 2010
  • Reads: 329
  • Downloads: 6
  • File size: 326.83kb
  • Pages: 26
  • Tags: actionscript, flash
  • content preview
Submitter
Embed Code:

Add New Comment




Related Documents

Macromedia Flash Lite 1.1 Authoring Guidelines

by: manualzon, 86 pages

macromedia flash lite ebook guidelines, to add flash applications in your mobile phone. Can be combined with actionscript as well as a regular flash programming

Flash Lite Overview

by: sebastian, 47 pages

Flash Lite Overview

Flash Lite 3 - Next Generation Flash Mobile

by: janet, 36 pages

Flash Lite 3 - Next Generation Flash Mobile

Motorola Backflip Announced, With Android 2.1 And Flash 10.1 Update- David Novak (TheGadgetGUYcolumn.com)

by: armida, 3 pages

Motorola Backflip Announced, With Android 2.1 And Flash 10.1 Update- David Novak (TheGadgetGUYcolumn.com)

MOST IMPORTANT QUESTIONS SA-1 X MATHS

by: janak raj kalia, 7 pages

IMPORTANT QUESTIONS SA-1 X MATHS CBSE

Flash Lite Authoring Guidelines for the i-mode Service by NTT DoCoMo

by: manualzon, 48 pages

Free ebook on Flash Lite for the i-mode Service by NTT DoCoMo.pdf. Download this free ebook on Flash Lite Programming

Sprunk Beverages News Flash Sonderausgabe #1

by: Kingofkings, 14 pages

Sprunk Beverages News Flash Sodnerausgabe #1

Learning Flash

by: manualzon, 122 pages

Free ITebooks programming ebooks about flash and action script in pdf file, to learn macromedia Flash MX. This ebook is for beginner ActionScript and Flash

A Search At The Top quality Technology Provided In The HTC 1 X

by: alarmneedle63, 2 pages

Due to the fact the telephone is optimised to run the new application from the commence (instead tha...

BASEPROTECT UG, LTD. v. JOHN DOES 1-X

by: Baxter, 21 pages

1.0 Complaint

Content Preview
Learning Flash Lite 1.X ActionScript

Trademarks
1 Step RoboPDF, ActiveEdit, ActiveTest, Authorware, Blue Sky Software, Blue Sky, Breeze, Breezo, Captivate, Central,
ColdFusion, Contribute, Database Explorer, Director, Dreamweaver, Fireworks, Flash, FlashCast, FlashHelp, Flash Lite,
FlashPaper, Flash Video Endocer, Flex, Flex Builder, Fontographer, FreeHand, Generator, HomeSite, JRun, MacRecorder,
Macromedia, MXML, RoboEngine, RoboHelp, RoboInfo, RoboPDF, Roundtrip, Roundtrip HTML, Shockwave, SoundEdit,
Studio MX, UltraDev, and WebHelp are either registered trademarks or trademarks of Macromedia, Inc. and may be registered in
the United States or in other jurisdictions including internationally. Other product names, logos, designs, titles, words, or phrases
mentioned within this publication may be trademarks, service marks, or trade names of Macromedia, Inc. or other entities and
may be registered in certain jurisdictions including internationally.
Third-Party Information
This guide contains links to third-party websites that are not under the control of Macromedia, and Macromedia is not
responsible for the content on any linked site. If you access a third-party website mentioned in this guide, then you do so at your
own risk. Macromedia provides these links only as a convenience, and the inclusion of the link does not imply that Macromedia
endorses or accepts any responsibility for the content on those third-party sites.
Speech compression and decompression technology licensed from Nellymoser, Inc. (www.nellymoser.com).
Sorenson™ Spark™ video compression and decompression technology licensed from
Sorenson Media, Inc.
Opera ® browser Copyright © 1995-2002 Opera Software ASA and its suppliers. All rights reserved.
Macromedia Flash 8 video is powered by On2 TrueMotion video technology. © 1992-2005 On2 Technologies, Inc. All Rights
Reserved. http://www.on2.com.
Visual SourceSafe is a registered trademark or trademark of Microsoft Corporation in the United States and/or other countries.
Copyright © 2005 Macromedia, Inc. All rights reserved. This manual may not be copied, photocopied, reproduced,
translated, or converted to any electronic or machine-readable form in whole or in part without written approval from
Macromedia, Inc. Notwithstanding the foregoing, the owner or authorized user of a valid copy of the software with which
this manual was provided may print out one copy of this manual from an electronic version of this manual for the sole
purpose of such owner or authorized user learning to use such software, provided that no part of this manual may be
printed out, reproduced, distributed, resold, or transmitted for any other purposes, including, without limitation,
commercial purposes, such as selling copies of this documentation or providing paid-for support services.

Acknowledgments
Project Management: Mary Leigh Burke
Writing: Tim Statler
Managing Editor: Rosana Francescato
Editing: Linda Adler, Geta Carlson, Evelyn Eldridge, Mary Kraemer, Lisa Stanziano
Production Management: Patrice O’Neill, Kristin Conradi, Yuko Yagi
Media Design and Production: Adam Barnett, Aaron Begley, Paul Benkman. John Francis, Geeta Karmarkar, Masayo Noda,
Paul Rangel, Arena Reed, Mario Reynoso
Special thanks to Lisa Friendly, Bonnie Loo, Erick Vera, the beta testers, and the entire Flash Lite engineering and QA teams.
First Edition: September 2005
Macromedia, Inc.
601 Townsend St.
San Francisco, CA 94103

Contents
Chapter 1: About Flash Lite 1.x ActionScript . . . . . . . . . . . . . . . . . . 5
Flash Lite 1.x ActionScript overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Differences between Flash Lite 1.0 and Flash Lite 1.1 ActionScript . . . 6
Flash 4 ActionScript not supported by Flash Lite 1.x ActionScript. . . . 6
Features not available in Flash Lite 1.x ActionScript . . . . . . . . . . . . . . . . 7
Chapter 2: Flash 4 ActionScript Primer. . . . . . . . . . . . . . . . . . . . . . 9
Getting and setting movie clip properties . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Controlling other timelines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Using variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
Emulating arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
Working with text and strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Using the call() function to create functions . . . . . . . . . . . . . . . . . . . . . . . 13
Using the eval() function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Chapter 3: Common Scripting Tasks . . . . . . . . . . . . . . . . . . . . . . . 19
Determining device and platform capabilities . . . . . . . . . . . . . . . . . . . . . 19
Opening a web page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Initiating a phone call . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Initiating a text or multimedia message . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Initiating an e-mail message. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Loading external SWF files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Loading external data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
3

4
Contents

CHAPTER 1
About Flash Lite 1.x
1
ActionScript
You use ActionScript to add programming logic and interactivity to your Macromedia Flash
Lite applications. The version of ActionScript in Flash Lite 1.0 and 1.1—referred to
collectively as Flash Lite 1.x ActionScript—is a hybrid of Flash 4 ActionScript, plus additional
commands and properties specific the Flash Lite player, such as the ability to initiate phone
calls or text messages, or get time and date information from the device.
This chapter contains the following topics:
Flash Lite 1.x ActionScript overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Differences between Flash Lite 1.0 and Flash Lite 1.1 ActionScript . . . . . . . . . . . . . . 6
Flash 4 ActionScript not supported by Flash Lite 1.x ActionScript. . . . . . . . . . . . . . . 6
Features not available in Flash Lite 1.x ActionScript . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Flash Lite 1.x ActionScript overview
Flash Lite 1.x ActionScript consists of the following parts:
Flash Player 4 ActionScript This includes operators (for example, comparison and
assignment operators), movie clip properties (for example, _height, _x, and _y), Timeline
control functions (for example, gotoAndPlay() or stop()), and network functions, such as
the loadVariables() and loadMovie() functions (Flash Lite 1.1 only). For a list of
unsupported Flash 4 ActionScript, see “Flash 4 ActionScript not supported by Flash Lite 1.x
ActionScript” on page 6.
Phone integration commands and properties Flash Lite provides commands that let you,
for example, query the date and time information from the device, initiate a phone call or
short message service (SMS) text message, or start external applications installed on
the device.
Platform capability variables (Flash Lite 1.1 only) These properties provide information
about the capabilities of the device or Flash Lite runtime environment. For example, the
_capLoadData variable indicates if your application can load data over the network.
5

fscommand2() function Like
the
fscommand() function, you use fscommand2() to
communicate with the host environment or system—in this case, the mobile phone or device.
The fscommand2() function provides enhancements to fscommand(), including the ability
to pass an arbitrary number of arguments and to retrieve immediate return values (rather than
having to wait until the next frame, as with fscommand()).
Differences between Flash Lite 1.0 and
Flash Lite 1.1 ActionScript
The following Flash Lite 1.1 ActionScript features are not available in Flash Lite 1.0:

Network access or network status information. For example, in Flash Lite 1.0 you cannot
use the loadVariables() or loadMovie() functions to load external data or SWF files,
or the various fscommand2() commands for determining a device’s connection signal
strength or the status of a network request.

Getting time and date information from the device.

Platform capability variables, which provide information about the capabilities of the
Flash Lite platform and of the device.

The fscommand2() function and its associated commands, such as SetSoftKeys and
FullScreen.

The scroll and maxscroll text field properties.
Flash 4 ActionScript not supported by
Flash Lite 1.x ActionScript
The following Flash 4 ActionScript features are unsupported, or only partially supported, in
Flash Lite 1.x ActionScript:

The startDrag() and stopDrag() functions.

Flash Lite 1.x ActionScript supports a subset of the button events supported in Flash
Player 4. For more information about handling button events, see Chapter 1, “Creating
Interactivity and Navigation” in Developing Flash Lite Applications.

Flash Lite 1.x ActionScript supports a subset of key events supported in Flash Player 4.
For more information about supported key events in Flash Lite, see Chapter 1, “Creating
Interactivity and Navigation” in Developing Flash Lite Applications.

The _dropTarget property.
6
About Flash Lite 1.x ActionScript


The _soundBufTime property.

The _url property.

The String() conversion function.
Features not available in Flash Lite 1.x
ActionScript
Because Flash Lite player is based on an older version of Flash Player, it does not support all
the programming features available in more recent releases of Flash Player or other
programming languages that you might be familiar with. This section discusses programming
features not available in Flash Lite 1.x ActionScript and available alternatives and
work-arounds.
User-defined functions Flash Lite 1.x does not support the ability to define and call
custom functions. However, you can use the call() function to execute code that resides on
an arbitrary frame in the timeline. For more information, see “Using the call() function to
create functions” on page 13.
Native arrays, objects, or other complex data types Flash Lite 1.x does not support
native array data structures or other complete data types. However, you can emulate arrays
using pseudo-arrays, a technique that involves using the eval() function to dynamically
evaluate concatenated strings. For more information, see “Emulating arrays” on page 11.
Runtime loading of external image or sound files Unlike the desktop version of Flash
Player, Flash Lite 1.x ActionScript cannot load external JPEG files or MP3 files. In Flash Lite
1.1 you can use the loadMovie() function to load external SWF files. For more information,
see “Loading external SWF files” on page 22.
Features not available in Flash Lite 1.x ActionScript
7

8
About Flash Lite 1.x ActionScript

CHAPTER 2
Flash 4 ActionScript Primer
2
Flash Lite 1.x ActionScript is based on the version of ActionScript that was first available in
Flash Player 4. Consequently, several programming features available in later versions of Flash
Player (for desktop systems) are not available to Flash Lite 1.x applications.
If you’re unfamiliar with Flash 4 ActionScript syntax and features or if you’ve forgotten some
of the details from previous Flash development work, this chapter provides a primer on using
Flash 4 ActionScript in your Flash Lite applications.
This chapter contains the following topics:
Getting and setting movie clip properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Controlling other timelines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Using variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Emulating arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Working with text and strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Using the call() function to create functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Using the eval() function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
Getting and setting movie clip properties
To get or set a movie clip property (if settable), you can use dot syntax or the setProperty()
or getProperty() functions. You can also use the tellTarget() function.
To use dot syntax, specify the movie clip instance name, followed by a dot (.) and then the
property name. For example, the following code gets the x screen coordinate (represented by
the _x movie clip property) of the movie clip named cartoonArea, and assigns the result to a
variable named x_pos.
x_pos = cartoonArea._x;
The following example is equivalent to the previous example, but uses the getProperty()
function to retrieve the movie clip’s x position:
x_pos = getProperty(cartoonArea, _x);
9

The setProperty() function lets you set a property of a movie clip instance, as shown in the
following example:
setProperty(cartoonArea, _x, 100);
The following example is equivalent to the previous example but uses dot syntax:
cartoonArea._x = 100;
You can also get or set movie clip properties from within a tellTarget() statement. The
following code is equivalent to the setProperty() example shown previously:
tellTarget("/cartoonArea") {
_x = 100;
}
For more information about the tellTarget() function, see “Controlling other timelines”
on page 10.
Controlling other timelines
To specify a path to a timeline, use slash syntax (/) combined with dots (..) to build the path
reference. You can also use _levelN, _root, or _parent from Flash 5 notation to refer to,
respectively, a specific movie level, the application’s root timeline, or the parent timeline.
For example, suppose you had a movie clip instance named box on your SWF file’s main
timeline. The box instance, in turn, contains another movie clip instance named cards. The
following examples target the movie clip cards from the main timeline:
tellTarget("/box/cards")
tellTarget("_level0/box/cards")
The following example targets the main timeline from the movie clip cards:
tellTarget("../../cards")
tellTarget("_root")
The following example targets the parent movie clip cards:
tellTarget("../cards")
tellTarget("_parent/cards")
10
Flash 4 ActionScript Primer

Document Outline

  • Contents
  • About Flash Lite 1.x ActionScript
    • Flash Lite 1.x ActionScript overview
    • Differences between Flash Lite 1.0 and Flash Lite 1.1 ActionScript
    • Flash 4 ActionScript not supported by Flash Lite 1.x ActionScript
    • Features not available in Flash Lite 1.x ActionScript
  • Flash 4 ActionScript Primer
    • Getting and setting movie clip properties
    • Controlling other timelines
    • Using variables
    • Emulating arrays
    • Working with text and strings
      • Concatenating strings
      • Scrolling text
    • Using the call() function to create functions
    • Using the eval() function
  • Common Scripting Tasks
    • Determining device and platform capabilities
    • Opening a web page
    • Initiating a phone call
    • Initiating a text or multimedia message
    • Initiating an e-mail message
    • Loading external SWF files
    • Loading external data
  • Index

Download
Learning Flash Lite 1.X ActionScript

 

 

Your download will begin in a moment.
If it doesn't, click here to try again.

Share Learning Flash Lite 1.X ActionScript to:

Insert your wordpress URL:

example:

http://myblog.wordpress.com/
or
http://myblog.com/

Share Learning Flash Lite 1.X ActionScript as:

From:

To:

Share Learning Flash Lite 1.X ActionScript.

Enter two words as shown below. If you cannot read the words, click the refresh icon.

loading

Share Learning Flash Lite 1.X ActionScript as:

Copy html code above and paste to your web page.

loading