Thread: Wraptext 2?
View Single Post
  #4  
Old 09-28-2005, 04:29 AM
Torankusu_2002 Torankusu_2002 is offline
'been round.
Torankusu_2002's Avatar
Join Date: Nov 2001
Posts: 1,246
Torankusu_2002 is on a distinguished road
Quote:
Originally Posted by ForgottenLegacy
Assign the tokens to an array. Example:
PHP Code:
this.string "value with spaces";
this.tokens this.string.tokenize();
// this.tokens[0] == "value", and so on 
I would suspect you'd do the same with wraptext and wraptext2.
Er, you're not getting what I am saying, I don't think. Either that, or I don't understand where you're getting at...

Anyways, The problem with using tokens for wraptext2 for what I am trying to script is I am doing this:

Wraptext2 this1string. (examples only)
Wraptext2 this2string.

I am trying to place this1string in a certain position (there's no set# of letters/pixels it will be.)

And I am trying to place this2string at another place. The problem with this is, with the for loop, it checks tokens [ for (this.i=0;this.i<tokenscount;this.i++) ] to display the text properly as well as wrap. I can get one string to wrap, but the second string shows up the same as the first, and there is no way that I can think of to determine the separate strings' token #'s.

Understand better now?

Anyways, I was informed that in GS2 the strings are set to arrays instead of tokens, so that they could be accessed better. (strlen i think? for the array in the foor loop.) so that it would display the correct text. True?
__________________
torankusu's
Reply With Quote