String Length

SWF Action
Action Category: 
String and Characters
Action Details: 
0
Action Identifier: 
20
Action Structure: 
<n.a.>
Action Length: 
0 byte(s)
Action Stack: 
pop 1 (s), push 1 (i)
Action Operation: 
s1 := pop();
r := strlen(s1);
push(r);
Action Flash Version: 
4

Pops one string and push its length in bytes on the stack.

This instruction can be used to get the size of a binary buffer represented by a string. For a real string with characters, it is preferable to use the String Length (multi-byte) instruction instead.

IMPORTANT NOTE

This action will not return the proper number of characters if the input string includes multi-byte UTF-8 characters.