background image

_framesloaded

51

_framesloaded

Availability

Flash Lite 1.0.

Usage

my_mc

:_framesloaded

Description

Property (read-only); the number of frames that have been loaded from a dynamically loaded 
SWF file. This property is useful for determining whether the contents of a specific frame, 
and all the frames before it, have loaded and are available locally in the browser. It is also 
useful as a monitor while large SWF files download. For example, you might want to display a 
message to users indicating that the SWF file is loading until a specified frame in the SWF file 
finishes loading.

Example

The following example uses the 

_framesloaded

 property to start a SWF file when all the 

frames are loaded. If all the frames aren’t loaded, the 

_xscale

 property of the movie clip 

instance 

loader

 is increased proportionally to create a progress bar.

if (_framesloaded >= _totalframes) {

gotoAndPlay ("Scene 1", "start");

} else {

tellTarget(“loader”) {

_xscale = (_framesloaded/_totalframes)*100;

}

}

Summary of Contents for FLASH 8-FLASH

Page 1: ...Flash Lite 1 x ActionScript Language Reference...

Page 2: ...nc 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...

Page 3: ...1 chr 12 duplicateMovieClip 12 eval 14 getProperty 15 getTimer 15 getURL 16 gotoAndPlay 19 gotoAndStop 19 ifFrameLoaded 20 int 21 length 22 loadMovie 22 loadMovieNum 24 loadVariables 25 loadVariablesN...

Page 4: ...roperties 47 Forward slash 48 _alpha 49 _currentframe 49 _focusrect 50 _framesloaded 51 _height 52 _highquality 52 _level 53 maxscroll 54 _name 54 _rotation 55 scroll 56 _target 56 _totalframes 57 _vi...

Page 5: ...ltiply 95 numeric add 96 numeric equality 97 numeric greater than 98 numeric greater than or equal to 98 numeric inequality 99 numeric less than 100 numeric less than or equal to 100 parentheses 101 s...

Page 6: ...6 Contents...

Page 7: ...entry for most ActionScript elements The following sample entry explains the conventions used for all ActionScript elements Entry title Entries are listed alphabetically within a chapter The alphabet...

Page 8: ...ory Typical paths to this folder are as follows Windows Program Files Macromedia Flash 8 Samples and Tutorials Samples FlashLite Macintosh HD Applications Macromedia Flash 8 Samples and Tutorials Samp...

Page 9: ...g getURL Loads a document from a specific URL into a window or passes variables to another application at a defined URL gotoAndPlay Sends the playhead to the specified frame in a scene and begins play...

Page 10: ...it nextScene Sends the playhead to Frame 1 of the next scene and stops it Number Converts an expression to a number and returns a value on Specifies the user event or keypress that triggers an event o...

Page 11: ...nce form executes the script on the specified frame of the movie clip instance without moving the playhead to that frame toggleHighQuality Turns anti aliasing on and off in Flash Lite Anti aliasing sm...

Page 12: ...n any other frame on the same timeline call myScript chr Availability Flash Lite 1 0 Usage chr number Operands number An ASCII code number Description String function converts ASCII code numbers to ch...

Page 13: ...rame 1 regardless of where the playhead is in the original parent movie clip Variables in the parent movie clip are not copied into the duplicate movie clip If the parent movie clip is deleted the dup...

Page 14: ...object or movie clip is returned If the element named in expression cannot be found undefined is returned You can use eval to simulate arrays or to dynamically set and retrieve the value of a variabl...

Page 15: ...turns the value of the specified property for the my_mc movie clip Example The following example retrieves the horizontal axis coordinate _x for the my_mc movie clip in the root movie timeline xPos ge...

Page 16: ...new window _parent specifies the parent of the current frame _top specifies the top level frame in the current window variables A GET or POST method for sending variables If there are no variables om...

Page 17: ...ile macromedia com in the default browser myURL http mobile macromedia com on keyPress 1 getURL myURL You can also use GET or POST for sending variables from the current timeline The following example...

Page 18: ...body In contrast Method 2 results in the following strings email subject email body The following example uses the tel protocol on release keyPress getURL tel 117 In the following example getURL is u...

Page 19: ...he specified frame in the current scene You can use the scene parameter only on the root timeline not within timelines for movie clips or other objects in the document Example In the following example...

