Setting boundaries for the scrolling text


show more Setting boundaries for the scrolling text 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 ...

Setting boundaries for the scrolling text

Now we'll talk about setting the boundaries for our text field when we're animating using our buttons. If you're following, along, I'm working in 09_Button_Boundaries.fla in the Chapter 04 folder in the Exercise Files folder. Let's select the first keyframe of the actions layer and open up the Actions panel by pressing Option+F9 on the Mac or F9 on the PC. In your code find the scroll text function. In my code it goes from line 72 to line 76. At the very bottom this function we'll create a conditional statement to see if the text field is moved out of bounds.

Type in text_mc.y > minScroll and then in the curly braces for that conditional statement, type text_mc.y = minScroll; So if the text field moves past or moves below the minScroll value, then we set the text field's y property to be equal to the minScroll value. Below this conditional statement, create another conditional statement, but this time instead of an if statement, make it an else if statement.

Then we&#...

Setting boundaries for the scrolling text
Video duration: 4m 25s 5h 21m Intermediate

Viewers:

Setting boundaries for the scrolling text 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 ...