AS 2.0 Flash CS3:
Trying to resize external .swf movie clip, imported to a separate flash file with a movie clip container.
The following code works but the .swf is smaller than the container.
on (press) {
this.createEmptyMovieClip(“container_mc”, this.getNextHighestDepth());
container_mc.loadMovie (“abc.swf”, “_root.containerclip”);
container_mc._x = -320;
container_mc._y = -135;
}
Added foll. to resize. Keep getting ‘statement must appear within onhandler’.
this.onEnterFrame = function() {
total = container_mc.getBytesTotal();
loaded = container_mc.getBytesLoaded();
percent1 = Math.round(loaded/total*100);
if (loaded>total);
}
Any help appreciated.
Thanks in advance.