Mbchr Function - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

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:Number = 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: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.
Availability: ActionScript 1.0; Flash Player 4
Parameters
- The number to convert to a multibyte character.
number:Number
.
done
,
loadMovieNum function
,
load (LoadVars.load method)
method.
function is used to
setInterval()
,
loadVariables
,
loadVariables
Global Functions
75

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF