Marquee Text in ActionScript 2

1. Create a new flash file and save as marquee.fla.

2. Add two new text control on stage and set the name as txtContent and txtCnt respectively

3. Copy and Paste the below coding in first frame


var SampleText = ” Our prospects will find compelling reasons to become our customers. We did research and found that why most of the prospective customers want to purchase our products / services. “;
txtContent.text = SampleText;

function scroll() {
txtCnt.text = txtContent.hscroll;
txtContent.hscroll += 1;
if (txtContent.hscroll>=txtContent.maxhscroll) {
txtContent.hscroll = 0;
function startTicker() {


Back to top