MACROMEDIA FLASH MX 2004-USING FLASH Use Manual page 422

Hide thumbs Also See for FLASH MX 2004-USING FLASH:
Table of Contents

Advertisement

Building a photo scrapbook
This sample shows how to build an interactive photo scrapbook easily using behaviors instead of
scripting. Behaviors provide an easy way to add interactivity to Flash content without having to
write ActionScript. In this example, multiple behaviors are combined to create an interactive
scrapbook. You can explore the source to learn more or to customize it to add your own pictures.
Customizing the Flash Player context menu
In this sample, you can see how to add custom options to the Flash Player context menu using
ActionScript 2.0. This sample uses ActionScript to modify the context menu by adding cut, copy,
and paste functionality that can be applied to the drawing objects on the Stage. The source
includes the document file (FLA) and the ActionScript file (AS) that defines the ClipBoard class.
You can explore both files to learn more about the context menu and writing classes with
ActionScript 2.0.
Using device font masking
This sample explores the new Flash Player support for masking device fonts. The main features
covered in the sample are device font masking, components, and scriptable masks. Newly added
support in Flash Player for masking device fonts expands the possibilities for using scriptable
masks on Flash content. Device font masking allows device fonts to be used inside components
that mask their content, as well as custom masks that you create. This sample shows examples of
both types of masking.
Developing multilingual content
This sample, featuring the Strings panel, shows a streamlined approach to developing and
managing content in several languages. The new Strings panel provides for easy and fast content
development in different languages. Localized content for text fields inside the document is kept
in language-specific XML files in directories alongside the document. This example has content
in several languages. The language that appears corresponds to the current language of the host
operating system. You can explore this document to see how the Strings panel manages localized
content.
Understanding text enhancements
This sample uses the many new text enhancements added to Flash MX 2004. The features
highlighted in this sample are text styles, inline images, hypertext link improvements, and small
text optimization. The text enhancements provide better and more precise control over text as it is
entered in the Flash Player. This example loads an external HTML file named sample.html into a
text field in the SWF file. However, you could use any text file that incorporates a tag-based
format such as XML or HTML. New support for cascading style sheets lets Flash style the text in
a given text field for each tag before displaying it. This example uses a style sheet named style.css.
Additionally, Flash Player supports the
wrap around.
422
Appendix A: Using Samples and Templates
tag, which allows inline images that your text can
img

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents