Easing the text with the ScrollBar


show more Easing the text with the ScrollBar provides you with in-depth training on Web. Taught by Todd Perkins as part of the Flash CS3 Professional Beyond the Basics show less
please wait ...

Easing the text with the ScrollBar

No that our scrollbar is connected to the text field, we'll add some easing to the animation of the text field. If you're following along, I'm working in 06_Bar_Easing.fla in the chapter 04 folder in the Exercise Files folder. Let's select the first keyframe of the actions layer and open to the Actions panel by pressing Option+F9 on the Mac or F9 on the PC. Scroll up to the top of your code and below the target scroll variable, create another variable called easing. Data type will be a number, and we'll give it a value of 5.

This number will control how much the animation speeds up and slows down. We'll talk more about how this value works later on, but it's a value that you can modify a little bit, in order to have a little bit more control over your animation of your text field. Let's scroll down to the setScrollPercent function. We're going to modify our code just a little bit. Find the line of code where we set the y position of text_mc. The first thing we&#...

Easing the text with the ScrollBar
Video duration: 4m 11s 5h 21m Intermediate

Viewers:

Easing the text with the ScrollBar provides you with in-depth training on Web. Taught by Todd Perkins as part of the Flash CS3 Professional Beyond the Basics

Subject:
Web
Software:
Flash Professional
Author:
please wait ...