Mbchr Function - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

[optional] - Specifies an HTTP method for sending variables. The parameter
method:String
must be the string
GET
method appends the variables to the end of the URL and is used for small numbers of
GET
variables. The
method sends the variables in a separate HTTP header and is used for
POST
long strings of variables.
Example
The following example loads information from a text file called params.txt into the main
Timeline of the SWF at level 2 in Flash Player. The variable names of the text fields must
match the variable names in the params.txt file. The
check the progress of the data being loaded into the SWF. The script checks for a variable in
the params.txt file named
loadVariablesNum("params.txt", 2);
function checkParamsLoaded() {
if (_level2.done == undefined) {
trace("not yet.");
} else {
trace("finished loading. killing interval.");
trace("-------------");
for (i in _level2) {
trace(i+": "+_level2[i]);
}
trace("-------------");
clearInterval(param_interval);
}
}
var param_interval = setInterval(checkParamsLoaded, 100);
// Params.txt includes the following text
var1="hello"&var2="goodbye"&done="done"
See also
,
getURL function
loadMovie function
,
function
loadMovie (MovieClip.loadMovie method)
(MovieClip.loadVariables method)

mbchr function

mbchr(number)
Deprecated since Flash Player 5. This function was deprecated in favor of the
String.fromCharCode()
Converts an ASCII code number to a multibyte character.
or
. If there are no variables to be sent, omit this parameter. The
POST
.
done
,
loadMovieNum function
,
load (LoadVars.load method)
method.
function is used to
setInterval()
,
loadVariables
,
loadVariables
Global Functions
63

Advertisement

Table of Contents
loading

Table of Contents