Page 20: ...ash Lite 1 0 Usage ifFrameLoaded scene frame statement s Operands scene An optional string specifying the name of the scene to be loaded frame The frame number or frame label to be loaded before the n...

Page 21: ...r 10 is loaded output frame loaded 10 See also _framesloaded int Availability Flash Lite 1 0 Usage int value Operands value A number or string to be truncated to an integer Description Function trunca...

Page 22: ...ters of the specified string or variable name Example The following example returns the length of the string Hello length Hello The result is 5 The following example validates an e mail address by che...

Page 23: ...Flash Lite while the original SWF file plays To load a SWF file into a specific level use the loadMovieNum function instead of loadMovie When a SWF file is loaded into a target movie clip you can use...

Page 24: ...ads a SWF file into a level in Flash Lite while the originally loaded SWF file plays Normally Flash Lite displays a single SWF file and then closes The loadMovieNum function lets you display several S...

Page 25: ...The parameter must be the string GET or POST If there are no variables to be sent omit this parameter The GET method appends the variables to the end of the URL and is used for small numbers of varia...

Page 26: ...sh Lite 1 1 Usage loadVariablesNum url level variables Operands url A string representing an absolute or relative URL where the variables to be loaded are located If the SWF file issuing this call is...

Page 27: ...mple phrase defines several variables company Macromedia address 600 Townsend city San Francisco zip 94103 Normally Flash Lite displays a single SWF file and then closes The loadVariablesNum function...

Page 28: ...lt add myString Output result 2 See also mblength mbsubstring mblength Availability Flash Lite 1 0 Usage mblength string Operands string A string Description String function returns the length of the...

Page 29: ...er to a multibyte number Example The following examples convert the characters in the myString variable to multibyte numbers myString A trace ord add mbord myString Output 65 myString 120 for i 1 i le...

Page 30: ...tion String function extracts a new multibyte character string from a multibyte character string Example The following example extracts a new multibyte character string from the string contained in th...

Page 31: ...e nextFrame See also prevFrame nextScene Availability Flash Lite 1 0 Usage nextScene Operands None Description Function sends the playhead to Frame 1 of the next scene and stops it Example In the foll...

Page 32: ...rue 0 if expression is false If expression is a string the function attempts to parse expression as a decimal number with an optional trailing exponent that is 1 57505e 3 If expression is undefined th...

Page 33: ...The button is released while the pointer is over the button rollOut The pointer rolls outside the button area rollOver The pointer rolls over the button keyPress key The specified key is pressed For...

Page 34: ...Description String function converts characters to ASCII code numbers Example The following example uses the ord function to display the ASCII code for the character A trace multibyte number add ord...

Page 35: ...play and a text field with the variable name alert appears stop if name Steve play else alert You are not Steve prevFrame Availability Flash Lite 1 0 Usage prevFrame Operands None Description Function...

Page 36: ...t Example In this example when the user clicks a button that has the following handler attached to it the playhead is sent to the previous scene on release prevScene See also nextScene random Availabi...

Page 37: ...te 1 1 syntax can be used to simulate arrays select random name from list myNames1 Mike myNames2 Debbie myNames3 Logan ran random 3 1 ranName myNames add ran trace eval ranName Output will be mike deb...

Page 38: ...r has done record values that change as the SWF file plays or evaluate whether a condition is true or false Variables can hold any data type for example String Number Boolean or MovieClip The timeline...

Page 39: ...ue of the property expression An equation that evaluates to the new value of the property Description Function changes a property value of a movie clip as the movie plays Example The following stateme...

Page 40: ...on associated with this event handler on release stop stopAllSounds Availability Flash Lite 1 0 Usage stopAllSounds Operands None Description Function stops all sounds currently playing in a SWF file...

Page 41: ...ring the return string is expression If expression is a Boolean value the return string is true or false If expression is a movie clip the return value is the target path of the movie clip in slash no...

Page 42: ...utput Hello tellTarget Availability Flash Lite 1 0 Usage tellTarget target statement s Operands target A string that specifies the target path of the timeline to control statement s The instructions t...

Page 43: ...to Frame 2 where the animation starts on keyPress 5 tellTarget ball gotoAndPlay 2 toggleHighQuality Availability Flash Lite 1 0 Usage toggleHighQuality Operands None Description Function turns anti a...

