I have some older AS2-style Haxe code which uses flash.Lib.Current.CreateEmptyMovieClip()
to create a slideshow of disk-based images. It creates a new clip for holding each image and simply fades each image in and out with alpha levels.
Compiling it with -swf -swf-version 8
creates an SWF file fine and this works in the browser.
However, I'm in the process to converting this over to -swf9
and I find that the MovieClip
no longer has that method.
How do you load up a series of images with Haxe (AS3-style)?
The code, for what it's worth, is along these lines:
static function main() {
mc = flash.Lib.current;
var clip : MovieClip;
clip = mc.createEmptyMovieClip ("clip_000", mc.getNextHighestDepth());
clip.loadMovie ("demo_img000.jpg");
: : :