How to Make a Flash Movie Loading JPEG

How to Make a Flash Movie Loading JPEG thumbnail
Loading photos into Flash is simple with a snippet of Actionscript code.

Loading images into Flash allows you more options than using standard HTML. By using Flash's built-in timeline and scripting, you can turn your images into slideshows, galleries or even full-blown applications. To load JPEG images into Flash, you need a basic understanding of its tools and a snippet of Actionscript code.

Things You'll Need

  • Adobe Flash 8+
Show More

Instructions

    • 1

      Open Flash, then click "File" and "New" to create a new Flash project. Select "Actionscript 2.0." Choose the size and background color of your project and click "Ok."

    • 2

      Create an empty movie clip by choosing "New Symbol" from the "Insert" menu. Enter the name "myMovie" and click "Ok."

    • 3

      Insert the new clip into your Flash project by dragging it over to your canvas from the Library window. If your Library window is not visible, select "Window" then "Library." Once it is on your canvas, open the Properties window by clicking "Window" then "Properties," and type in "mymovie" into the "Instance" field.

    • 4

      Click on the first frame of your timeline, then open the Actionscript window by pressing "F9" or choosing "Actionscript" from the Window menu.

    • 5

      Copy and paste the code below into the Actionscript window. This code assumes that your photo is called "myphoto.jpg" and is saved in the same folder as your Flash project. You can also replace this file name with a full web address to an uploaded image such as "www.mywebsite.com/myphoto.jpg."

      loadMovie("photo.jpg", mymovie);

    • 6

      Test your movie by holding "CTRL" and pressing "Enter."

Tips & Warnings

  • Having an image loaded into Flash is just the first step to creating a full Flash project. Learn more by visiting the Support section of the Adobe website. You can find many beginner tutorials on the Flash Advisor website.

Related Searches:

References

Resources

  • Photo Credit photo camera image by A74.FR Ben Fontaine from Fotolia.com

Comments

You May Also Like

Related Ads

Featured