Page 44: ...gramming notes or to display messages in the Output panel while testing a SWF file Use the expression parameter to check if a condition exists or to display values in the Output panel The trace functi...

Page 45: ...er presses the 3 key the following example unloads the movie that was loaded into level 4 on keypress 3 unloadMovieNum 4 See also loadMovie unloadMovieNum Availability Flash Lite 1 0 Usage unloadMovie...

Page 46: ...46 Flash Lite Global Functions...

Page 47: ...in pixels _highquality Specifies the level of anti aliasing applied to the current SWF file _level Returns a reference to the root timeline of _levelN You must use the loadMovieNum function to load S...

Page 48: ...in Timeline mc1 car _target Returns the target path of the movie clip instance _totalframes Returns the total number of frames in a movie clip _visible Indicates whether a movie clip is visible _width...

Page 49: ...ly transparent to 100 fully opaque which is the default value Objects in a movie clip with _alpha set to 0 are active even though they are invisible For example you can click a button in a movie clip...

Page 50: ...olean Description Property global specifies whether a yellow rectangle appears around the button or text field that has the current focus The default value true displays a yellow rectangle around the...

Page 51: ...ul as a monitor while large SWF files download For example you might want to display a message to users indicating that the SWF file is loading until a specified frame in the SWF file finishes loading...

Page 52: ...mouse button on release tellTarget my_mc _height 200 _highquality Availability Flash Lite 1 0 Usage _highquality Description Property global specifies the level of anti aliasing applied to the current...

Page 53: ...rame 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 You must assign a level to each SWF f...

Page 54: ...also visible The maxscroll property works with the scroll property to control how information appears in a text field This property can be retrieved but not modified Example The following code which s...

Page 55: ...otation Description Property 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 r...

Page 56: ...s it as the user scrolls through the text field You can use the scroll property to create a scrolling text field or to direct a user to a specific paragraph in a long passage Example The following cod...

Page 57: ...later in the main timeline if _level1 _framesloaded _level1 _totalframes tellTarget _level1 gotoAndStop myLabel else loop _visible Availability Flash Lite 1 0 Usage my_mc _visible Description Propert...

Page 58: ...ey on keyPress 3 my_mc _visible 0 on keyPress 4 my_mc _visible 1 _width Availability Flash Lite 1 0 Usage my_mc _width Description Property the width of the movie clip in pixels Example The following...

Page 59: ...counterclockwise The movie clip s coordinates refer to the registration point position Example The following example changes the horizontal position of the my_mc movie clip when the user presses the...

Page 60: ...e system refers to the upper left corner of the Stage as 0 0 If the move clip is inside another movie clip that has transformations the movie clip is in the local coordinate system of the enclosing mo...

Page 61: ...local coordinate system affects the _x and _y property settings which are defined in pixels For example if the parent movie clip is scaled to 50 setting the _y property moves an object in the movie c...

Page 62: ...62 Flash Lite Properties...

Page 63: ...eration of the loop as if control had passed normally through to the end of the loop do while Executes the statements and then evaluates the condition in a loop for as long as the condition is true el...

Page 64: ...pt interpreter skips the rest of the statements in that case block and jumps to the first statement following the enclosing switch statement Use this statement to break out of a series of nested loops...

Page 65: ...case statement outside a switch statement it produces an error and the code doesn t compile Example In the following example if the myNum parameter evaluates to 1 the trace statement that follows cas...

Page 66: ...tarts the next iteration of the loop as if control had passed through to the end of the loop normally It has no effect outside a loop In a while loop continue causes the Flash interpreter to skip the...

Page 67: ...following do while loop continue causes Flash Lite to skip the rest of the loop body and jump to the bottom of the loop where the condition is tested i 0 do if i 3 0 i continue trace i i while i 10 In...

Page 68: ...ter evaluates to true condition The condition to evaluate Description Statement executes the statements and then evaluates the condition in a loop for as long as the condition is true Example The foll...

Page 69: ...es of instructions to execute if the condition evaluates to false Description Statement specifies the statements to run if the condition in the if statement evaluates to false Example The following ex...

Page 70: ...s a true value the Flash interpreter runs the statements that follow the else if condition inside curly braces If the else if condition is false Flash skips the statements inside the curly braces and...

