<?xml version="1.0" encoding="UTF-8"?>
<book title="Introduction to Flash Lite 2.x and 3.0 ActionScript" directory="FlashLite2IntroAS">
   <page href="00004810.html" title="Introduction" text="IntroductionMacromedia® Flash® Lite&#8482; 1.0 and Macromedia Flash Lite 1.1 software from Adobe®, the first versions of Flash Lite, are based on Macromedia® Flash® Player 4 software from Adobe. Macromedia® Flash Lite 2.0 and Macromedia Flash Lite 2.1 software from Adobe, along with Adobe® Flash® Lite&#8482; 3.0, are based on Macromedia Flash Player 7 from Adobe, 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&#8482; 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. It also describes the differences between the ActionScript supported in Flash Lite 2.x and Flash Lite 3.0. 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 applications:Flash Lite 2.x and 3.0 ActionScript Language ReferenceDeveloping Flash Lite 2.x and 3.0 ApplicationsLearning ActionScript 2.0 in Adobe Flash " />
   <page href="00004811.html" title="Unsupported and partially supported ActionScript elements" text="Unsupported and partially supported ActionScript elementsThis chapter describes the global functions and properties, constants, operators, statements, extensions, and keywords that are either partially supported or not supported by ActionScript for Macromedia® Flash® Lite&#8482; 2.x or 3.0 software from Adobe. Commands issued through fsCommand and fsCommand2 Global properties " />
   <page href="00004812.html" title="Commands issued through fsCommand and fsCommand2 " text="CommandDescriptionquit Closes the projector.fullscreen Specifying true sets Flash Player to full-screen mode. Specifying false returns the player to normal menu view.allowscale 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.showmenu Specifying true enables the full set of context menu items. Specifying false hides all the context menu items except About Flash Player and Settings.exec Executes an application from within the projector.trapallkeys Specifying true sends all key events, including accelerator keys, to the onClipEvent(keyDown/keyUp) handler in Flash Player. 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 and 3.0 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. " />
   <page href="00004813.html" title="Commands summary" text="Command, function, or keywordDescriptionSupportasfunction A protocol for URLs in HTML text fields.Not supportedfscommand() Function that lets the SWF file communicate with either Flash Player or the program hosting Flash Player, such as a web browser.Partially supportedon Prefix for events to execute when the event occurs.Limitation: The supported events are rollout, rollover, and keyPress.Partially supportedonClipEvent Event handler; triggers actions defined for a specific instance of a movie clip.Limitations: Supported events are press, load, unload, enterFrame, keyDown, keyup, and data. The mouseDown, mouseUp, and mouseMove events are supported if either System.capabilities.hasMouse or System.capabilities.hasStylus is set to true.Partially supportedonUpdate The onUpdate event handler is defined for a live preview used with a component.Not supportedprint() The print() function targets the movie clip according to the boundaries specified in the parameter. Not supportedprintAsBitmap() A function that prints the target movie clip as a bitmap.Not supportedprintAsBitmaNum() A function that prints a level in Flash Player as a bitmap according to the boundaries specified in the parameter (bmovie, bmax, or bframe).Not supportedprintNum() A function that prints the level in Flash Player according to the boundaries specified in the boundingBox parameter (bmovie, bmax, or bframe).Not supportedstartDrag() A function that makes the target movie clip draggable while the SWF is playing. Only one movie clip can be dragged at a time. Limitation: Supported if mouse or stylus interface is supported.Partially supportedstopDrag() A function that stops the current drag operation. Limitation: Supported if mouse or stylus interface is supported. Partially supportedupdateAfterEvent() A function that updates the display (independent of the frames per second set for the SWF file) when you call it in an onClipEvent() handler or as part of a function or method that you pass to setInterval().Not supportedCommands summaryThe following table lists the ActionScript commands, functions, and keywords that are partially or not supported by Flash Lite 2.x and later." />
   <page href="00004814.html" title="Global properties" text="PropertiesDescriptionSupport_droptarget Read-only property that returns the absolute path in slash (/) syntax notation of the movie clip instance on which draggableInstanceName (the name of a movie clip instance that was the target of a startDrag() function) was dropped. This property always returns a path that starts with a slash (/).Not supported_highquality Global property that specifies the level of anti-aliasing applied to the current SWF file. This property can also control bitmap smoothing.Limitation: Flash Lite does not support bitmap smoothing.Partially supported_url Read-only property that retrieves the URL of the SWF file from which the movie clip was downloaded.Not supportedGlobal propertiesThe following table lists the ActionScript global properties that are partially supported or not supported by Flash Lite 2.x and later." />
   <page href="00004815.html" title="Unsupported and partially supported classes" text="Unsupported and partially supported classesThis chapter describes ActionScript 2.0 classes that are either partially or not supported by Adobe's Macromedia Flash Lite 2.0. It also describes the extensions that are specific to ActionScript for Flash Lite 2.x and 3.0. Button class Date class Key class Mouse class MovieClip class NetConnection class NetStream class Selection class SharedObject class System class capabilities (System.capabilities) class Sound class Stage class TextField class TextFormat class Video class " />
   <page href="00004816.html" title="Button class" text="PropertyDescriptionSupportmenu An object that associates a ContextMenu object with a button.Not supportedtrackAsMenu A Boolean value that indicates whether other buttons can receive mouse release events. Supported if System.capabilities.hasMouse or System.capabilities.hasStylus is set to true.Partially supporteduseHandCursor A Boolean value that indicates whether the pointer appears when the mouse passes over a button.Not supported_xmouse Read-only; the x coordinate of the pointer, relative to a button instance. Supported if System.capabilities.hasMouse or System.capabilities.hasStylus is set to true.Partially supported_ymouse Read-only; the y coordinate of the pointer, relative to a button instance. Supported if System.capabilities.hasMouse or System.capabilities.hasStylus is set to true.Partially supportedEventDescriptiononDragOut 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 is set to true.onDragOver Invoked when the pointer is dragged over the button. Supported if System.capabilities.hasMouse or System.capabilities.hasStylus is set to true.onReleaseOutside 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 is set to true.Button classAll button symbols in a SWF file are instances of the Button object. The Button class provides methods, properties, and event handlers for working with buttons.For more information about the Button class, see the following: Developing Flash Lite 2.x and 3.0 ApplicationsChapter 10, &quot;Handling Events,&quot; in Learning ActionScript 2.0 in FlashChapter 2, &quot;ActionScript Classes,&quot; in Flash Lite 2.x and 3.0 ActionScript Language ReferenceProperty summary The following table lists the properties that are either partially or not supported by the Button class when using ActionScript for Flash Lite 2.x and 3.0.Event summary The following table lists the event handlers that are partially supported by the Button class when using ActionScript for Flash Lite 2.x and 3.0." />
   <page href="00004817.html" title="Date class" text="MethodDescriptiongetLocaleLongDate() 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 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 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.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 multiple-character, variable-length string. The actual formatting depends on the device and the locale.Date classThe 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 and 3.0 ApplicationsChapter 4, &quot;Data and Data Types,&quot; in Learning ActionScript 2.0 in FlashChapter 2, &quot;ActionScript Classes,&quot; in Flash Lite 2.x and 3.0 ActionScript Language ReferenceMethod summary The following table lists the methods (functions) that have been added to the Date class when using ActionScript for Flash Lite 2.x and 3.0. " />
   <page href="00004818.html" title="Key class" text="PropertyDescriptionSupportisToggled Returns true if the Num Lock or Caps Lock key is active.Not supportedMethod DescriptiongetCode() Returns the virtual key code of the last key pressed.Key classThe Key class provides methods and properties for obtaining information about the keyboard itself, and the keypresses input into it. For more information about the Key class, see the following: Developing Flash Lite 2.x and 3.0 ApplicationsChapter 14, &quot;Creating Interaction with ActionScript,&quot; in Learning ActionScript 2.0 in FlashChapter 2, &quot;ActionScript Classes,&quot; in Flash Lite 2.x and 3.0 ActionScript Language ReferenceFlash 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 and later.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 and later.The Flash Lite 2.x and 3.0 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 &quot;special&quot; 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 and 3.0 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." />
   <page href="00004819.html" title="Mouse class" text="MethodDescriptionSupportaddListener() Registers an object to receive notifications of the onMouseDown, onMouseMove, onMouseUp, and onMouseWheel listeners. Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus is set to true.Partially supportedhide() Hides the pointer in a SWF file.Not supportedremoveListener() Removes an object that was previously registered with addListener(). Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus is set to true.Partially supportedshow() Displays the pointer in a SWF file.Not supportedMouse classThe 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: Developing Flash Lite 2.x and 3.0 ApplicationsChapter 14, &quot;Creating Interaction with ActionScript,&quot; in Learning ActionScript 2.0 in FlashChapter 2, &quot;ActionScript Classes,&quot; in Flash Lite 2.x and 3.0 ActionScript Language ReferenceMethod summary 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 and later." />
   <page href="00004820.html" title="Event summary" text="EventDescriptionSupportonMouseDown Notified when the mouse is pressed. Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus is set to true.Partially supportedonMouseMove Notified when the mouse moves. Limitations: Supported if System.capabilities.hasMouse is set to true.Partially supportedonMouseUp Notified when the mouse is released. Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus is set to true.Partially supportedonMouseWheel Notified when the user rolls the mouse wheel.Not supportedEvent summaryThe following table lists the events that are either partially or not supported by the Mouse class when using ActionScript for Flash Lite 2.x and later." />
   <page href="00004821.html" title="MovieClip class" text="MethodDescriptionSupportattachAudio() Captures and plays local audio from the device's microphone hardware.Not supportedgetTextSnapshot() Returns a TextSnapshot object that contains the text in the static text fields in the specified movie clip. Not supportedstartDrag() Specifies a movie clip as draggable and begins dragging the movie clip. Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus is set to true.Partially supportedstopDrag() 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 is set to true.Partially supportedPropertyDescriptionSupport_droptarget 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 is set to true.Partially supportedmenu Associates the specified ContextMenu object with the movie clip.Not supported_quality Sets or retrieves the rendering quality used for a SWF file. Device fonts are always aliased and therefore are unaffected by the _quality property.Partially supportedtrackAsMenu A Boolean value that indicates whether other buttons or movie clips can receive mouse release events. The 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 is set to true.Partially supporteduseHandCursor A Boolean value that determines whether the hand icon appears when the mouse rolls over a movie clip. Not supported_xmouse Returns the x coordinate of the mouse position. Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus is set to true.Partially supported_ymouse Returns the y coordinate of the mouse position. Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus is set to true.Partially supportedEvent HandlerDescriptiononDragOut 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 is set to true.onDragOver 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 is set to true.onMouseDown Invoked when the left mouse button is pressed. Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus is set to true.onMouseMove Invoked every time the mouse moves. Limitations: Supported if System.capabilities.hasMouse is set to true. onMouseUp Invoked every time the left mouse button is pressed. Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus is set to true.onReleaseOutside Invoked when the mouse button is pressed over a movie clip and released while the pointer is outside the movie clip's area. Limitations: Supported if System.capabilities.hasMouse or System.capabilities.hasStylus is set to true.MovieClip classThe 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 and 3.0 ApplicationsChapter 11, &quot;Working with Movie Clips,&quot; in Learning ActionScript 2.0 in FlashChapter 2, &quot;ActionScript Classes,&quot; in Flash Lite 2.x and 3.0 ActionScript Language ReferenceMethod summary 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 and later.Property summary 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 and later. Event summary The following table lists the event handlers that are partially supported by the MovieClip class when using ActionScript for Flash Lite 2.x and later. " />
   <page href="00004822.html" title="NetConnection class" text="NetConnection classThe NetConnection class lets you create an object that you can use with a NetStream object to invoke commands on a remote application server or to play back streaming Flash Video (FLV) files either locally or from a server. Support for this class was added in Flash Lite 3.0.For more information about the NetConnection class, see the following: Chapter 5, &quot;Working with Video and Images,&quot; in Developing Flash Lite 2.x and 3.0 Applications&quot;Working with Images, Sound and Video&quot; in Learning ActionScript 2.0 in Adobe FlashChapter 2, &quot;ActionScript Classes,&quot; in Flash Lite 2.x and 3.0 ActionScript Language Reference" />
   <page href="00004823.html" title="NetStream class" text="Property DescriptioncheckPolicyFile Specifies whether the player should attempt to download a cross-domain policy file from the loaded FLV file's server before beginning to load the FLV file itself.NetStream classThe NetStream class lets you create a stream that can be used with a NetConnection object to play FLV files from a local file system, an HTTP address, or a Flash Media Server. Support for this class was added in Flash Lite 3.0.For more information about the NetStream class, see the following: Chapter 5, &quot;Working with Video and Images,&quot; in Developing Flash Lite 2.x and 3.0 Applications&quot;Working with Images, Sound and Video&quot; in Learning ActionScript 2.0 in Adobe FlashChapter 2, &quot;ActionScript Classes,&quot; in Flash Lite 2.x and 3.0 ActionScript Language ReferenceProperty summary The following table lists the property that is unsupported by the NetStream class when using ActionScript for Flash Lite 3.0." />
   <page href="00004824.html" title="Selection class" text="Method DescriptiongetBeginIndex() Returns the index at the beginning of the currently focused selection span.getCaretIndex() Returns the index of the blinking insertion point (caret) position.getEndIndex Returns the index at the end of the currently focused selection span.Selection classThe 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 and 3.0 ApplicationsChapter 2, &quot;ActionScript Classes,&quot; in Flash Lite 2.x and 3.0 ActionScript Language ReferenceMethod summary The following table lists the methods that are unsupported by the Selection class when using ActionScript for Flash Lite 2.x and later." />
   <page href="00004825.html" title="SharedObject class" text="Method Descriptionflush() Immediately writes a locally persistent shared object to a local file.Limitations: The write operation is asynchronous and the result is not immediately available.getLocal() 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.MethodDescriptionGetMaxSize() Flash Lite returns the maximum size allotted for persistent storage of a SWF file. SharedObject classA 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: Developing Flash Lite 2.x and 3.0 ApplicationsChapter 14, &quot;Creating Interaction with ActionScript&quot; in Learning ActionScript 2.0 in FlashChapter 2, &quot;ActionScript Classes,&quot; in Flash Lite 2.x and 3.0 ActionScript Language ReferenceMethod summary The following table lists the methods that are partially supported by the SharedObject class when using ActionScript for Flash Lite 2.x and later.Flash Lite method extensions The following table lists the methods that have been added as extensions to the SharedObject class when using ActionScript for Flash Lite 2.x and later. " />
   <page href="00004826.html" title="System class" text="MethodDescriptionSupportsetClipboard() Replaces the contents of the clipboard with a specified text string.Not supportedshowSettings() Shows the specified Flash Player Settings panel.Not supportedPropertyDescription SupportexactSettings Specifies whether to use superdomain or exact-domain matching rules when accessing local settings.Not supportedEvent handlerDescriptionSupportonStatus Provides a super event handler for certain objects. The SharedObject property is supported. The LocalConnection and NetStream properties are not supported. Partially supportedSystem classThe System class contains properties that are related to certain operations on the user's 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 and 3.0 ApplicationsFlash Lite 2.x and 3.0 ActionScript Language ReferenceChapter 7, &quot;Classes,&quot; in Learning ActionScript 2.0 in FlashMethod summary The following table lists the methods that are not supported by the System class when using ActionScript for Flash Lite 2.x and later. Property summary The following table lists the properties that are not supported by the System class for use with ActionScript for Flash Lite 2.x and later.Event summary The following table lists the event handlers that are partially supported by the System class for use with ActionScript for Flash Lite 2.x and later. " />
   <page href="00004827.html" title="capabilities (System.capabilities) class" text="PropertyDescriptionhasIME Indicates whether the system has an input method editor (IME) installed.manufacturer A string that indicates the manufacturer of Flash Player, in the format &quot;Adobe OSName&quot; (OSName could be &quot;Windows&quot;, &quot;Macintosh&quot;, &quot;Linux&quot;, or &quot;Other OS Name&quot;).pixelAspectRatio Indicates the pixel aspect ratio of the screen.playerType Indicates the type of player: stand-alone, external, plug-in, or ActiveX.screenColor Indicates whether the screen is color, grayscale, or black and white.screenDPI Indicates the screen resolution, in pixels (such as dpi).serverString A URL-encoded string that specifies values for each System.capabilities property.PropertyDescriptionhasCompoundSound A read-only Boolean value that is true if the player can process compound sound data; false otherwise.hasEmail A read-only Boolean value that is true if the player can send e-mail messages using the GetURL ActionScript command; false otherwise.hasMMS A read-only Boolean value that is true if the player can send multimedia message service (MMS) messages using the GetURL ActionScript command; false otherwise.hasSMS A read-only value whose variable _capSMS indicates whether Flash Lite can send short message service (SMS) messages using the GetURL ActionScript command. If Flash Lite can send SMS messages, this variable is defined and has a value of 1. Otherwise, this variable is not defined.hasMFI A read-only Boolean value that is true if the player can play sound data in the Melody Format for i-mode (MFi) audio format; false otherwise.hasMIDI A read-only Boolean value that is true if the player can play sound data in the MIDI audio format; false otherwise.hasSMAF A read-only Boolean value that is true if the player can play sound data in the Synthetic music Mobile Application Format (SMAF false otherwise.hasDataLoading A read-only Boolean value that is true if the player can dynamically load additional data through calls to loadMovie(), loadMovieNum(), loadVariables(), loadVariablesNum(), XML.parseXML(), Sound.loadSound(), MovieClip.loadVariables(), MovieClip.loadMovie(), MovieClipLoader.loadClip(), LoadVars.load(), and LoadVars.sendAndLoad( false otherwise.has4WayKeyAS A read-only Boolean value that is true if the player can execute ActionScript attached to keyEvent handlers associated with the right, left, up and down keys; false otherwise.If the value of this variable is true, when one of the four-way keys is pressed, the player first looks for a handler for that key. If none is found, Flash control navigation is performed. However, if an event handler is found, no navigation action occurs for that key. In other words, the presence of a keypress handler for a down key disables the ability to navigate down.hasMouse A read-only Boolean value that is true if the player can send mouse-related events and false if the platform does not support a mouse.hasMappableSoftKeys Allows user to set soft-key values and handle events from those soft keys. hasStylus A read-only Boolean value that is true if the player can send stylus-related 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.hasCMIDI A read-only Boolean value that is true if the platform supports CMIDI sound, and false if the platform does not support CMIDI sound. hasXMLSocket (Added in Flash Lite 2.1) Indicates whether the host application supports XML sockets.softKeyCount A number specifying the number of soft keys that the platform supports.hasSharedObjects A read-only Boolean value that is true if Flash content playing back in this application can access Flash Lite shared objects; false otherwise.hasQWERTYKeyboard 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.audioMIMETypes A read-only property that contains an array of MIME types that the device's audio codecs support and that can be used by the ActionScript Sound object.imageMIMETypes A read-only property that contains an array of MIME types that the device's image codecs support and that can be used by the loadMovie ActionScript function.videoMIMETypes A read-only property that contains an array of MIME types that the device's video codecs support and that can be used by the ActionScript Video object.MIMETypes A read-only property that contains an array of all the MIME types that the Sound and Video objects support and that can be used by the loadMovie() ActionScript function.capabilities (System.capabilities) classThe System.capabilities class determines the abilities of the system and player hosting a SWF file, which lets you tailor content for different formats. For example, the screen of a cell phone (black and white, 100 square pixels) is different than the 1000-square-pixel color PC screen. To provide appropriate content to as many users as possible, you can use the System.capabilities object to determine the type of device a user has. You can then either specify to the server to send different SWF files based on the device capabilities or tell the SWF file to alter its presentation based on the capabilities of the device.Property summary The following table lists the properties that are not supported by the System.capabilites class when using ActionScript for Flash Lite 2.x and later.Flash Lite property extensions The following table lists properties that are extensions to the System.capabilites class for use with ActionScript for Flash Lite 2.x and later." />
   <page href="00004828.html" title="Sound class" text="MethodDescriptionSupportgetPan() Returns the pan level set in the last setPan() call as an integer from -100 (left) to +100 (right). (0 sets the left and right channels equally.) The pan setting controls the left-right balance of the current and future sounds in a SWF file.Limitations: Supported for use with native Flash sound; not supported for use with device sound.Partially supportedgetTransform() Returns the sound transform information for the specified Sound object set with the last Sound.setTransform() call.Limitations: Supported for use with native Flash sound; not supported for use with device sound.Partially supportedloadSound() Loads an MP3 file into a Sound object. You can use the isStreaming parameter to indicate whether the sound is an event or a streaming sound.Event sounds are completely loaded before they play. They are managed by the ActionScript Sound class and respond to all methods and properties of this class.Limitations: The streaming parameter is ignored when used with Flash Lite 2.x and later.Partially supportedsetPan() Determines how the sound is played in the left and right channels (speakers). For mono sounds, pan determines which speaker (left or right) the sound plays through.Limitations: Supported for use with native Flash sound; not supported for use with device sound.Partially supportedsetTransform() Sets the sound transform (or balance) information for a Sound object.The soundTransformObject parameter is an object that you create using the constructor method of the generic Object class, with parameters specifying how the sound is distributed to the left and right channels (speakers). Limitations: Supported for use with native Flash sound; not supported for use with device sound.Partially supportedsetVolume() Sets the volume for the Sound object.Limitations: Supported for use with native Flash sound; not supported for use with device sound.Partially supportedPropertyDescriptionduration The duration of a sound, in milliseconds.Limitations: Supported for use with native Flash sound; not supported for use with device sound.position The number of milliseconds a sound has been playing.Limitations: Supported for use with native Flash sound; not supported for use with device sound.MethodDescriptiongetPan() Returns the value of the previous setPan() call. This method is not supported for device sound. getTransform() Returns the value of the previous setTransform() call. This method is not supported for device sound. loadSound() 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(&quot;mysnd.mp3&quot;, true Flash Lite 2.x and later does not support sound recording.Sound classActionScript for Flash Lite 2.x and later 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 added support that lets you synchronize device sound playback with rendering animation. Method summary The following table lists the methods that are partially supported by the Sound class for when using ActionScript for Flash Lite 2.x and later.Property summary The following table lists the properties of the Sound class that are partially supported when using ActionScript for Flash Lite 2.x and later.Flash Lite method extensions The following table lists new methods in the Sound class that are specific to ActionScript for Flash Lite 2.x and later." />
   <page href="00004829.html" title="Stage class" text="PropertyDescriptionshowMenu Shows or hides the default items in the Flash Player context menu.getTransform() Returns the value of the previous setTransform() call. This method is not supported for device sound. loadSound() 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:my_sound.loadSound(&quot;mysnd.mp3&quot;, true Stage classThe 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 and 3.0 ApplicationsFlash Lite 2.x and 3.0 ActionScript Language ReferenceFlash Lite property extensions The following table lists new properties in the Stage class that are specific to ActionScript for Flash Lite 2.x and later." />
   <page href="00004830.html" title="TextField class" text="PropertyDescriptionantialiasType Indicates the type of anti-aliasing used for this TextField instance.menu Associates a ContextMenu object with a text field mouseWheelEnabled A Boolean value that indicates whether Flash Player should automatically scroll multiline text fields when the mouse pointer clicks a text field and the user rolls the mouse wheel.restrict Indicates the set of characters a user can enter into the text field.sharpness The sharpness of the glyph edges in this TextField instance.styleSheet Attaches a style sheet to the text field.thickness Indicates the thickness of the glyph edges in this TextField instance.MethodDescriptiongetFontList Returns the names of fonts on the player&#39;s host system as an array.TextField classText 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 and later, 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: Developing Flash Lite 2.x and 3.0 ApplicationsChapter 12, &quot;Working with Text and Strings,&quot; in Learning ActionScript 2.0 in FlashChapter 2, &quot;ActionScript Classes,&quot; in Flash Lite 2.x and 3.0 ActionScript Language ReferenceProperty summary The following table lists the properties of the TextField class that are not supported when using ActionScript for Flash Lite 2.x and later.Method summary The following table lists the methods of the TextField class that are not supported when using ActionScript for Flash Lite 2.x and later." />
   <page href="00004831.html" title="TextFormat class" text="PropertyDescriptionbold 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.bullet A Boolean value that indicates that the text is part of a bulleted list.Limitations: For use only with embedded fonts.color Indicates the color of text.Limitations: For use only with paragraph-level formatting; you cannot apply color to individual characters.font 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.italic 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.size 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.tabStops Specifies custom tab stops as an array of non-negative integers.Limitations: For use with embedded fonts only.underline 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.Flash Lite 2.x and later provides partial support for the formatting feature available in the TextFormat class. Formatting features are not available when you use device fonts.TextFormat classThe TextFormat class represents character formatting information. Use the TextFormat class to create specific text formatting for text fields. You can apply text formatting to static and dynamic text fields. Some properties of the TextFormat class are not available for embedded and device fonts.The TextFormat class lets you apply formatting to a text field or to certain characters within a text field. Some examples of text formatting options that can be applied to text are alignment, indenting, bold, color, font size, margin widths, italics, and letter spacing. You can apply text formatting to static and dynamic text fields. Some properties of the TextFormat class are not available for embedded and device fonts.You must use the constructor TextFormat() to create a TextFormat object before calling its methods.Flash Lite 2.x and later 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 and 3.0 ApplicationsChapter 12, &quot;Working with Text and Strings,&quot; in Learning ActionScript 2.0 in FlashChapter 2, &quot;ActionScript Classes,&quot; in Flash Lite 2.x and 3.0 ActionScript Language ReferenceProperty summary The following table lists the properties that are partially supported when using ActionScript 2.0 to create Flash content." />
   <page href="00004832.html" title="Video class" text="MethodDescriptionSupportclear 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.Not supportedMethodDescriptionplay() Opens a video source and begins playing the video.close() 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.pause() Stops playing the video and continues to render the current frame onscreen. A subsequent call to Video.resume() resumes playing from the current position.resume() Resumes playing the video.PropertyDescriptiondeblocking 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.height An integer specifying the height of the video stream, in pixels.smoothing Specifies whether the video should be smoothed (interpolated) when it is scaled. For smoothing to work, the player must be in high-quality mode.width An integer specifying the width of the video stream, in pixels.Flash Lite 2.x ActionScript does not support the NetConnection or NetStream classes. MethodDescriptionattachVideo() Specifies a video stream (source) to be displayed within the boundaries of the Video object on the Stage.Video classFlash Lite 2.x lets you work with device-specific video formats, and supports the following types of video playback:Video embedded in a SWF fileVideo available as a separate file on the deviceVideo 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 device's 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 3.0 adds support for Flash Video (FLV) using versions of the On2 and Sorenson codecs optimized for mobile devices. FLV video is rendered directly in the Flash Lite player rather than by the device, so you no longer need to be concerned about whether your target devices support a particular video format. The ActionScript NetConnection and NetStream classes, which were not previously available in Flash Lite, let you control the playback of FLV video from a local drive or HTTP address. These classes are described in Chapter 2, &quot;ActionScript Classes,&quot; in Flash Lite 2.x and 3.0 ActionScript Language Reference. Streaming video data over an RTMP connection to a Flash Media Server is also supported in Flash Lite 3.0 (but RTMPT and RTMPS connections are not). The Camera class and recording video are not supported for Flash Video. Flash Lite 3.0 also includes a new property in the Video class, attachVideo, that specifies a video stream to be displayed within the boundaries of the Video object on the Stage. You use the methods of the NetStream class rather than those of the Video class to control playback of FLV (non-device) video. For example, to pause device video, you use the Video.pause method, but to pause FLV video, you use NetStream.pause.For more information about the Video class, see the following references: Developing Flash Lite 2.x and 3.0 ApplicationsChapter 15, &quot;Working with images, Sound, and Video,&quot; in Learning ActionScript 2.0 in FlashChapter 2, &quot;ActionScript Classes,&quot; in Flash Lite 2.x and 3.0 ActionScript Language ReferenceMethod summary The following table lists the methods that are not supported by the Video class when using ActionScript for Flash Lite 2.x and later.Property summary The following table lists the properties of the Video class that are not supported when using ActionScript for Flash Lite 2.x.Flash Lite method extensions The Video class for Flash Lite 2.x adds the following new methods.The Video class for Flash Lite 3.0 adds the following new method." />
</book>