O'Reilly logo

How to Cheat in Adobe Flash CS4 by Chris Georgenes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required