Applying CSS with ActionScript


show more Applying CSS with ActionScript 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 ...

Applying CSS with ActionScript

Now I'll take a look at working with CSS and Flash. If you are not familiar with the term CSS, CSS stands for Cascading StyleSheets. You can use CSS in Flash to control the styling of text in a dynamic text field. Using CSS to style your text fields gives you a lot more power and control than what you get using the text format class. Lets take a look at how it works. If you're following along, I'm in 04_CSS.fla in the Chapter 03 folder in the Exercise Files folder.

This file has an actions layer and a text field layer. This file is the same file we've been working with throughout this chapter. Let's go to the first keyframe in the actions layer and open the Actions panel by pressing Option+F9 on the Mac, or F9 on the PC. And here's the code that loads our external.txt file. And what we're going to do is use the ActionScript version of CSS to style the link inside of our text document. Remember from the last movie we created an html link instead of the external te...

Applying CSS with ActionScript
Video duration: 6m 59s 5h 21m Intermediate

Viewers:

Applying CSS with ActionScript 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 ...