Reading a Picture File from Disk

With reference to: "macromedia Flash 5 TRAINING FROM THE SOURCE" by Chrissy Rey.
Published by: macromedia press.

Flash can automatically insert a picture from disk into your movie.

Go to File/Publish Settings and place a tick next to Generator Template[.swt]

Go to Window/Generator Objects.

Select Insert JPEG File from the list of objects.

Locate the file to be inserted.

The Data Source window appears. You can have several Data Sources in each scene. ie several pictures.

In this example the file is called "windmill.jpg".

The path to the file appears next to File Name in the Generator window.

Run your movie ...

The picture is automatically inserted.

This technique can be combined with the technique for reading data from text files to develop dynamic content for on-line learning.