Loading Images (AS2)

images

1 AS2 differs significantly in how it loads images. In fact, there’s more than one way to do it. The approach that comes closest to the ease of AS3 involves the MovieClipLoader class. In this case, you’ll want an empty movie clip. Again we’ll call it holder, as before, to act as the container for your image which lets you position the JPG as desired. Loading the image isn’t especially complicated, but responding when the load is complete … that’s a little more convoluted. Here’s the easy part, first.

images

2 In this case, photo ...

Get How to Cheat in Adobe Flash CS4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.