function str_pad (str,places,pad,side) {
while (length(str)<places) {
if (side=="left")
str = pad add str;
else
str = str add pad;
}
return (str);
}
// paramater description:
// str: the string to be padded
// places: the total length of the returned padded string
// pad: the string to be used as pad
// side: where should the pad be applied, "left" or "right"
Hi
does anyone know how to open all swfs forcibly with Flash player? The problem is that on some machines particularly with VISTA it defaults to IExplorer and all swfs open with IExplorer not with Flash player! Can anyone help..please.
We do not want to use loadmovie as it won't solve our purpose. Nor can we use projector files since there are too many files in this project and it would not be possible to make all of them as projectors. We have just kept the launch file as a projector followed by swfs.
I was converting some php code into Actionscript and came across the str_pad function and your port for actionscript. Works great and saved me some time writing my own.