Help a brother out (Actionscript)
Help a brother out (Actionscript)
Out of context: Reply #1
- Started
- Last post
- 6 Responses
- unfittoprint0
//stretch function
changeSize= function(targetW,targetH){
bg._width=movieW;
movieW += (targetW-movieW)/4;
movieW=bg._width;
bg._height=movieH;
movieH += (targetW-movieH)/4;
movieH=bg._width;
}//stretch loop
stretch = function (targetW, targetH){
clearInterval(stretchLoop);
stretchLoop = setInterval( this,
"changeSize", 30, targetW, targetH);
}paste something like this intoyour image loader:
if(image.getBytesTotal() == image.getBytesLoaded() && image.getBytesTotal>0){
stretch (image._width+10, image._height+10);
}good luck...