From the category archives:

Loader

The following example shows how you can dynamically load an image at runtime using the ActionScript 3.0 Loader class and then copy the image’s pixels into four separate Bitmap object instances on the display list by using the Loader instance’s content property and bitmapData properties.
Full code after the jump.

{ 1 comment }

The following examples show how you can dynamically load an image, calculate its width and height, and center the image on the Stage in ActionScript 2.0 and ActionScript 3.0 using the MovieClipLoader class (ActionScript 2.0) and the Loader class (ActionScript 3.0).
Full code after the jump.

{ 7 comments }

The following examples show how you can dynamically load an image in ActionScript 2.0 and ActionScript 3.0 using the MovieClip class and Loader class.
Full code after the jump.

{ 12 comments }