Page 71: ...ession using the increment or decrement operator statement s One or more instructions to execute in the loop Description Statement a loop construct that evaluates the init initialize expression once a...

Page 72: ...in a SWF file If the condition is true Flash Lite runs the statements that follow the condition inside curly braces If the condition is false Flash Lite skips the statements inside the curly braces a...

Page 73: ...arameter defaultClause An optional default keyword followed by statements to execute if none of the case expressions match the switch expression parameter Description Statement creates a branching str...

Page 74: ...trace statement that follows the default keyword executes switch myNum case 1 trace case 1 tested true break case 2 trace case 2 tested true break case 3 trace case 3 tested true break default trace n...

Page 75: ...d value At the end of each loop the counter is incremented until the specified value is reached At that point the condition is no longer true and the loop ends The while statement performs the followi...

Page 76: ...76 Flash Lite Statements...

Page 77: ...he operand on the right to the variable or property in expression1 block comment Indicates one or more lines of script comments Any characters that appear between the opening comment tag and the closi...

Page 78: ...urns false if the expression evaluates to false If expression1 evaluates to true expression2 the expression on the right side of the operator is evaluated If expression2 evaluates to true the final re...

Page 79: ...parameters performs sequential evaluation of expressions or surrounds one or more parameters and passes them as parameters to a function outside the parentheses string delimiter When used before and a...

Page 80: ...ss than Compares the string representation of expression1 to the string representation of expression2 and returns a true value if expression1 is less than expression2 otherwise it returns false le str...

Page 81: ...the following two statements have the same result x y x x y All the rules of the addition operator apply to the addition assignment operator Example The following example uses the addition assignment...

Page 82: ...ows You Win the Game in the Output panel when the player s score reaches 75 or higher in three turns or less turns 2 score 77 winner turns 3 and score 75 if winner trace You Win the Game else trace Tr...

Page 83: ...ipt comments Any characters that appear between the opening comment tag and the closing comment tag are interpreted as a comment and ignored by the ActionScript interpreter Use the comment delimiter t...

Page 84: ...expression without the parentheses operator v 0 v 4 5 6 trace v output 4 The following example uses the comma operator with the parentheses operator and illustrates that the comma operator returns th...

Page 85: ...y characters Description Comment delimiter indicates the beginning of a script comment Any characters that appear between the comment delimiter and the end of line character are interpreted as a comme...

Page 86: ...n3 Values of any type Description Operator instructs Flash Lite to evaluate expression1 and if the value of expression1 is true it returns the value of expression2 otherwise it returns the value of ex...

Page 87: ...bWidth aWidth The bWidth value is equal to 2 The next example shows the post decrement form of the operator decrementing aWidth to 2 aWidth 1 2 and returning the original value of aWidth as the resul...

Page 88: ...e the following two statements are equivalent x y x x y Example The following example uses the operator with variables and numbers x 10 y 2 x y The expression x now contains the value 5 dot Availabili...

Page 89: ...r See also Forward slash increment Availability Flash Lite 1 0 Usage expression expression Operands None Description Operator arithmetic a pre increment and post increment unary operator that adds 1 t...

Page 90: ...1 2 3 4 5 6 7 8 9 10 This script shows the following result in the Output panel 1 2 3 4 5 6 7 8 9 10 The following example uses as a post increment operator a i 0 while i 10 a a add i add trace a outp...

Page 91: ...wise it is false Example The following example uses the operator to perform a test to determine if a player has won the game The turns variable and the score variable are updated when a player takes a...

Page 92: ...ion x y evaluates to true The following expressions show the result of using the operator true returns false false returns true Example In the following example the variable happy is set to false The...

Page 93: ...to true so the final result is true theMinimum 10 theMaximum 250 start false if theMinimum 25 theMaximum 200 start trace the logical OR test passed modulo Availability Flash Lite 1 0 Usage expression1...

Page 94: ...ression1 expression2 Numbers or expressions that evaluate to numbers Description Operator arithmetic compound assignment assigns expression1 the value of expression1 expression2 For example the follow...

Page 95: ...trace x y output 50 Usage 2 The second and third lines of the following example calculate the expressions on the right side of the equals sign and assign the results to x and y i 5 x 4 6 y i 2 trace x...

