this is my doubt.
if you load an external swf and after it is totaly loaded give it as to change sise proprties. the file jumps from his sise exactly to the pretended.
how doe one give code to do this in a progressive way:hr:
this is my doubt.
if you load an external swf and after it is totaly loaded give it as to change sise proprties. the file jumps from his sise exactly to the pretended.
how doe one give code to do this in a progressive way:hr:
you need to use an ‘onEnterFrame’ event to incriment the size of the clip each frame of the movie like this:
Speed = 5;
TargetScale = 200;
this.onEnterFrame = function() {
if(!Check) {
MC._xscale += Speed;
if(MC._xscale >= TargetScale) {
Check = true;
MC._xscale = TargetScale;
}
}
}
or to stretch it with easing:
TargetScale = 200;
this.onEnterFrame = function() {
MC._xscale += (TargetScale - MC._xscale) / 10;
}
hope this help (-: