Flashscript classes (ActionScript 3) | Home | MX | MX 2004 | Flash 8 | Flash 9 |Flash 10 |PHP |Components | Snippets | Contact |

TextToArrayToString

Package:
Class:
Inheritance:
biz.flashscript.text
public class TextToArrayToString
N/A
The TextToArrayToString class is a text class and will convert an array into a string with slashes separating individual array members. Use the constructor TextToArrayToString.getInstance().
Public Methods
Method Defined By
TextToArrayToString()
Creates a new instance of the TextToArrayToString class.
TextToArrayToString
makeString((stringData:String):String
Returns the array as a string with slashes.
TextToArrayToString
Constructor Detail
TextToArrayToString()  Constructor
Intializes a new TextToArrayToString instance.
Method Detail

makeString ():String  method
public function makeString(stringData:String):String

This method will return a string with slashes separating the array members.

Parameters

  • stringData:String ____ Specifies the array to convert.
Examples
Create a new fla file and name it Texttoarraytostring.fla. Place the fla in the same folder as the biz folder. Then create an Actionscript file, name it Texttoarraytostring.as and place this script.
package 
{
	import flash.display.Sprite;
	import biz.flashscript.text.TextToArrayToString;

	public class Texttoarraytostring extends Sprite
	{
		public function Texttoarraytostring ():void
		{
			var myArray = new Array("a","d","c","3","5","v");
			trace (TextToArrayToString.makeString(myArray));
		}
	}
}