Flash MX has an new capability that developers have been begging Macromedia for since they bought Flash; it can import an external JPEG file.

The way you do this is simple. Just use the a loadMovie command like you are planning to replace a movie clip with an external Flash movie. However, give the location of a JPEG file instead:

myMovieClip.loadMovie(”picture.jpg”);

The movie clip is now replaced by a movie clip that holds that bitmap image. Check out the movie 23loadjpeg.fla for an example.

Loading a Sound
There are also two ways to play a sound from an external file. They both use the sound object and the loadSound command. The sound file needs to be in the popular MP3 format.

Taken From: Sams Teach Yourself Flashâ„¢ MX ActionScript in 24 Hours

Leave a Reply