
222 Chapter 13 Dynamic Images
Flash Parameters For SWF images, any parameters specified in the Dynamic Image Specifica-
tions dialog box are passed to the SWF similar to how parameters are passed
from a web page. This allows you to customize a single SWF file in various
ways, without having to modify the SWF file itself.
For example, when creating a stock quote display SWF, you may not know
what company to display. Instead of hard-coding the company identifier into
the SWF file, pass it as a parameter by putting it into the “Parameters” field of
the dynamic media item, as shown on the left.
You can then access this “code” parameter, as well as any other parameters
you may want to pass, from the loaderInfo object in the SWF file like this:
loaderInfo.parameters.code
This parameter can be sent to a web service providing live stock quotes, such
as the one available from Yahoo.
Kommentare zu diesen Handbüchern