Unfortunately, that still doesn't seem to be working... Here is my code for the function when I'm setting things up. The textbox which needs to be cloned is called "word"
Code:
function getWords()
{
word.SetSelection(0,-1)
word.ReplaceSelection(w[0])
word.Show()
var theFile = OpenFile(WORDFILE)
var x=0
var rx=125
var ry=340
while (theFile.EndOfFile() == false)
{
w[x] = theFile.ReadLine()
var col = String.random(COL) // picks a random number between 0 and COL for text colour
cloneWord = word.CloneObject(rx,ry,true)
// cloneWord.Show()
cloneWord.SetSelection(0,-1)
cloneWord.SetColour(c[col])
cloneWord.ReplaceSelection(w[x])
// cloneWord.SetPosition(rx,ry,0)
rx+=75
if (rx>450)
{
ry=ry+35
rx=120
}
x++
NUM_WORDS = x
}
On the object "word", I select the trigger MouseDown and call the script action where I have tried your suggestions... It's beginning to drive me crazy and I know I've done something stupid
[/code]