Made to Order Software Corporation Logo

SubString (multi-byte)

SWF Action
Action Category: 
String and Characters
Action Details: 
(multi-byte)
Action Identifier: 
53
Action Structure: 
<n.a.>
Action Length: 
0 byte(s)
Action Stack: 
pop 2 (i), pop 1 (s), push 1 (s)
Action Operation: 
i1 := pop();
i2 := pop();
s3 := pop();
r := s3[i2 .. i2 + i1 - 1];
push(r);
Action Flash Version: 
4
See Also: 

Pop a multi-byte string s3, get i1 characters from the position i2 (1 based) and push the result back on the stack.

The start position is given in characters. This action works properly with international characters.

i1 is expected to be positive or zero.

Since version 5, the String object substr(), substring() or slice() functions should be used instead.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Syndicate content