This displays the following information in the Output panel:
emphasized
fontWeight: bold
color: #000000
Note: The line of code
not necessary, this step reduces memory usage, because Flash Player creates a copy of the style
object you pass to
See also
{} (object
initializer), "Formatting text with Cascading Style Sheets" in Using ActionScript in Flash
868
Chapter 2: ActionScript Language Reference
deletes the original style object passed to
delete styleObj
.
setStyle()
. While
setStyle()
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers