Concat (String.concat Method); Fromcharcode (String.fromcharcode Method) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

concat (String.concat method)

public concat(value:Object) : String
Combines the value of the String object with the parameters and returns the newly formed
string; the original value,
Availability: ActionScript 1.0; Flash Player 5
Parameters
- value1[,...valueN] Zero or more values to be concatenated.
value:Object
Returns
- A string.
String
Example
The following example creates two strings and combines them using
var stringA:String = "Hello";
var stringB:String = "World";
var combinedAB:String = stringA.concat(" ", stringB);
trace(combinedAB); // output: Hello World

fromCharCode (String.fromCharCode method)

public static fromCharCode() : String
Returns a string comprising the characters represented by the Unicode values in the
parameters.
Availability: ActionScript 1.0; Flash Player 5
Returns
- A string value of the specified Unicode character codes.
String
Example
The following example uses
var address_str:String = "dog"+String.fromCharCode(64)+"house.net";
trace(address_str); // output: dog@house.net
1130
ActionScript classes
, is unchanged.
my_str
fromCharCode()
to insert an
character in the e-mail address:
@
:
String.concat()

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