Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 826157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:22:13+00:00 2026-05-15T03:22:13+00:00

My text animation scrolls from left to right, which is OK. I want to

  • 0

My text animation scrolls from left to right, which is OK. I want to keep it simple but change it up little. How do I get the text to go right to left? Thanks.

AS3 Example

mask = customMask;
var my_str:String = "     Ad hoc     ad loc     and     quid pro quo     ";
function addUm():void {
my_str = my_str.charAt(my_str.length - 1) + my_str.slice(0, my_str.length - 1);
trace(my_str);
txt.text = String(my_str);
}
var myInterval:uint = setInterval (addUm, 222);

AS2 Example

ms.setMask(r);
//MARQUEE TEXT STRING variable name 'my_str'
var my_str:String = "     Ad hoc     ad loc     and     quid pro quo     ";
setInterval(changeText,222);
function changeText () {
my_str = my_str.charAt(my_str.length - 1) + my_str.slice(0, my_str.length - 1);
trace(my_str);
_root.r.myStr = my_str;
}

Other Methods
Simple’s good. Examples I’ve seen take 50 lines of code, and it’s probably not necessary.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T03:22:13+00:00Added an answer on May 15, 2026 at 3:22 am

    You just need to change the line ,

    my_str = my_str.charAt(my_str.length - 1) + my_str.slice(0, my_str.length - 1);
    

    to

    my_str =  my_str.substring(1,my_str.length) + my_str.charAt(0);
    

    substring grabs the string consisting of the character specified by startIndex (1) and all characters up to endIndex – 1 (my_str.length).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

UPDATED I want to make running text line, which way is better to make
I want to have some kind of bounce effect in my animation plugin but
I can't get to achieve a smooth very slow text animation in a Canvas
I have this following jquery text fly-in animation.Here is my code before I explain
I'm trying to add an animation to my ListView so text will fade into
I'm working on a simple application with text animations and videos as background. It's
text = urllib.urlopen('www.text.com').read() frase = re.search(your text here(.*), text).group() With these code, I get
I trying to create an animation with JQuery that scrolls 1 word in a
I've tried a variety of snippets of code, but can't get them to do
Possible Duplicate: Smooth text animation (Marquee) using WPF I am just wondering if there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.