PDA

View Full Version : String Parsing in Flash 4


PogiEnGanda
02-15-2006, 08:18 AM
Is it possible to access each character in a string? How?

falltimemusic
02-15-2006, 04:36 PM
I know this works in FlashMX and up, it should PROBABLY work in flash 4, i would hope anyway.

str = "super man";
trace(str.charAt(4));
//traces the letter 'r'

PogiEnGanda
02-16-2006, 01:04 AM
i tried:

str = "super man";
trace(str.charAt(4));

but there was an error: You must export your movie as Flash 5 to use this action.

anybody who did something like this in Flash 4? I have to use Flash 4 because later im going to install my app in the phone with Flash Lite 1.1 player..