oh right you want random locations!!
sorry, i thought you meant you had several different phrases that you wanted it to choose from randomly…
ok so im gonna go ahead and assume you want just the one phrase then… ok… lets say you want your text to appear within the bounds of a box with xy points at (150,150), (300,300)
first things first… you cant set the position of a text field. so put your text field into a movieclip. this movie clip shall have an instance name of textMC. if you have tweens then make sure it all works with this inside a movieclip NOW… work out any bugs if they do occur…
next, create a function to call to change the location of your movie clip…
and now for the actual code:
generate random values for its x and y position…
x = Math.random()
y = Math.random()
now this generates a random number between 1 and 0 which we now need to maipulate to get a number between 150 and 300.
difference of 150 and 300 : 300-150=150
x = (x*150)+150
y = (y*150)+150
now we simply apply these values to our movieclip:
textMC._x = x
textMC._y = y
and ending the function…
and then all u have to do is call the function wenever you want it moved! (ie. at a certain frame of a tween, like wen it has faded to complete transparency…)
hope i didnt miss anything out… and also hope u could understand it!!