# Spining Images with Flash

**URL:** <https://forum.kirupa.com/t/spining-images-with-flash/215134>\
**Category:** flash\
**Created:** [February 4, 2007, 7:48pm UTC](https://forum.kirupa.com/t/spining-images-with-flash/215134 "2007-02-04T19:48:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chestnut](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@chestnut](https://forum.kirupa.com/u/chestnut)\
**Post date:** [February 4, 2007, 7:48pm UTC](https://forum.kirupa.com/t/spining-images-with-flash/215134/1 "2007-02-04T19:48:50Z")

</div>

Hello  
I just tried to make Spining images in 3 dimention refering some tutorial.  
If I publish, the movie start to rotate by rolling over the images to X dimention.

Is it possible to make my movie rotate slowly from the first frame?(I mean from beginning of the movie.)

Because right now the movie stop until I do mouse over in the beginning.

I just tried to attach the screenshot, swf file, and all of the scripting.  
See I tried to make movie clip “rotraption” (instance name is “r1”)  
And I made scripting the movie clip inside using 4 frame.  
I hope I can solve my problems by getting your help.

Thank you!

chestnut

[COLOR=Red]//1 frame scripting is :[/COLOR]

this.\_visible=false;  
var numrotos=4;  
for (n=0;n\<numrotos;n++) {  
newroto=“roto”+String(n);  
this.attachMovie(“roto”,newroto,n+1); [COLOR=Red]//I attach movieclip called “roto”[/COLOR]  
this[newroto].theta=n\*340/numrotos;  
this[newroto].panel=100;  
this[newroto].radius=200;  
this[newroto].rotographic.gotoAndStop(n+1); [COLOR=Red]//“rotographic” is instancename of “roto”.[/COLOR]  
}  
this.title.swapDepths(100);

[COLOR=Red]//2 frame scripting is :[/COLOR]

if ((\_root.\_ymouse\<20) || (\_root.\_ymouse\>250)) {  
speed=speed\*.95;  
} else {  
speed=-\_xmouse/130;

//3 frame scripting is :

gotoAndPlay(\_currentframe-1);  
[COLOR=Red]  
//4 frame scripting is :[/COLOR]

stop();

[COLOR=Red] //speed=-\_xmouse + 50;[/COLOR]  
}  
this.\_visible=true;

[COLOR=Red]  
// And the scripting in my attachMovie “rotographic”:  
[/COLOR]  
[COLOR=Red]// user transforms[/COLOR]  
if (pressv!=0) {  
this.panel+=pressv;  
pressv=pressv\*.875;  
if ((pressv\<.2) && (pressv\>-.2)) {  
pressv=0;  
}  
}  
[COLOR=Red]// 3d transforms

[/COLOR]theta+=\_parent.speed;  
xbit=Math.sin(Math.PI/180 \* theta);  
ybit=Math.cos(Math.PI/180 \* theta);  
this.\_xscale=ybit_this.panel;  
this.\_x=xbit_this.radius;  
this.\_alpha=30+(ybit+1)\*50;  
this.\_yscale=this.panel-3+(ybit+1)\*3;  
stack=Math.round((ybit+1)_radius_2);  
if (stack==100) {  
stack=101;  
}  
this.swapDepths(stack);