Page 96: ...sion2 Numbers Description Operator adds numeric expressions The is a numeric operator only it cannot be used for string concatenation If both expressions are integers the sum is an integer if either o...

Page 97: ...r If expression1 is equal to expression2 the result is true As with the operator the definition of equal depends on the data types being compared Numbers and Boolean values are compared by value Varia...

Page 98: ...al to expression2 the operator returns false Example The following examples show true and false results for numeric comparisons trace 3 14 2 output 1 true trace 1 2 output 0 false See also gt string g...

Page 99: ...ues or variables Description Operator comparison tests for inequality the exact opposite of the equality operator If expression1 is equal to expression2 the result is false As with the equality operat...

Page 100: ...he less than operator is a numeric operator Example The following examples show true and false results for both numeric and string comparisons trace 3 10 output 1 true trace 10 3 output 0 false See al...

Page 101: ...function outside the parentheses Description Operator groups one or more parameters performs sequential evaluation of expressions or surrounds one or more parameters and passes them as parameters to...

Page 102: ...limiter Availability Flash Lite 1 0 Usage text Operands text Zero or more characters Description String delimiter when used before and after a sequence of zero or more characters quotation marks indic...

Page 103: ...ssion1 is equal to the string representation of expression2 otherwise the operation returns false Example The following examples show true and false results word persons figure 55 trace persons eq peo...

Page 104: ...attle output 0 false trace animals gt cats output 0 false trace animals gt Cats output 1 true trace breeds gt 5 output 1 true trace breeds gt 7 output 0 false See also numeric greater than ge string g...

Page 105: ...equality Availability Flash Lite 1 0 Usage expression1 ne expression2 Operands expression1 expression2 Numbers strings or variables Description Operator comparison compares the string representations...

Page 106: ...capital letters precede lowercase letters Example The following examples show the output of various string comparisons In the last line notice that lt does not return an error when you compare a stri...

Page 107: ...ers and all capital letters precede lowercase letters Example The following examples show the output of various string comparisons animals cats breeds 7 trace persons le people output 0 false trace ca...

Page 108: ...point numbers the difference is a floating point number Example Usage 1 The following statement reverses the sign of the expression 2 3 trace 2 3 output 5 Usage 2 The following statement subtracts th...

Page 109: ...he following two statements are the same x y x x y String expressions must be converted to numbers otherwise 1 is returned Example Usage 1 The following example uses the operator to subtract 10 from 5...

Page 110: ...110 Flash Lite Operators...

Page 111: ...ditional data through calls to the loadMovie loadMovieNum loadVariables and loadVariablesNum functions _capMFi Indicates whether the device can play sound data in the Melody Format for i mode MFi audi...

Page 112: ...nth Returns the month of the current date as a numeric value GetDateWeekday Returns the number of the day of the current date as a numeric value GetDateYear Returns a four digit numeric value that is...

Page 113: ...system GetPowerSource Returns a value that indicates whether the power source is currently supplied from a battery or from an external power source GetSignalLevel Returns the current signal strength...

Page 114: ...ts The player will then play back data in the appropriate format based on the format supported by the device This variable defines whether the Flash Lite player supports this ability on the current ha...

Page 115: ...nd e mail messages by using the GetURL ActionScript command the following example sets canEmail to 1 canEmail _capEmail if canEmail 1 getURL mailto someone somewhere com subject foo body bar _capLoadD...

Page 116: ...g dynamic data _capMFi Availability Flash Lite 1 1 Usage _capMFi Description Numeric variable indicates whether the device can play sound data in the Melody Format for i mode MFi audio format If so th...

Page 117: ...e If the device can play MIDI sound data the following example sets canMidi to 1 canMIDI _capMIDI if canMIDI 1 send movieclip buttons to frame with buttons that trigger events sounds tellTarget button...

Page 118: ...56095555 body sample mms message else send an SMS myMessage sms 4156095555 body sample sms message getURL myMessage _capMP3 Availability Flash Lite 1 1 Usage _capMP3 Description Numeric variable indic...

Page 119: ...but leaves it undefined in Flash Lite 1 0 however not all Flash Lite 1 1 phones can send SMAF messages so this code is still dependent on the phone canSMAF _capSMAF if canSMAF send movieclip buttons t...

