# Need help in transposing from Flash 5

**URL:** <https://forum.kirupa.com/t/need-help-in-transposing-from-flash-5/216129>\
**Category:** Uncategorized\
**Created:** [February 13, 2007, 11:36pm UTC](https://forum.kirupa.com/t/need-help-in-transposing-from-flash-5/216129 "2007-02-13T23:36:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![capdetrons](https://avatars.discourse-cdn.com/v4/letter/c/df705f/32.png) [@capdetrons](https://forum.kirupa.com/u/capdetrons)\
**Post date:** [February 13, 2007, 11:36pm UTC](https://forum.kirupa.com/t/need-help-in-transposing-from-flash-5/216129/1 "2007-02-13T23:36:38Z")

</div>

This is part of the code for a file I want to extract an effect from. Anybody have an idea of why this script does’nt work on flash 8 actionscript II? The \_level0.holder refers to a movie clip I would like to Tween with actionscript II instead of I and I can’t figure out why the code does’nt work. There are’nt any deprecated actions…

fscommand(“allowscale”, true);  
_quality = “Best”;  
pre0 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];  
pre6 = [-0.0314, 0, 100, 0.0017, 0, 0, 0, 0.0355, 0, 1, 0];  
function setUp(type) {  
var myStage = level0.holder;  
for (i=1; i\<51; i++) {  
myStage.attachMovie(“pic”, "p"+i, i);  
pic = myStage["p_"+i];  
pic.type = type;  
pic.\_x = (i_2.9)-(25_2.9);  
nangle += waveLength;  
angle = sangle+nangle;  
scale = dist_Math.sin(angle);  
pic.\_yscale = 100-scale;  
}  
}  
function render() {  
var nangle;  
var myStage = \_level0.holder;  
myStage.\_rotation = level0.rotate;  
for (i=1; i\<51; i++) {  
pic = myStage["p"+i];  
nangle += \_level0.waveLength;  
\_level0.sangle += \_level0.drift;  
var angle = \_level0.sangle+nangle;  
var scale = \_level0.dist_Math.sin(angle);  
pic.\_x = ((i_2.9)-(25_2.9))-(scale_optX);  
pic.\_y = scale_optY;  
pic.\_xscale = 100+(scale_optXS);  
pic.\_yscale = 100-(scale_optYS);  
pic.\_rotation = (scale\*optR);  
if (Math.round(\_level0.picDrift) == 0) {  
myFrame = i;  
} else {  
pic.frame -= Math.round(\_level0.picDrift);  
myframe = pic.frame;  
if (myframe\<1) {  
myframe = 50;  
} else if (myframe\>50) {  
myframe = 1;  
}  
pic.frame = myframe;  
}  
pic.gotoAndStop(myframe);  
}  
}  
function preset(choice) {  
\_level0.waveLength = choice[0];  
\_level0.mwaveLength.reset();  
\_level0.sangle = choice[1];  
\_level0.msangle.reset();  
\_level0.dist = choice[2];  
\_level0.mdist.reset();  
\_level0.drift = choice[3];  
\_level0.mdrift.reset();  
\_level0.picDrift = choice[4];  
\_level0.mpicDrift.reset();  
\_level0.rotate = choice[5];  
\_level0.mrotate.reset();  
\_level0.optX = choice[6];  
\_level0.moptX.reset();  
\_level0.optY = choice[7];  
\_level0.moptY.reset();  
\_level0.optXs = choice[8];  
\_level0.moptXs.reset();  
\_level0.optYs = choice[9];  
\_level0.moptYs.reset();  
\_level0.optR = choice[10];  
\_level0.moptR.reset();  
}  
function readPre() {  
var choice = new Array();  
choice.push(\_level0.waveLength);  
choice.push(\_level0.sangle);  
choice.push(\_level0.dist);  
choice.push(\_level0.drift);  
choice.push(\_level0.picDrift);  
choice.push(\_level0.rotate);  
choice.push(\_level0.optX);  
choice.push(\_level0.optY);  
choice.push(\_level0.optXs);  
choice.push(\_level0.optYs);  
choice.push(\_level0.optR);  
trace(choice);  
}  
preset(\_level0.pre6);  
setUp(“img2”);
