Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
attaboy

looking for example of scrolling text vertically[SOLVED]

Recommended Posts

I'm hoping to find an example vertically scrolling text where the text disappears once it scrolls past the top of the mask

Link to comment
Share on other sites

goto http://www.greensock.com/tweenmax/

 

scroll down to the plugin explorer

 

click on "example" next to scrollRect

 

enter the following values

 

l:0

r:288

t:216

b:216

 

press green tween button

 

use the following code (includes plugin activation for TweenLite)

 

import com.greensock.*; 
import com.greensock.easing.*;
import com.greensock.plugins.*;
TweenPlugin.activate([scrollRectPlugin]);

TweenLite.to(mc, 1, {scrollRect:{left:0, right:288, top:216, bottom:216}});

 

 

 

put the text inside a movieclip with instance name mc

adjust the ltrb values according to the size of your mc.

 

Carl

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×