Page 120: ...ms 4156095555 body sample sms message getURL myMessage _capStreamSound Availability Flash Lite 1 1 Usage _capStreamSound Description Numeric variable indicates whether the device can play streaming sy...

Page 121: ...s variable is 1 Flash Lite first looks for a handler for that key If it finds none Flash control navigation occurs However if an event handler is found no navigation action occurs for that key For exa...

Page 122: ...Example In the Flash Lite 1 1 player the following code sets the value of myVersion to 5 2 12 0 myVersion version fscommand Availability Flash Lite 1 1 Usage status fscommand Launch application path a...

Page 123: ...es another application on the device The name of the application being launched and the parameters to it are passed in as a single argument This command is supported only when the Flash Lite player is...

Page 124: ...and2 function is similar to the fscommand function with the following differences The fscommand2 function can take an arbitrary number of arguments Flash Lite executes fscommand2 immediately whereas f...

Page 125: ...cape sequence xx or xx xx in the case of multibyte characters Example The following example shows the conversion of a sample string to its encoded form original_string Hello how are you status fscomma...

Page 126: ...er than 0 it sends the playback head to the frame labeled smallScreenMode status fscommand2 FullScreen true if status 0 gotoAndPlay smallScreenMode GetBatteryLevel Availability Flash Lite 1 1 Descript...

Page 127: ...e without a leading 0 Valid days are 1 through 31 Example The following example collects the date information and constructs a complete date string today fscommand2 GetDateDay weekday fscommand2 GetDa...

Page 128: ...cts the date information and constructs a complete date string today fscommand2 GetDateDay weekday fscommand2 GetDateWeekday thisMonth fscommand2 GetDateMonth thisYear fscommand2 GetDateYear when week...

Page 129: ...formation and constructs a complete date string today fscommand2 GetDateDay weekday fscommand2 GetDateWeekday thisMonth fscommand2 GetDateMonth thisYear fscommand2 GetDateYear when weekday add add thi...

Page 130: ...hen weekday add add thisMonth add add today add add thisYear See also GetDateDay GetDateMonth GetDateWeekday GetDevice Sets a parameter that identifies the device on which Flash Lite is running This i...

Page 131: ...3650 phone p506i A Panasonic 506i phone PFOMA1 A Panasonic FOMA1 phone SH506i A Sharp 506i phone SHFOMA1 A Sharp FOMA1 phone SO506i A Sony 506iphone statusdevice fscommand2 GetDevice devicename switc...

Page 132: ...add newline break GetDeviceID Sets a parameter that represents the unique identifier of the device for example the serial number Availability Flash Lite 1 1 Example The following example assigns the u...

Page 133: ...Flash Lite 1 1 Example The following example sets status equal to the amount of free memory status fscommand2 GetFreePlayerMemory See also GetTotalPlayerMemory GetLanguage Availability Flash Lite 1 1...

Page 134: ...r a string value that contains the name of a variable The value returned is one of the following cs Czech da Danish de German en UK UK or international English en US US English es Spanish fi Finnish f...

Page 135: ...ne break case en UK myText language is UK add newline break case en US myText language is US add newline break case es myText language is Spanish add newline break case fi myText language is Finnish a...

Page 136: ...e is traditional Chinese add newline break GetLocaleLongDate Availability Flash Lite 1 1 Description Sets a parameter to a string that represents the current date in long form formatted according to t...

Page 137: ...le The following example attempts to get the short form of the current date into the shortDate variable It also sets the value of status to report whether it was able to do so status fscommand2 GetLoc...

Page 138: ...LocaleShortDate GetMaxBatteryLevel Availability Flash Lite 1 1 Description Returns the maximum battery level of the device It is a numeric value greater than 0 Command Parameters Value returned GetLoc...

Page 139: ...e following example assigns the maximum signal strength to the sigStrengthMax variable sigStrengthMax fscommand2 GetMaxSignalLevel GetMaxVolumeLevel Availability Flash Lite 1 1 Description Returns the...

Page 140: ...kConnectStatus Availability Flash Lite 1 1 Description Returns a value that indicates the current network connection status Command Parameters Value returned GetNetworkConnectStatus None 1 Not support...

