MACROMEDIA FLASH 8-INTRODUCTION TO FLASH LITE 2.X ACTIONSCRIPT Introduction Manual

Summary of FLASH 8-INTRODUCTION TO FLASH LITE 2.X ACTIONSCRIPT

  • Page 1

    Introduction to flash lite 2.X actionscript.

  • Page 2

    Trademarks 1 step robopdf, activeedit, activetest, authorware, blue sky software, blue sky, breeze, breezo, captivate, central, coldfusion, contribute, database explorer, director, dreamweaver, fireworks, flash, flashcast, flashhelp, flash lite, flashpaper, flash video endocer, flex, flex builder, f...

  • Page 3

    3 contents introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 guide to instructional media. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 additional resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....

  • Page 4

    4.

  • Page 5

    5 introduction macromedia flash lite 1.0 and flash lite 1.1, the first versions of flash lite, are based on macromedia flash player 4. Flash lite 2.0 is based on flash player 7, but differs from it in the following respects: ■ it does not support actionscript 2.0 (as used with flash player 7 for fla...

  • Page 6

    6 introduction ■ learning actionscript 2.0 in flash describes how to write actionscript for flash player 7. Cross references in introduction to flash lite 2.X actionscript detail the sections of learning actionscript 2.0 in flash that apply to flash lite. ■ the flash lite sample applications demonst...

  • Page 7

    7 1 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 flash lite 2.0. Commands issued thro...

  • Page 8

    8 unsupported and partially supported actionscript elements commands unsupported and partially supported by fscommand the following table lists the commands that are unsupported by fscommand() when using actionscript 2.0 to create flash lite content. Commands partially supported or unsupported by fs...

  • Page 9

    Commands partially supported or unsupported by fscommand 9 onclipevent 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 a...

  • Page 10

    10 unsupported and partially supported actionscript elements partially supported global properties the following table lists the actionscript global properties that are partially supported by flash lite 2.0. Properties description support _droptarget read-only property that returns the absolute path...

  • Page 11

    11 2 chapter 2 unsupported and partially supported classes this chapter describes actionscript 2.0 classes that are either partially or not supported by flash lite 2.0. It also describes the extensions that are specific to actionscript for flash lite 2.0. Button class. . . . . . . . . . . . . . . . ...

  • Page 12

    12 unsupported and partially supported classes property 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.0. Event summary the following table lists the event handlers that are partially supported ...

  • Page 13

    Date class 13 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 follo...

  • Page 14

    14 unsupported and partially supported classes 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 ■ chapt...

  • Page 15

    Mouse class 15 the flash lite 2.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 “special” key codes listed as properties of the extendedkey class. This ...

  • Page 16

    16 unsupported and partially supported classes event summary the following table lists the events that are either partially or not supported by the mouse class when using actionscript for flash lite 2.0. Movieclip class the movieclip class lets you use listener callback functions that provide status...

  • Page 17

    Movieclip class 17 method 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.0. Method description support attachaudio() captures and plays local audio from the devices microphone hardware. Not supp...

  • Page 18

    18 unsupported and partially supported classes 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.0. Property description support _droptarget returns the absolute path in slash-syntax no...

  • Page 19

    Movieclip class 19 event summary the following table lists the event handlers that are partially supported by the movieclip class when using actionscript for flash lite 2.0. _xmouse returns the x coordinate of the mouse position. Limitations: supported if system.Capabilities.Hasmouse=true or system....

  • Page 20

    20 unsupported and partially supported classes 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 ag...

  • Page 21

    System class 21 method summary the following table lists the methods that are partially supported by the sharedobject class when using actionscript for flash lite 2.0. Flash lite method extensions the following table lists the methods that have been added as extensions to the sharedobject class when...

  • Page 22

    22 unsupported and partially supported classes method summary the following table lists the methods that are not supported by the system class when using actionscript for flash lite 2.0. Property summary the following table lists the properties that are not supported by the system class for use with...

  • Page 23

    Capabilities (system.Capabilities) class 23 capabilities (system.Capabilities) class the 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 ...

  • Page 24

    24 unsupported and partially supported classes 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.0. Property description hascompoundsound a read-only boolean value that is true if the pla...

  • Page 25

    Capabilities (system.Capabilities) class 25 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...

  • Page 26

    26 unsupported and partially supported classes sound class actionscript for flash lite 2.0 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 de...

  • Page 27

    Sound class 27 property summary the following table lists the properties of the sound class that are partially supported when using actionscript for flash lite 2.0. Setpan() determines how the sound is played in the left and right channels (speakers). For mono sounds, pan determines which speaker (l...

  • Page 28

    28 unsupported and partially supported classes flash lite method extensions the following table lists new methods in the sound class that are specific to actionscript for flash lite 2.0. Stage class the stage class is a top-level class whose methods, properties, and handlers you can access without u...

  • Page 29

    Textfield class 29 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 ...

  • Page 30

    30 unsupported and partially supported classes textformat class the 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 textf...

  • Page 31

    Textformat class 31 property summary the following table lists the properties that are partially supported when using actionscript 2.0 to create flash content. Property description support bold a boolean value that specifies whether the text is boldface. Limitations : for use only with paragraph-lev...

  • Page 32

    32 unsupported and partially supported classes video class flash lite 2.0 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...

  • Page 33

    Video class 33 property summary the following table lists the properties of the video class that are not supported when using actionscript for flash lite 2.0. Flash lite method extensions the video class for flash lite 2.0 adds the following new methods. Property description support deblocking indic...

  • Page 34

    34 unsupported and partially supported classes.