I have a script that creates dynamic text but I want it to continuously move from right to left (like you see on the news shows like CNN).
How would I do this?
My current code outputs text horizontally.
var Records = ActionSpeak.Recordset.Records;
var iSpaceBetweenTextFields :Number = 10;
for (i=0; i < Records.length; i++)
// The textfields width is now set to 10 to make sure that the autoSize-property set's the size according to the actual width of the text
var txtArea = this.createTextField("textbox" + i, i, 5, 100, 10, 20);
// The position is based on the previous textbox, so we need to have a variable to access it - txtPreviousArea.
var txtPreviousArea = this["textbox" + (i-1)];
// The autoSize-property is important to make sure the text-field resize according to the actual text
txtArea.autoSize = true;
txtArea.selectable = false;
txtArea.text = Records[i]["UserFirstname"];
// The x-position is based on the previous textfield and the spacebetween-variable
txtArea._x = txtPreviousArea._x + txtPreviousArea._width + iSpaceBetweenTextFields;