Reviews & Opinions
Independent and trusted. Read before buy Macromedia Flash 8 - Flash Lite 2 X Actionscript Language Reference!

Macromedia Flash 8 - Flash Lite 2 X Actionscript Language Reference


Bookmark
Macromedia Flash 8 - Flash Lite 2 X Actionscript Language Reference

Bookmark and Share

 

Macromedia Flash 8 - Flash Lite 2 X Actionscript Language ReferenceAbout Macromedia Flash 8 - Flash Lite 2 X Actionscript Language Reference
Here you can find all about Macromedia Flash 8 - Flash Lite 2 X Actionscript Language Reference like manual and other informations. For example: review.

Macromedia Flash 8 - Flash Lite 2 X Actionscript Language Reference manual (user guide) is ready to download for free.

On the bottom of page users can write a review. If you own a Macromedia Flash 8 - Flash Lite 2 X Actionscript Language Reference please write about it to help other people.
[ Report abuse or wrong photo | Share your Macromedia Flash 8 - Flash Lite 2 X Actionscript Language Reference photo ]

 

 

Manual

Preview of first few manual pages (at low quality). Check before download. Click to enlarge.
Manual - 1 page  Manual - 2 page  Manual - 3 page 

Download (English)
Macromedia Flash 8-flash Lite 2.x Actionscript Language Reference, size: 10.3 MB

 

Macromedia Flash 8 - Flash Lite 2 X Actionscript Language Reference

 

 

User reviews and opinions

<== Click here to post a new opinion, comment, review, etc.

Comments to date: 1. Page 1 of 1. Average Rating:
settsa 7:00pm on Sunday, May 9th, 2010 
Love both the silicone case and zebra sleeve pouch. This product is EXACTLY what I wanted. It fits perfectly and it got here very fast. The item was all that the description said it would be! I am very pleased with this product and would recommend it to friends.

Comments posted on www.ps2netdrivers.net are solely the views and opinions of the people posting them and do not necessarily reflect the views or opinions of us.

 

Documents

doc0

parseFloat(string:Stri Converts a string to a floating-point number. ng) : Number parseInt(expression:St Converts a string to an integer. ring, [radix:Number]) : Number play() prevFrame()
Moves the playhead forward in the Timeline. Sends the playhead to the previous frame.

prevScene()

Sends the playhead to Frame 1 of the previous scene. Deprecated since Flash Player 5. This function was deprecated in favor of Math.random(). Returns a random integer between 0 and one less than the integer specified in the value parameter.
random(value:Number) : Number
removeMovieClip(target Deletes the specified movie clip. :Object) setInterval (functionName:Object, interval:Number, [param:Object], objectName:Object, methodName:String) : Number setProperty(target:Obj Changes a property value of a movie clip as the ect, property:Object, expression:Object) startDrag(target:Objec Makes the target movie clip draggable while the t, [lock:Boolean], [left,top,right,bottom :Number]) stop() stopAllSounds()
Calls a function or a method or an object at periodic intervals while a SWF file plays.

movie clip plays.

movie plays.
Stops the SWF file that is currently playing. Stops all sounds currently playing in a SWF file without stopping the playhead. Stops the current drag operation. parameter. was deprecated in favor of String.substr().

stopDrag()

String(expression:Obje Returns a string representation of the specified ct) : String
substring(string:Strin Deprecated since Flash Player 5. This function g, index:Number, count:Number) : String Extracts part of a string. targetPath(targetObjec Returns a string containing the target path of t:Object) : String

movieClipObject.

