Saturday, July 16, 2011

How to load an external image using action script 3.0

This is tutorial will help you to how to load an external Image using action script 3.
1. First create a flash document and save Sample.fla.
2. Go to the first frame then type the following code

var img_load:Loader = new Loader();
img_load.load(new URLRequest("myPhoto.jpg"));
3.The "myPhoto" is a image stored where you are saving your flash file.
4.Press "Ctrl+Enter" See the result.

I think this will help you..