PDA

View Full Version : need a help with strings



pensamente
April 16th, 2005, 04:58 PM
this code is working fine...

myString = new String();
myLV = new LoadVars();
myLV.load("isto.txt");
myLV.onLoad = function() {
myString = this.var1.toString();
i = myString.length;
play();
};
stop();

but I would like this to work without loading the TXT file...

:puzzled:

is it possible?

Seticus
April 16th, 2005, 05:19 PM
sure it is
myString = new String("put your contents here");
i = myString.length;

pensamente
April 16th, 2005, 05:27 PM
hey!
it's working just fine :p
I guess u know that already...
tks a million