Page 141: ...break case 3 myText connectstatus shows suspended connection add newline break case 4 myText connectstatus shows indeterminable state add newline break GetNetworkName Availability Flash Lite 1 1 Descr...

Page 142: ...host name has been resolved and a connection to the server has been made 1 There is a pending request and a network connection is being established 2 There is a pending request but a network connecti...

Page 143: ...ewline break case 1 myText connection is being established add newline break case 2 myText pending request contacting network add newline break case 3 myText pending request resolving domain add newli...

Page 144: ...switch statement to update a text field with the status networkstatus fscommand2 GetNetworkStatus switch networkstatus case 1 myText network status not supported add newline break case 0 myText no net...

Page 145: ...of device they signify 506i A 506i phone FOMA1 A FOMA1 phone Symbian6 1_s60 1 A Symbian 6 1 Series 60 version 1 phone Symbian7 0 A Symbian 7 0 phone statusplatform fscommand2 GetPlatform platform swit...

Page 146: ...e GetSignalLevel Availability Flash Lite 1 1 Description Returns the current signal strength as a numeric value Example The following example assigns the signal level value to the sigLevel variable si...

Page 147: ...ent time of day or to 1 hour fscommand2 GetTimeHours trace hour output 14 See also GetTimeMinutes GetTimeSeconds GetTimeZoneOffset GetTimeMinutes Availability Flash Lite 1 1 Description Returns the mi...

Page 148: ...GetTimeSeconds Availability Flash Lite 1 1 Description Returns the second of the current time of day It is a numeric value without a leading 0 Example The following example sets the seconds variable...

Page 149: ...Seconds GetTotalPlayerMemory Availability Flash Lite 1 1 Description Returns the total amount of heap memory in kilobytes allocated to Flash Lite Command Parameters Value returned GetTimeZoneOffset ti...

Page 150: ...te 1 1 Description Returns the current volume level of the device as a numeric value Example The following example assigns the current volume level to the volume variable volume fscommand2 GetVolumeLe...

Page 151: ...causes Flash Lite to stop playback and quit when running in stand alone mode status fscommand2 Quit ResetSoftKeys Availability Flash Lite 1 1 Description Resets the soft keys to their original settin...

Page 152: ...ext functionality by asking the host application to start the generic device specific text input interface often referred to as the front end processor FEP When the SetInputTextType command is not use...

Page 153: ...these mutually exclusive modes If not supported on current device opens the FEP in this mode Numeric Numbers only 0 to 9 Alphanumeric Alpha Alphabetic characters only A to Z a to z Alphanumeric Alphan...

Page 154: ...d This command is supported only when Flash Lite is running in stand alone mode It is not supported when the player is running in the context of another application for example as a plug in to a brows...

Page 155: ...le that indicates success or failure status fscommand2 StartVibrate 2500 1000 2 See also StopVibrate StopVibrate Availability Flash Lite 1 1 Description Stops the current vibration if any Command Para...

Page 156: ...format that is a percent character followed by two hexadecimal digits are converted into their decoded form Example The following example shows the decoding of an encoded string encoded_string Hello 2...

Page 157: ...qual to operator 98 greater than operator 98 conditional operator 86 _alpha variable 49 _cap4WayKeyAS variable 121 _capCompoundSound variable 114 _capEmail variable 115 _capLoadData variable 115 _capM...

Page 158: ...0 else statement 69 eq string equal operator 103 eval function 14 F _focusrect property 50 for loop 71 for statement 71 _framesloaded property 51 fscommand command 122 functions chr 12 duplicateMovieC...

Page 159: ...117 119 MFI sound 116 MIDI sound 117 MMS messaging 117 modulo assignment 94 modulo operator 93 multiplication 95 N _name property 54 ne string not equal operator 105 nextFrame function 30 nextScene f...

Page 160: ...logical NOT 92 switch 73 while 74 stop function 39 stopAllSounds functions 40 string delimiter operator 102 string equal operator 103 string greater than operator 103 string greater than or equal to 1...

Page 161: ...119 variables sound _capCompoundSound 114 _capMFi 116 _capMIDI 117 _capSMAF 119 _capStreamSound 120 _visible property 57 W while loop 68 while statement 74 _width property 58 X _x property 58 _xscale...

Page 162: ...162 Index...

Reviews: