| Flashscript classes (ActionScript 3) | Home | MX | MX 2004 | Flash 8 | Flash 9 |Flash 10 |PHP |Components | Snippets | Contact | |
TextToArrayToString |
|
|
| 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
This method will return a string with slashes separating the array members. |
Parameters
|
| 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));
}
}
}
|