ng, statement(s):Object)
recommends that you use dot (.) notation and the with statement. Applies the instructions specified in the statements parameter to the Timeline specified in the target parameter. Deprecated since Flash Player 5. This function was deprecated in favor of _quality. Turns anti-aliasing on and off in Flash Player.
tellTarget(target:Stri Deprecated since Flash Player 5. Adobe

toggleHighQuality()

trace(expression:Objec Evaluates the expression and outputs the result. t) unescape(string:String Evaluates the parameter x as a string, decodes the ) : String
string from URL-encoded format (converting all hexadecimal sequences to ASCII characters), and returns the string. Removes a movie clip that was loaded by means of loadMovie() from Flash Player. means of loadMovieNum() from Flash Player.

unloadMovie(target)

unloadMovieNum(level:N Removes a SWF or image that was loaded by umber)

Array function

Array(): Array Array(numElements:Number): Array Array( [element0:Object [, element1, element2,.elementN] ]) : Array

canEmail = _capEmail; if (canEmail == 1) { getURL("mailto:someone@somewhere.com?subject=foo&body=bar"); }

_capLoadData property

Deprecated since Flash Lite Player 2.0. This action was deprecated in favor of the System.capabilities.hasDataLoading property. Numeric variable; indicates whether the host application can dynamically load additional data through calls to the loadMovie(), loadMovieNum(), loadVariables(), and loadVariablesNum() functions. If so, this variable is defined and has a value of 1; if not, this variable is undefined. Example If the host application can perform dynamic loading of movies and variables, the following example sets CanLoad to 1:
canLoad = _capLoadData; if (canLoad == 1) { loadVariables("http://www.somewhere.com/myVars.php", GET); } else { trace ("client does not support loading dynamic data"); }

_capMFi property

Deprecated since Flash Lite Player 2.0. This action was deprecated in favor of the System.capabilities.hasMFi property. Numeric variable; indicates whether the device can play sound data in the Melody Format for i-mode (MFi) audio format. If so, this variable is defined and has a value of 1; if not, this variable is undefined. Example If the device can play MFi sound data, the following example sets canMFi to 1:
canMFi = _capMFi; if (canMFi == 1) { // send movieclip buttons to frame with buttons that trigger events sounds tellTarget("buttons") { gotoAndPlay(2); } }
hasMFI (capabilities.hasMFI property)

_capMIDI property

Deprecated since Flash Lite Player 2.0. This action was deprecated in favor of the System.capabilities.hasMIDI property. Numeric variable; indicates whether the device can play sound data in the Musical Instrument Digital Interface (MIDI) audio format. If so, this variable is defined and has a value of 1; if not, this variable is undefined.
Example If the device can play MIDI sound data, the following example sets _capMIDI to 1:
canMIDI = _capMIDI; if (canMIDI == 1) { // send movieclip buttons to frame with buttons that trigger events sounds tellTarget("buttons") { gotoAndPlay(2); } }

_capMMS property

Deprecated since Flash Lite Player 2.0. This action was deprecated in favor of the System.capabilities.hasMMS property. Numeric variable; indicates whether Flash Lite can send Multimedia Messaging Service (MMS) messages by using the GetURL() ActionScript command. If so, this variable is defined and has a value of 1; if not, this variable is undefined. Example The following example sets canMMS to 1 in Flash Lite 1.1, but leaves it undefined in Flash Lite 1.0 (however, not all Flash Lite 1.1 phones can send MMS messages, so this code is still dependent on the phone):

_global property

_global.identifier
A reference to the global object that holds the core ActionScript classes, such as String, Object, Math, and Array. For example, you could create a library that is exposed as a global ActionScript object, similar to the Math or Date object. Unlike Timeline-declared or locally declared variables and functions, global variables and functions are visible to every timeline and scope in the SWF file, provided they are not obscured by identifiers with the same names in inner scopes. Note: When setting the value of a global variable, you must use the fully qualified name of the variable, for instance, _global.variableName. Failure to do so creates a local variable of the same name that obscures the global variable you are attempting to set. ReturnsA reference to the global object that holds the core ActionScript classes, such as String, Object, Math, and Array. Example The following example creates a top-level function, factorial(), that is available to every timeline and scope in a SWF file:
_global.factorial = function(n:Number) { if (n&lt;=1) { return 1; } else { return n*factorial(n-1); } } // Note: factorial 4 == 4*3*2*1 == 24 trace(factorial(4)); // output: 24
The following example shows how the failure to use the fully qualified variable name when setting the value of a global variable leads to unexpected results:
_global.myVar = "global"; trace("_global.myVar: " + _global.myVar); // _global.myVar: global trace("myVar: " + myVar); // myVar: global myVar = "local"; trace("_global.myVar: " + _global.myVar); // _global.myVar: global trace("myVar: " + myVar); // myVar: local
var statement, set variable statement

_highquality property

Deprecated since Flash Player 5. This property was deprecated in favor of _quality. Specifies the level of anti-aliasing applied to the current SWF file. Specify 2 (best quality) to apply the best quality. Specify 1 (high quality) to apply anti-aliasing. Specify 0 (low quality) to prevent anti-aliasing. Example The following ActionScript is placed on the main timeline, and sets the global quality property to apply anti-aliasing. _highquality = 1; See also

_quality property

_level property

_levelN

A reference to the root Timeline of _levelN. You must use loadMovieNum() to load SWF files into the Flash Player before you use the _level property to target them. You can also use _levelN to target a loaded SWF file at the level assigned by N. The initial SWF file loaded into an instance of the Flash Player is automatically loaded into _level0. The SWF file in _level0 sets the frame rate, background color, and frame size for all subsequently loaded SWF files. SWF files are then stacked in higher-numbered levels above the SWF file in _level0.

trace(System.capabilities.hasAccessibility);
hasAudio (capabilities.hasAudio property)
public static hasAudio : Boolean [read-only]
Specifies if the system has audio capabilities. A Boolean value that is true if the player is running on a system that has audio capabilities; false otherwise. The server string is A. Example The following example traces the value of this read-only property:
trace(System.capabilities.hasAudio);
hasAudioEncoder (capabilities.hasAudioEncoder property)
public static hasAudioEncoder : Boolean [read-only]
Specifies if the Flash Player can encode an audio stream. A Boolean value that is true if the player can encode an audio stream, such as that coming from a microphone; false otherwise. The server string is AE. Note: For Flash Lite 2.0, the value returned is always false. Example The following example traces the value of this read-only property:
trace(System.capabilities.hasAudioEncoder);
hasCMIDI (capabilities.hasCMIDI property)
public static hasCMIDI : Boolean [read-only]
Returns true if the mobile device can play sound data in the CMIDI audio format. Otherwise,this property returns false. Example The following example traces the value of this read-only property:
trace(System.capabilities.hasCMIDI);
hasCompoundSound (capabilities.hasCompoundSound property)
public static hasCompoundSound : Boolean [read-only]
Returns true if the Flash Lite player can process compound sound data. Otherwise, it returns false. Example The following example traces the value of this read-only property:
trace(System.capabilities.hasCompoundSound);
hasDataLoading (capabilities.hasDataLoading property)
public static hasDataLoading : Boolean [read-only]
Returns true if the Flash Lite player can dynamically load additional data through calls to specific functions. You can call the following specific functions:
loadMovie() loadMovieNum() loadVariables() loadVariablesNum() XML.parseXML() Sound.loadSound() MovieClip.loadVariables() MovieClip.loadMovie() MovieClipLoader.loadClip() LoadVars.load() LoadVars.sendAndLoad()
Otherwise, this property returns false. Example The following example traces the value of this read-only property:

UTC(year:Number, month:Number, [date:Number], [hour:Number], [minute:Number], [second:Number], [millisecond:Number] ) : Number valueOf() : Number
Returns the number of milliseconds since midnight January 1, 1970, universal time, for this Date.

Date constructor

public Date([yearOrTimevalue:Number], [month:Number], [date:Number], [hour:Number], [minute:Number], [second:Number], [millisecond:Number])
Constructs a new Date object that holds the specified date and time. The Date() constructor takes up to seven parameters (year, month,., millisecond) to specify a date and time to the millisecond. Alternatively, you can pass a single value to the Date() constructor that indicates a time value based on the number of milliseconds since January 1, 1970 0:00:000 GMT. Or you can specify no parameters, and the Date() date object is assigned the current date and time. For example, this code shows several different ways to create a Date object:

var var var var

d1:Date d3:Date d4:Date d5:Date

= = = =

new new new new
Date(); Date(2000, 0, 1); Date(65, 2, 6, 9, 30, 15, 0); Date(-14159025000);
In the first line of code, a Date object is set to the time when the assignment statement is run. In the second line, a Date object is created with year, month, and date parameters passed to it, resulting in the time 0:00:00 GMT January 1, 2000. In the third line, a Date object is created with year, month, and date parameters passed to it, resulting in the time 09:30:15 GMT (+ 0 milliseconds) March 6, 1965. Note that since the year parameter is specified as a two-digit integer, it is interpreted as 1965. In the fourth line, only one parameter is passed, which is a time value representing the number of milliseconds before or after 0:00:00 GMT January 1, 1970; since the value is negative, it represents a time before 0:00:00 GMT January 1, 1970, and in this case the time is 02:56:15 GMT July, 21 1969. Parameters [optional] - If other parameters are specified, this number represents a year (such as 1965); otherwise, it represents a time value. If the number represents a year, a value of 0 to 99 indicates 1900 through 1999; otherwise all four digits of the year must be specified. If the number represents a time value (no other parameters are specified), it is the number of milliseconds before or after 0:00:00 GMT January 1, 1970; a negative values represents a time before 0:00:00 GMT January 1, 1970, and a positive value represents a time after.
yearOrTimevalue:Number month:Number date:Number hour:Number
[optional] - An integer from 0 (January) to 11 (December).
[optional] - An integer from 1 to 31. [optional] - An integer from 0 (midnight) to 23 (11 p.m.). [optional] - An integer from 0 to 59. [optional] - An integer from 0 to 59. [optional] - An integer from 0 to 999 of milliseconds.

month:Number date:Number hour:Number
Example The following example creates a new maryBirthday_date Date object defined in universal time. This is the universal time variation of the example used for the new Date constructor method. The output is in local time and varies accordingly. For Pacific Daylight Time the output is seven hours earlier than UTC: Sun Aug 11 17:00:00 GMT-0700 1974.
var maryBirthday_date:Date = new Date(Date.UTC(1974, 7, 12)); trace(maryBirthday_date);
valueOf (Date.valueOf method)
public valueOf() : Number
Returns the number of milliseconds since midnight January 1, 1970, universal time, for this Date. Returns
- The number of milliseconds.
Object | +-Error public class Error extends Object
Contains information about an error that occurred in a script. You create an Error object using the Error constructor function. Typically, you throw a new Error object from within a try code block that is then caught by a catch or finally code block. You can also create a subclass of the Error class and throw instances of that subclass. Property summary

message:String

Contains the message associated with the Error object. Contains the name of the Error object.

Error([message: String])

Creates a new Error object.
Returns the string "Error" by default or the value contained in Error.message, if defined.

Error constructor

public Error([message:String])
Creates a new Error object. If message is specified, its value is assigned to the object's Error.message property. Parameters
[optional] - A string associated with the Error object.
Example In the following example, a function throws an error (with a specified message) if the two strings that are passed to it are not identical:
function compareStrings(str1_str:String, str2_str:String):Void { if (str1_str != str2_str) { throw new Error("Strings do not match."); } } try { compareStrings("Dog", "dog"); // output: Strings do not match. } catch (e_err:Error) { trace(e_err.toString()); }
throw statement, try.catch.finally statement
message (Error.message property)

origX = garbage_mc._x; origY = garbage_mc._y; garbage_mc.onPress = function() { this.startDrag(); }; garbage_mc.onRelease = function() { this.stopDrag(); if (eval(this._droptarget) == trashcan_mc) { this._visible = false; } else {
this._x = origX; this._y = origY; } };
startDrag (MovieClip.startDrag method), stopDrag (MovieClip.stopDrag method), eval function
duplicateMovieClip (MovieClip.duplicateMovieClip method)
public duplicateMovieClip(name:String, depth:Number, [initObject:Object]) : MovieClip
Creates an instance of the specified movie clip while the SWF file is playing. Duplicated movie clips always start playing at Frame 1, no matter what frame the original movie clip is on when the duplicateMovieClip() method is called. Variables in the parent movie clip are not copied into the duplicate movie clip. Movie clips that are created with the duplicateMovieClip() method are not duplicated if you call the duplicateMovieClip() method on their parent. If the parent movie clip is deleted, the duplicate movie clip is also deleted. If you used MovieClip.loadMovie() or the MovieClipLoader class to load a movie clip, the contents of the SWF file are not duplicated. This means that you cannot save bandwidth by loading a JPEG, GIF, PNG, or SWF file and then duplicating the movie clip. Contrast this method with the global function version of duplicateMovieClip(). The global version of this method requires a parameter that specifies the target movie clip to duplicate. Such a parameter is unnecessary for the MovieClip class version, because the target of the method is the movie clip instance on which the method is invoked. Moreover, the global version of duplicateMovieClip() supports neither the initobject parameter nor the return value of a reference to the newly created MovieClip instance. Parameters
- A unique identifier for the duplicate movie clip.

depth:Number - A

unique integer specifying the depth at which the new movie clip is placed. Use depth -16384 to place the new movie clip instance beneath all content created in the authoring environment. Values between -16383 and -1, inclusive, are reserved for use by the authoring environment and should not be used with this method. The remaining valid depth values range from 0 to 1048575, inclusive.
initObject:Object [optional] - (Supported for Flash Player 6 and later.) An object containing properties with which to populate the duplicated movie clip. This parameter allows dynamically created movie clips to receive clip parameters. If initObject is not an object, it is ignored. All properties of initObject are copied into the new instance. The properties specified with initObject are available to the constructor function.

for (i = 0; i < 3; i++) { drawClip(i); } function drawClip(n:Number):Void { this.createEmptyMovieClip("triangle" + n, this.getNextHighestDepth()); var mc:MovieClip = eval("triangle" + n); mc.beginFill(0x00aaFF, 100); mc.lineStyle(4, 0xFF0000, 100); mc.moveTo(0, 0); mc.lineTo(100, 100); mc.lineTo(0, 100); mc.lineTo(0, 0); mc._x = n * 30; mc._y = n * 50 mc.createTextField("label", this.getNextHighestDepth(), 20, 50, 200, 200) mc.label.text = mc.getDepth(); }
getDepth (MovieClip.getDepth method), getInstanceAtDepth (MovieClip.getInstanceAtDepth method), swapDepths (MovieClip.swapDepths method), attachMovie (MovieClip.attachMovie method), duplicateMovieClip (MovieClip.duplicateMovieClip method), createEmptyMovieClip (MovieClip.createEmptyMovieClip method)
getSWFVersion (MovieClip.getSWFVersion method)
public getSWFVersion() : Number
Returns an integer that indicates the Flash Player version for the movie clip was published. If the movie clip is a JPEG, GIF, or PNG file, or if an error occurs and Flash can't determine the SWF version of the movie clip, -1 is returned. You can extend the methods and event handlers of the MovieClip class by creating a subclass. Returns
Number - An integer that specifies the Flash Player version that was targeted when the SWF file loaded into the movie clip was published.
Example The following example creates a new container and outputs the value of getSWFVersion(). It then uses MovieClipLoader to load an external SWF file that was published to Flash Player 7 and outputs the value of getSWFVersion() after the onLoadInit handler is triggered.
var container:MovieClip = this.createEmptyMovieClip("container", this.getUpperEmptyDepth()); var listener:Object = new Object(); listener.onLoadInit = function(target:MovieClip):Void { trace("target: " + target.getSWFVersion()); // target: 7 } var mcLoader:MovieClipLoader = new MovieClipLoader(); mcLoader.addListener(listener); trace("container: " + container.getSWFVersion()); // container: 8 mcLoader.loadClip("FlashPlayer7.swf", container);
getURL (MovieClip.getURL method)
public getURL(url:String, [window:String], [method:String]) : Void
Loads a document from the specified URL into the specified window. The getURL() method can also be used to pass variables to another application defined at the URL by using a GET or POST method. Web pages that host Flash movies must explicitly set the allowScriptAccess attribute to allow or deny scripting for the Flash Player from the HTML code (in the PARAM tag for Internet Explorer or the EMBED tag for Netscape Navigator):

_rotation (MovieClip._rotation property)
Specifies the rotation of the movie clip, in degrees, from its original orientation. Values from 0 to 180 represent clockwise rotation; values from 0 to -180 represent counterclockwise rotation. Values outside this range are added to or subtracted from 360 to obtain a value within the range. For example, the statement my_mc._rotation = 450 is the same as my_mc._rotation = 90. Example The following example creates a triangle movie clip instance dynamically. When you run the SWF file, click the movie clip to rotate it:
this.createEmptyMovieClip("triangle", this.getNextHighestDepth()); triangle.beginFill(0x0000FF, 100); triangle.moveTo(100, 100); triangle.lineTo(100, 150); triangle.lineTo(150, 100); triangle.lineTo(100, 100); triangle.onMouseUp= function() { this._rotation += 15; };
_rotation (Button._rotation property), _rotation (TextField._rotation property)
setMask (MovieClip.setMask method)
public setMask(mc:Object) : Void
Makes the movie clip in the parameter mc a mask that reveals the calling movie clip. The setMask() method allows multiple-frame movie clips with complex, multilayered content to act as masks (which is possible by using mask layers). If you have device fonts in a masked movie clip, they are drawn but not masked. You can't set a movie clip to be its own maskfor example, my_mc.setMask(my_mc). If you create a mask layer that contains a movie clip, and then apply the setMask() method to it, the setMask() call takes priority and this is not reversible. For example, you could have a movie clip in a mask layer called UIMask that masks another layer that contains another movie clip called UIMaskee. If, as the SWF file plays, you call UIMask.setMask(UIMaskee), from that point on, UIMask is masked by UIMaskee. To cancel a mask created with ActionScript, pass the value null to the setMask() method. The following code cancels the mask without affecting the mask layer in the Timeline.

UIMask.setMask(null);

mc:Object
- The instance name of a movie clip to be a mask. This can be a String or a
MovieClip. Example The following code uses the circleMask_mc movie clip to mask the theMaskee_mc movie clip:
theMaskee_mc.setMask(circleMask_mc);
_soundbuftime (MovieClip._soundbuftime property)

setFocus (Selection.setFocus method)
getFocus (Selection.getFocus method)
public static getFocus() : String
Returns a string specifying the target path of the object that has focus.
If a TextField object has focus, and the object has an instance name, the getFocus() method returns the target path of the TextField object. Otherwise, it returns the TextField's variable name. If a Button object or button movie clip has focus, the getFocus() method returns the target path of the Button object or button movie clip. If neither a TextField object, Button object, Component instance, nor button movie clip has focus, the getFocus() method returns null.

- A string or null.

Example The following example creates a text field to output the path of the currently focused object. It then uses an interval function to periodically update the field. To test this, add several button instances to the stage with different instance names, and then add the following ActionScript to your AS or FLA file.
this.createTextField("status_txt", this.getNextHighestDepth(), 0, 0, 150, 25); function FocusUpdate() { s = Selection.getFocus(); if ( s ) { status_txt.text = s; } } setInterval( FocusUpdate, 100 );
onSetFocus (Selection.onSetFocus event listener), setFocus (Selection.setFocus method)
onSetFocus (Selection.onSetFocus event listener)
onSetFocus = function([oldfocus], [newfocus]) {}
Notified when the input focus changes. To use this listener, you must create a listener object. You can then define a function for this listener and use the Selection.addListener() method to register the listener with the Selection object, as in the following code:
var someListener:Object = new Object(); someListener.onSetFocus = function () { // statements } Selection.addListener(someListener);
Listeners enable different pieces of code to cooperate because multiple listeners can receive notification about a single event. Parameters

oldfocus: newfocus:

[optional] - The object losing focus. [optional] - The object receiving focus.
Example The following example demonstrates how to determine when input focus changes in a SWF file between several dynamically created text fields. Enter the following ActionScript into a FLA or AS file and then test the document:
this.createTextField("one_txt", 1, 0, 0, 100, 22); this.createTextField("two_txt", 2, 0, 25, 100, 22); this.createTextField("three_txt", 3, 0, 50, 100, 22); this.createTextField("four_txt", 4, 0, 75, 100, 22); for (var i in this) { if (this[i] instanceof TextField) { this[i].border = true; this[i].type = "input"; } } this.createTextField("status_txt", this.getNextHighestDepth(), 200, 10, 300, 100); status_txt.html = true; status_txt.multiline = true; var someListener:Object = new Object(); someListener.onSetFocus = function(oldFocus, newFocus) { status_txt.htmlText = "<b>setFocus triggered</b>"; status_txt.htmlText += "<textformat tabStops='[20,80]'>"; status_txt.htmlText += "&nbsp;\toldFocus:\t"+oldFocus;

_width:Number wordWrap:Boolean

_x:Number

_xmouse:Number [read- Returns the x coordinate of the mouse position
_ymouse:Number [read- Indicates the y coordinate of the mouse position
onChanged = ld:TextField) {} onKillFocus = function(newFocus:O bject) {} onScroller = eld:TextField) {} onSetFocus = function(oldFocus:O bject) {}
Event handler/listener; invoked when the content of a text field
function(changedFie changes.
Invoked when a text field loses keyboard focus.
Event handler/listener; invoked when one of the text field scroll
function(scrolledFi properties changes.
Invoked when a text field receives keyboard focus.
:Object) : Boolean getDepth() : Number
notifications. Returns the depth of a text field. the text field's text format object. range of characters, or for an entire TextField
addListener(listener Registers an object to receive TextField event
getNewTextFormat() : Returns a TextFormat object containing a copy of TextFormat
getTextFormat([begin Returns a TextFormat object for a character, for a Index:Number], TextFormat removeListener (listener:Object) : Boolean removeTextField() : Void replaceSel(newText: String) : Void replaceText (beginIndex:Number, endIndex:Number, newText:String) : Void setNewTextFormat(tf: Sets the default new text format of a text field. TextFormat) : Void setTextFormat([begin Applies the text formatting specified by the Index:Number], [endIndex:Number], textFormat:TextForma t) : Void [endIndex:Number]) : object.
Removes a listener object previously registered to a text field instance with TextField.addListener(). Removes the text field. Replaces the current selection with the contents of the newText parameter. Replaces a range of characters, specified by the beginIndex and endIndex parameters, in the specified text field with the contents of the newText parameter.
textFormat parameter to some or all of the text in a text field.
addListener (TextField.addListener method)

Property (global); sets or retrieves the rendering quality used for a SWF file. Device fonts are always aliased and, therefore, are unaffected by the _quality property. Note: Although you can specify this property for a TextField object, it is actually a global property, and you can specify its value simply as _quality. For more information, see the _quality property. The _quality property can be set to the following values:
"LOW" Low rendering quality. Graphics are not anti-aliased, and bitmaps are not smoothed. "MEDIUM" Medium rendering quality. Graphics are anti-aliased using a 2 x 2 pixel grid, but bitmaps are not smoothed. The quality is suitable for movies that do not contain text. "HIGH" High rendering quality. Graphics are anti-aliased using a 4 x 4 pixel grid, and bitmaps are smoothed if the movie is static. This is the default rendering quality used by Flash. "BEST" Very high rendering quality. Graphics are anti-aliased using a 4 x 4 pixel grid and bitmaps are always smoothed.
Note: This property is not supported for Arabic, Hebrew, and Thai. Example The following example sets the rendering quality to LOW:
my_txt._quality = "LOW";
removeListener (TextField.removeListener method)
Removes a listener object previously registered to a text field instance with TextField.addListener(). Parameters
listener:Object TextField.onChanged
- The object that will no longer receive notifications from or TextField.onScroller.
Returns - If listener was successfully removed, the method returns a true value. If was not successfully removed (for example, if listener was not on the TextField object's listener list), the method returns a value of false.
Example The following example creates an input text field called my_txt. When the user types into the field, information about the number of characters in the text field is displayed in the Output panel. When the user types into the field, information about the number of characters in the text field writes to the log file. If the user clicks the removeListener_btn instance, then the listener is removed and information is no longer displayed. If the user clicks the removeListener_btn instance, then the listener is removed and information no longer writes to the log file.
this.createTextField("my_txt", this.getNextHighestDepth(), 10, 10, 160, 20); my_txt.border = true; my_txt.type = "input"; var txtListener:Object = new Object(); txtListener.onChanged = function(textfield_txt:TextField) { trace(textfield_txt+" changed. Current length is: "+textfield_txt.length); }; my_txt.addListener(txtListener); removeListener_btn.onRelease = function() { trace("Removing listener."); if (!my_txt.removeListener(txtListener)) { trace("Error! Unable to remove listener"); } };

url:String - A string that represents the URL where the XML document to be loaded is located. If the SWF file that issues this call is running in a web browser, url must be in the same domain as the SWF file; for details, see the Description section.
- false if no parameter (null) is passed; true otherwise. Use the onLoad() event handler to check the success of a loaded XML document. Example The following simple example uses the XML.load() method:
// create a new XML object var flooring:XML = new XML(); // set the ignoreWhite property to true (default value is false) flooring.ignoreWhite = true; // After loading is complete, trace the XML object flooring.onLoad = function(success) { trace(flooring); }; // load the XML into the flooring object flooring.load("flooring.xml");
For the contents of the flooring.xml file, and the output that this example produces, see the example for XML.ignoreWhite. See also
ignoreWhite (XML.ignoreWhite property), loaded (XML.loaded property), onLoad (XML.onLoad handler)
loaded (XML.loaded property)
Indicates if the XML document has successfully loaded. If there is no custom onLoad() event handler defined for the XML object, then this property is set to true when the documentloading process initiated by the XML.load() call has completed successfully; otherwise, it is false. However, if you define a custom behavior for the onLoad() event handler for the XML object, be sure to set onload in that function.
Example The following example uses the XML.loaded property in a simple script:
var my_xml:XML = new XML(); my_xml.ignoreWhite = true; my_xml.onLoad = function(success:Boolean) { trace("success: "+success); trace("loaded: "+my_xml.loaded); trace("status: "+my_xml.status); }; my_xml.load("http://www.flash-mx.com/mm/problems/products.xml");
Information displays in the Output panel when the onLoad handler invokes. If the call completes successfully, true displays for the loaded status in the Output panel.
success: true loaded: true status: 0
load (XML.load method), onLoad (XML.onLoad handler)
onData (XML.onData handler)
Invoked when XML text has been completely downloaded from the server, or when an error occurs downloading XML text from a server. This handler is invoked before the XML is parsed, and you can use it to call a custom parsing routine instead of using the Flash XML parser. The src parameter is a string that contains XML text downloaded from the server, unless an error occurs during the download, in which case the src parameter is undefined. By default, the XML.onData event handler invokes XML.onLoad. You can override the XML.onData event handler with custom behavior, but XML.onLoad is not called unless you call it in your implementation of XML.onData. Parameters

doc1

INTRODUCTION TO FLASH LITE 2.x ACTIONSCRIPT
2007 Adobe Systems Incorporated. All rights reserved. Introduction to Flash Lite 2.x ActionScript If this guide is distributed with software that includes an end user agreement, this guide, as well as the software described in it, is furnished under license and may be used or copied only in accordance with the terms of such license. Except as permitted by any such license, no part of this guide may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, recording, or otherwise, without the prior written permission of Adobe Systems Incorporated. Please note that the content in this guide is protected under copyright law even if it is not distributed with software that includes an end user license agreement. The content of this guide is furnished for informational use only, is subject to change without notice, and should not be construed as a commitment by Adobe Systems Incorporated. Adobe Systems Incorporated assumes no responsibility or liability for any errors or inaccuracies that may appear in the informational content contained in this guide. Please remember that existing artwork or images that you may want to include in your project may be protected under copyright law. The unauthorized incorporation of such material into your new work could be a violation of the rights of the copyright owner. Please be sure to obtain any permission required from the copyright owner. Any references to company names in sample templates are for demonstration purposes only and are not intended to refer to any actual organization. Adobe, the Adobe logo, Flash Lite, and Flash are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries. Third-Party Information This guide contains links to third-party websites that are not under the control of Adobe Systems Incorporated, and Adobe Systems Incorporated 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. Adobe Systems Incorporated provides these links only as a convenience, and the inclusion of the link does not imply that Adobe Systems Incorporated endorses or accepts any responsibility for the content on those thirdparty sites. Sorenson Spark video compression and decompression technology licensed from Sorenson Media, Inc. Fraunhofer-IIS/Thomson Multimedia: MPEG Layer-3 audio compression technology licensed by Fraunhofer IIS and Thomson Multimedia (http://www.iis.fhg.de/amm/). Independent JPEG Group: This software is based in part on the work of the Independent JPEG Group. Nellymoser, Inc.: Speech compression and decompression technology licensed by Nellymoser, Inc. (http:www.nelly-moser.com). 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. Updated Information/Additional Third Party Code Information available at http://www.adobe.com/go/thirdparty/. Adobe Systems Incorporated, 345 Park Avenue, San Jose, California 95110, USA. Notice to U.S. Government End Users. The Software and Documentation are Commercial Items, as that term is defined at 48 C.F.R. 2.101, consisting of Commercial Computer Software and Commercial Computer Software Documentation, as such terms are used in 48 C.F.R. 12.212 or 48 C.F.R. 227.7202, as applicable. Consistent with 48 C.F.R. 12.212 or 48 C.F.R. 227.7202-1 through 227.7202-4, as applicable, the Commercial Computer Software and Commercial Computer Software Documentation are being licensed to U.S. Government end users (a) only as Commercial Items and (b) with only those rights as are granted to all other end users pursuant to the terms and conditions herein. Unpublished-rights reserved under the copyright
laws of the United States. Adobe Systems Incorporated, 345 Park Avenue, San Jose, CA 95110-2704, USA. For U.S. Government End Users, Adobe agrees to comply with all applicable equal opportunity laws including, if appropriate, the provisions of Executive Order 11246, as amended, Section 402 of the Vietnam Era Veterans Readjustment Assistance Act of 1974 (38 USC 4212), and Section 503 of the Rehabilitation Act of 1973, as amended, and the regulations at 41 CFR Parts 60-1 through 60-60, 60-250, and 60-741. The affirmative action clause and regulations contained in the preceding sentence shall be incorporated by reference.

Contents

Introduction. 7 Guide to instructional media. 7 Additional resources. 8 Typographical conventions. 8 Chapter 1: Unsupported and Partially Supported ActionScript Elements. 9 Commands issued through fsCommand and fsCommand2. 9 Global properties. 12 Chapter 2: Unsupported and Partially Supported Classes. 13 Button class. 14 Date class. 16 Key class. 17 Mouse class. 18 MovieClip class. 20 Selection class. 23 SharedObject class. 24 System class. 25 capabilities (System.capabilities) class. 26 Sound class. 29 Stage class. 31 TextField class. 32 TextFormat class. 33 Video class. 36

Introduction

Macromedia Flash Lite 1.0 and Macromedia Flash Lite 1.1 software from Adobe, the first versions of Flash Lite, are based on Adobes Macromedia Flash Player 4. Macromedia Flash Lite 2.0 and Macromedia Flash Lite 2.1 software from Adobe are based on Adobes Macromedia Flash Player 7, but differ from it in the following respects:
Flash Lite supports some features only partially. Flash Lite adds some features specifically for mobile devices.
This document describes the differences between the ActionScript supported for Flash Lite 2.0 and 2.1 (which are referenced collectively as 2.x) and the ActionScript that was supported for Flash Player 7. Wherever applicable, this document includes cross-references to the following documents that provide additional details about the various classes and how to use them when writing Flash Lite 2.x applications:
Flash Lite 2.x ActionScript Language Reference Developing Flash Lite 2.x Applications Learning ActionScript 2.0 in Flash
Guide to instructional media
The Flash Lite documentation package includes the following media to help you learn how to create Flash Lite applications:
Getting Started with Flash Lite 2.x provides an overview of Flash Lite technology and developing Flash Lite 2.0 and 2.1 content for mobile devices. It also includes a step-bystep tutorial for creating a Flash Lite 2.x application. Developing Flash Lite 2.x Applications is a comprehensive guide to creating Flash Lite content and includes instructions for testing your applications in the integrated Flash Lite emulator.
Flash Lite 2.x ActionScript Language Reference describes all the ActionScript language features available to Flash Lite developers and provides example code. Learning ActionScript 2.0 in Flash describes how to write ActionScript for Flash Player 7. The Flash Lite sample applications at www.adobe.com/go/ learn_flt_samples_and_tutorials demonstrate key concepts and best practices discussed or mentioned in the written documentation.

Additional resources

For the latest information on developing Flash Lite applications, plus advice from expert users, advanced topics, examples, tips, and other updates, see the Mobile and Devices Developer Center at www.adobe.com/go/developer_flashlite. For TechNotes, documentation updates, and links to additional resources in the Flash Lite developer community, see the Adobe Flash Lite Support Center at www.adobe.com/go/ support_flashlite.

Typographical conventions
The following typographical conventions are used in this manual:
Italic font indicates a value that should be replaced (for example, in a folder path).
Code font indicates Code font italic
ActionScript code. indicates an ActionScript parameter.
Bold font indicates a verbatim entry. Double quotation marks ("") in code examples indicate delimited strings. However, programmers can also use single quotation marks (').

CHAPTER 1

Unsupported and Partially Supported ActionScript Elements
This chapter describes the global functions and properties, constants, operators, statements, extensions, and keywords that are either partially supported or not supported by ActionScript for Adobes Macromedia Flash Lite 2.x.
Commands issued through fsCommand and fsCommand2. 9 Global properties. 12
Commands issued through fsCommand and fsCommand2
The fsCommand() and fsCommand2() global functions let the SWF file communicate with either Flash Player or the program that is hosting Flash Player, such as a web browser. Flash Lite 2.x modifies the standard Macromedia Flash Player 7 commands, and adds commands that are specific to embedded devices. Flash Lite 2.x also supports the fsCommand2() function, which provides similar functionality to fsCommand(), with the exception that the command is executed immediately, not deferred until after the calling frame is processed. For more information on the fsCommand2() function, see the Flash Lite 2.x ActionScript Language Reference.

Unsupported commands

The following table lists the commands that are not supported by fsCommand() when using ActionScript 2.0 to create Flash Lite content.

Command

quit fullscreen

Description

Closes the projector. Specifying true sets Flash Player to full-screen mode. Specifying false returns the player to normal menu view. Specifying false sets the player so the SWF file is always drawn at its original size and is never scaled. Specifying true forces the SWF file to scale to 100% of the screen. Specifying true enables the full set of context menu items. Specifying false hides all the context menu items except About Flash Player and Settings. Executes an application from within the projector. Specifying true sends all key events, including accelerator keys, to the onClipEvent(keyDown/keyUp) handler in Flash Player.

allowscale

showmenu

exec trapallkeys

Commands summary
The following table lists the ActionScript commands, functions, and keywords that are partially or not supported by Flash Lite 2.x.

onDragOut

Invoked when the mouse button is clicked over the button and the pointer then dragged outside of the button. Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus are set to true. Invoked when the pointer is dragged over the button. Supported if System.capabilities.hasMouse or System.capabilities.hasStylus are set to true. Invoked when the mouse is released while the pointer is outside the button after the button is pressed while the pointer is inside the button. Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus are set to true.

onDragOver

onReleaseOutside

Date class

The Date class shows how dates and times are represented in ActionScript, and it supports operations for manipulating dates and times. The Date class can also obtain the current date and time from the operating system. For more information about the Date class, see the following:
Developing Flash Lite 2.x Applications Chapter 4, Data and Data Types in Learning ActionScript 2.0 in Flash Chapter 2, ActionScript Classes, in Flash Lite 2.x ActionScript Language Reference

Method summary

The following table lists the methods (functions) that have been added to the Date class when using ActionScript for Flash Lite 2.x.

Method

getLocaleLongDate()
This function sets a parameter to a string that represents the current date, in long form, formatted according to the currently defined locale. The parameter is passed in by name. The returned value is a multiplecharacter, variable-length string. The actual formatting depends on the device and the locale. date, in abbreviated form, formatted according to the currently defined locale. The parameter is passed in by name. The returned value is a multiple-character, variable-length string. The actual formatting depends on the device and the locale.
getLocaleShortDate() This function sets a parameter to a string that represents the current

getLocaleTime()

This function sets a parameter to a string that represents the current time, formatted according to the currently defined locale. The parameter is passed in by name. The returned value is a multiplecharacter, variable-length string. The actual formatting depends on the device and the locale.

Key class

The Key class provides methods and properties for obtaining information about the keyboard itself, and the key presses input into it. For more information about the Key class, see the following:
Developing Flash Lite 2.x Applications Chapter 14, Creating Interaction with ActionScript in Learning ActionScript 2.0 in Flash Chapter 2, ActionScript Classes, in Flash Lite 2.x ActionScript Language Reference

Flash Lite property extensions
The following table lists the property that has been added to the Key class when using ActionScript for Flash Lite 2.x.

isToggled

Returns true if the Num Lock or Caps Lock key is active.
Flash Lite method extensions
The following table lists the method extension that has been added to the Key class when using ActionScript for Flash Lite 2.x.

getCode()

Returns the virtual key code of the last key pressed.
The Flash Lite 2.x implementation of the getCode() method returns a string or a number, depending on what the platform passed in. The only valid key codes are the standard key codes accepted by this class and the special key codes listed as properties of the ExtendedKey class. This restriction is enforced by the player. For valid key code values, see the Key class in the Flash Lite 2.x ActionScript Language Reference. This reference provides tables that map keys to codes for letters, numbers, the numeric keypad, function keys, special constant keys, and other keys.

Mouse class

The Mouse class lets you control the mouse in a SWF file; for example, this class lets you hide or show the mouse pointer. For more information about the Mouse class, see the following references:
The following table lists the methods that are either partially or not supported by the Mouse class when using ActionScript for Flash Lite 2.x.

addListener()

Registers an object to receive notifications of the onMouseDown, onMouseMove, onMouseUp, and onMouseWheel listeners. Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus are set to true. Hides the pointer in a SWF file. Removes an object that was previously registered with addListener(). Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus are set to true. Displays the pointer in a SWF file.

hide() removeListener()

show()
The following table lists the events that are either partially or not supported by the Mouse class when using ActionScript for Flash Lite 2.x.

onMouseDown

Notified when the mouse is pressed. Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus are set to true. Notified when the mouse moves. Limitations: Supported if System.capabilities.hasMouse is set to true. Notified when the mouse is released. Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus are set to true. Notified when the user rolls the mouse wheel.

onMouseMove

Partially supported Partially supported

onMouseUp

onMouseWheel

MovieClip class

The MovieClip class lets you use listener callback functions that provide status information while SWF or JPEG files load (download) into movie clips. To use MovieClip features, use MovieClipLoader.loadClip() instead of loadMovie() or MovieClip.loadMovie() to load SWF files. For more information about the MovieClip class, see the following:
Developing Flash Lite 2.x Applications Chapter 11, Working with Movie Clips in Learning ActionScript 2.0 in Flash Chapter 2, ActionScript Classes, in Flash Lite 2.x ActionScript Language Reference
The following table lists the methods that are either partially or not supported by the MovieClip class when using ActionScript for Flash Lite 2.x.

attachAudio()

Captures and plays local audio from the devices microphone hardware. Returns a TextSnapshot object that contains the text in the static text fields in the specified movie clip. Specifies a movie clip as draggable and begins dragging the movie clip. Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus are set to true. Stops a MovieClip.startDrag() method. A movie clip that was made draggable with startDrag() remains draggable until a stopDrag() method is added, or until another movie clip becomes draggable. Only one movie clip is draggable at a time. Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus are set to true.

getTextSnapshot()

The following table lists the properties that are either partially or not supported by the MovieClip class when using ActionScript for Flash Lite 2.x.
Returns the absolute path in slash-syntax notation of the movie clip instance on which this movie clip was dropped. The _droptarget property always returns a path that starts with a slash (/). To compare the _droptarget property of an instance to a reference, use the eval() function to convert the returned value from slash syntax to a dot-syntax reference. Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus are set to true.
Associates the specified ContextMenu object with the Not supported movie clip. Sets or retrieves the rendering quality used for a SWF Partially file. Device fonts are always aliased and therefore are supported unaffected by the _quality property. A Boolean value that indicates whether other buttons Partially or movie clips can receive mouse release events. The supported trackAsMenu property lets you create menus. You can set the trackAsMenu property on any button or movie clip object. If the trackAsMenu property does not exist, the default behavior is false. Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus are set to true. A Boolean value that determines whether the hand icon appears when the mouse rolls over a movie clip. Returns the x coordinate of the mouse position. Limitations: Supported if System.capabilities.hasMouse=true or System.capabilities.hasStylus=true. Returns the y coordinate of the mouse position. Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus are set to true. Not supported Partially supported

_quality

The following table lists the event handlers that are partially supported by the MovieClip class when using ActionScript for Flash Lite 2.x.

Event Handler

Invoked when the mouse button is pressed and the pointer rolls outside the object. You must define a function that executes when the event handler is invoked. You can define the function on the timeline or in a class file that extends the MovieClip class or is linked to a symbol in the library. Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus are set to true. Invoked when the pointer is dragged outside and then over the movie clip. You must define a function that executes when the event handler is invoked. You can define the function on the timeline or in a class file that extends the MovieClip class or is linked to a symbol in the library. Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus are set to true. Invoked when the left mouse button is pressed. Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus are set to true. Invoked every time the mouse moves. Limitations: Supported if System.capabilities.hasMouse is set to true. Invoked every time the left mouse button is pressed. Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus are set to true. Invoked when the mouse button is pressed over a movie clip and released while the pointer is outside the movie clips area. Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus are set to true.

Selection class

The Selection class lets you set and control the text field in which the insertion point is located (that is, the field that has focus). Partial support for the Selection class was added to support inline text input in Flash Lite 2.1. For Flash Lite, the Selection object is valid only when a device supports inline text entry. If a device does not support inline text entry, and instead relies on an FEP (front-end processor) to enter text, all calls to the Selection object are ignored. For more information about the Selection class, see the following references:
Developing Flash Lite 2.x Applications Chapter 2, ActionScript Classes, in Flash Lite 2.x ActionScript Language Reference
The following table lists the methods that are unsupported by the Selection class when using ActionScript for Flash Lite 2.x.

getBeginIndex()

Returns the index at the beginning of the currently focused selection span. Returns the index of the blinking insertion point (caret) position. Returns the index at the end of the currently focused selection span.
getCaretIndex() getEndIndex

SharedObject class

A Flash Lite shared object, as implemented in the ActionScript SharedObject class, allows Flash Lite content to save data to the device when the application is closed and load the data from the device when the application is played again. For more information about the SharedObject class, see the following references:
The following table lists the methods that are partially supported by the SharedObject class when using ActionScript for Flash Lite 2.x.

flush()

Immediately writes a locally persistent shared object to a local file. Limitations: The write operation is asynchronous and the result is not immediately available. Returns a reference to a locally persistent shared object that is available only to the current client. Limitations: In Flash Lite, a shared object cannot be shared between two SWF files.

getLocal()

The following table lists the methods that have been added as extensions to the SharedObject class when using ActionScript for Flash Lite 2.x.

GetMaxSize()

Flash Lite 2.x returns the maximum size allotted for persistent storage of an SWF file.

System class

The System class contains properties that are related to certain operations on the users computer, such as operations with shared objects, local settings for cameras and microphones, and using the Clipboard. The following additional properties and methods are in specific classes within the System package: the capabilities class, the security class, and the IME class. For more information about the System class, see the following references:
Developing Flash Lite 2.x Applications Flash Lite 2.x ActionScript Language Reference Chapter 7, Classes in Learning ActionScript 2.0 in Flash

hasEmail

hasMMS

hasSMS

hasMFI

hasMIDI

hasSMAF

hasDataLoading

has4WayKeyAS

hasMouse

A read-only Boolean value that is true if the player can send mouserelated events and false if the platform does not support a mouse. Allows user to set soft-key values and handle events from those soft keys. A read-only Boolean value that is true if the player can send stylusrelated events and false if the platform does not support a stylus. The onMouseMove event is not supported by a stylus. This flag allows the content to check if this event is supported. A read-only Boolean value that is true if the platform supports CMIDI sound, and false if the platform does not support CMIDI sound. (added in Flash Lite 2.1) Indicates whether the host application supports XML sockets. A number specifying the number of soft keys that the platform supports. A read-only Boolean value that is true if Flash content playing back in this application can access Flash Lite shared objects; false otherwise. A read-only Boolean value that is true if ActionScript can be attached to all keys found on a standard QWERTY keyboard and the Backspace key; false otherwise. A read-only property that contains an array of MIME types that the devices audio codecs support, and that can be used by the ActionScript Sound object. A read-only property that contains an array of MIME types that the devices image codecs support and that can be used by the loadMovie ActionScript function. A read-only property that contains an array of MIME types that the devices video codecs support and that can be used by the ActionScript Video object. A read-only property that contains an array of all the MIME types that the Sound and Video objects support and the loadMovie() ActionScript function.

hasMappableSoftKeys

hasStylus

hasCMIDI

hasXMLSocket

softKeyCount

hasSharedObjects

hasQWERTYKeyboard

audioMIMETypes

imageMIMETypes

videoMIMETypes

MIMETypes

Sound class
ActionScript for Flash Lite 2.x supports device sound through the Sound class and through System.capabilities values. The Sound class is fully supported for native sounds supported in Flash Player 7, but it is only partially supported for device sounds. Flash Lite 2.x adds support that lets you synchronize device sound playback with rendering animation.
Flash Lite 2.x does not support sound recording.
The following table lists the methods that are partially supported by the Sound class for when using ActionScript for Flash Lite 2.x.

position

The following table lists new methods in the Sound class that are specific to ActionScript for Flash Lite 2.x.
Returns the value of the previous setPan() call. This method is not supported for device sound. Returns the value of the previous setTransform() call. This method is not supported for device sound. Loads sound data of any format into Flash Player. This method is different from the Flash Player 7 implementation because sound data loaded using this method is always treated as event sound. Therefore, the second parameter of this method is always ignored. In the following example, the value true is ignored:
my_sound.loadSound("mysnd.mp3", true);

Stage class

The Stage class is a top-level class whose methods, properties, and handlers you can access without using a constructor. Use the methods and properties of this class to access and manipulate information about the boundaries of a SWF file. For more information, see the following references:
Developing Flash Lite 2.x Applications Flash Lite 2.x ActionScript Language Reference
The following table lists new properties in the Stage class that are specific to ActionScript for Flash Lite 2.x.

showMenu

Shows or hides the default items in the Flash Player context menu.
Returns the value of the previous setTransform() call. This method is not supported for device sound. Loads sound data of any format into Flash Player. This method is different from the Flash Player 7 version because sound data loaded using this method is always treated as event sound, so the second parameter of this method is always ignored. For example, in the following call, the value true is ignored:

TextField class

Text fields are visual elements on the Stage that let you display text to a user. Similar to an input text field or text area form control in HTML, Flash lets you set text fields as editable (read-only), allow HTML formatting, and enable multiline support. You use the TextField class to create text fields. All dynamic and input text fields in a SWF file are instances of the TextField class. You can give a text field an instance name in the Property inspector and use the methods and properties of the TextField class to manipulate it with ActionScript. TextField instance names are displayed in the Movie Explorer and in the Insert Target Path dialog box in the Actions panel. To create a text field dynamically, do not use the NEW operator; instead, use MovieClip.createTextField(). The methods of the TextField class let you set, select, and manipulate text in a dynamic or input text field that you create during authoring or at runtime. All properties of the TextField class are supported in Flash Lite 2.x, but you can only use text fields to display device fonts. Device fonts are special fonts in Flash that are not embedded in a SWF file. Flash Lite uses whatever font on the mobile device most closely resembles the device font. Because font outlines are not embedded, a SWF file size is smaller than using embedded font outlines. However, because device fonts are not embedded, the text that you create with these fonts looks different than expected on devices that do not have a font installed that corresponds to the device font. Flash includes three device fonts: _sans (similar to Helvetica and Arial), _serif (similar to Times Roman), and _typewriter (similar to Courier). For more information about the TextField class, see the following references:

Flash Lite 2.x provides partial support for the formatting feature available in the TextFormat class. Formatting features are not available when you use device fonts.
Flash Lite 2.x provides partial support for the TextFormat class. For example, TextFormat.font, TextFormat.bold, and TextFormat.tabstop are not supported when you use device fonts. For more information about the TextFormat class, see the following references: Developing Flash Lite 2.x Applications Chapter 12, Working with Text and Strings, in Learning ActionScript 2.0 in Flash Chapter 2, ActionScript Classes, in Flash Lite 2.x ActionScript Language Reference
The following table lists the properties that are partially supported when using ActionScript 2.0 to create Flash content.
A Boolean value that specifies whether the text is boldface. Limitations: For use only with paragraph-level formatting; you cannot apply bold to individual characters. A Boolean value that indicates that the text is part of a bulleted list. Limitations: For use only with embedded fonts. Indicates the color of text. Limitations: For use only with paragraph-level formatting; you cannot apply color to individual characters. The name of the font for text in this text format, as a string. Limitations: For Flash Lite, this property works for embedded fonts only. This property is not supported for Arabic, Hebrew, and Thai. A Boolean value that indicates whether text in this text format is italic. Limitations: For use only with paragraph-level formatting; you cannot apply italics to individual characters. The point size of text in this text format. Limitations: For use only with paragraph-level formatting; you cannot apply different font sizes to individual characters. Specifies custom tab stops as an array of non-negative integers. Limitations: For use with embedded fonts only. A Boolean value that indicates whether the text that uses this text format is underlined (true) or not (false). Limitations: For use only with paragraph-level formatting.

bullet

italic

tabStops

underline

Video class

Flash Lite 2.x lets you work with device-specific video formats, and supports the following types of video playback:
Video embedded in a SWF file Video available as a separate file on the device Video streamed over the network (in real time)
Flash Lite 2.x supports device video. Device video is stored in the published SWF file in the devices native video format. To play the device video, Flash Lite passes the video data to the device, which then decodes and plays the video.
Flash Lite 2.x ActionScript does not support the NetConnection or NetStream classes.

For more information about the Video class, see the following references: Developing Flash Lite 2.x Applications Chapter 15, Working with images, Sound, and Video, in Learning ActionScript 2.0 in Flash Chapter 2, ActionScript Classes, in Flash Lite 2.x ActionScript Language Reference
The following table lists the methods that are not supported by the Video class when using ActionScript for Flash Lite 2.x.

attachVideo

Specifies a video stream (source) to be displayed within the boundaries of the Video object on the Stage.
Not supported Clears the image currently displayed in the Video object. This is useful when, for example, you want to display standby information without having to hide the Video object.
The following table lists the properties of the Video class that are not supported when using ActionScript for Flash Lite 2.x.

deblocking

Indicates the type of deblocking filter applied to decoded video as part of postprocessing. Two deblocking filters are available: one in the Sorenson codec and one in the On2 VP6 codec. An integer specifying the height of the video stream, in pixels. Specifies whether the video should be smoothed (interpolated) when it is scaled. For smoothing to work, the player must be in high-quality mode. An integer specifying the width of the video stream, in pixels.

height smoothing

The Video class for Flash Lite 2.x adds the following new methods.

play() close()

a video source and begins playing the video.
Stops playing the video, frees the memory associated with this Video object, and clears the Video area onscreen.

stop()

Stops playing the video and continues to render the current frame onscreen. A subsequent call to Video.resume() resumes playing from the first frame of the video. Stops playing the video and continues to render the current frame onscreen. A subsequent call to Video.resume() resumes playing from the current position.
Resumes playing the video.

pause()

resume()
ActionScript 2.x and 1.x differences between 7

Mouse class unsupported or partially supported events 19 unsupported or partially supported methods 18 MovieClip class partially supported event handlers 22 unsupported or partially supported methods 20
Button class unsupported or partially supported event handlers 15 unsupported or partially supported properties 14
Selection class 23 unsupported methods 23 SharedObject class new methods 24 partially supported methods 24 Sound class new methods 31 partially supported methods 29 partially supported properties 30 Stage class new properties 31 System class partially supported events 26 unsupported methods 25 unsupported properties 25 System.capabilities class new properties 27 unsupported properties 26
Date class unsupported or partially supported methods 16
Flash Player 4 and Flash Player 7 differences between 7 fsCommand() and fsCommand2() 9 partially supported commands 10 unsupported commands 10
global properties partially supported 12
Key class new methods 17 new properties 17
TextField class unsupported methods 33 unsupported properties 33 TextFormat class partially supported properties 35
Video class new methods 37 unsupported methods 36 unsupported properties 37

 

Tags

SGH-U900 Burning ROM Viewstation MP GC4412 L201 Pink SD900 1 6 Maker EC9 PDA-5001 CT-29K30E 815 S Factor DAV-EA20 SS-325X 11 E CWM-106 FBX-1802 Laserjet 3100 LE32B550a5P Rcs-77h 5903R Fishfinder 515 Pend 1000 MA-1350-1 Fishing 2 Lowrance X125 AD-16 Storm2 9520 TK-762G Aopen MK33 Compass C400 Studio 2 NN-MX25WF FW750C ZWT385 PX820FWD PSB270 S90ES Bizhub 421 HQ9090 VR-6050 Filters Y560P Boardwalk VS735 L37VP01E Pulse Humminbird 363 WD-14331AD Prime SRG-118 Dirbas KDG230J-kd-g230 ERZ36700X8 Europe HR-J673 Review MS9138D WM-GX680 Dmcgf1 RU-45NZ60 Turismo 3 VP-DC563I VN-2000 CQ-VA7300N GA-15 Nuvi 1210 N95-3 TDA-7547E 26C4000 SPP-A250 LK-90TV ICF-C705 Backitup Freeline IR SRU7140-10 Turismo 4 Cafamosacf80 MX-KB4 CRD-8520B TA-3200F WD-14482TP Cinemate Odacio 3 WX-C55 FS 350 4030CDT Documate 252 MP-200 7060 10 NV-GS17 T730SH HTS3366 93 A45-S250 ESI6241X P7220 CDM-7859RB CDX-565mxrf CDA-9831R Nikon D2X Surprises Baby

 

manuel d'instructions, Guide de l'utilisateur | Manual de instrucciones, Instrucciones de uso | Bedienungsanleitung, Bedienungsanleitung | Manual de Instruções, guia do usuário | инструкция | návod na použitie, Užívateľská príručka, návod k použití | bruksanvisningen | instrukcja, podręcznik użytkownika | kullanım kılavuzu, Kullanım | kézikönyv, használati útmutató | manuale di istruzioni, istruzioni d'uso | handleiding, gebruikershandleiding

 

Sitemap

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101