Could you tell me why both lines print out a?
trace(substring("asd", 0, 1)); // == "a"
trace(substring("asd", 1, 1)); // == "a"
(this prints out s:
trace(substring("asd", 2, 1)); // == "s")
Does in Flash Lite 1.x the index start with 1?
Could you tell me why both lines print out a?
trace(substring("asd", 0, 1)); // == "a"
trace(substring("asd", 1, 1)); // == "a"
(this prints out s:
trace(substring("asd", 2, 1)); // == "s")
Does in Flash Lite 1.x the index start with 1?
Copyright © 2021 Jogjafile Inc.
 
                        
Extract from http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary701.html