String Length

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

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.


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