# Scripting menu from flash 5 to mx or above

**URL:** https://forum.kirupa.com/t/scripting-menu-from-flash-5-to-mx-or-above/48176
**Category:** Uncategorized
**Created:** [April 10, 2004, 9:27pm UTC](https://forum.kirupa.com/t/scripting-menu-from-flash-5-to-mx-or-above/48176 "2004-04-10T21:27:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mayan](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mayan](https://forum.kirupa.com/u/mayan)
#### Post date: [April 10, 2004, 9:27pm UTC](https://forum.kirupa.com/t/scripting-menu-from-flash-5-to-mx-or-above/48176/1 "2004-04-10T21:27:44Z")

</div>

Heya i managed to get a tutorial to make this menu in flash 5, however its 2004 now! hrm well im lookin to recode it somewhat into a newer version.

iterations=7;  
\_root.object0.number=0;  
\_root.object0.iterations=iterations;  
for (i=1; i\<(iterations+1); i++) {  
duplicateMovieClip (“object0”, “object”+i, i);  
\_root[“object”+i].number=i;  
\_root[“object”+i].iterations=iterations;  
\_root[“object”+i].gotoAndStop(i+1);  
}  
Movieclip.prototype.tan\_load=function(){  
boolean=0;  
mycol=new Color(this);  
x=(2_Math.PI)_(number/iterations);  
};  
Movieclip.prototype.tan\_update=function(){  
x -= (\_parent.tracer.\_x-400)/7000;  
t = Math.tan(x);  
\_x = (t_140)+400;  
\_xscale = Math.abs(t_20)+100;  
white=Math.abs(t_40);  
if(this.hitTest(\_root.\_xmouse,\_root.\_ymouse,true)){invert();} else {  
mycol.setTransform({ra:100,ga:100,ba:100,rb:white,gb:white,bb:white})  
\_visible=1;  
boolean=0;}  
};  
Movieclip.prototype.invert=function(){  
boolean=!boolean;  
\_visible=!\_visible  
ca=(boolean_200)-100;  
cb=255-(boolean\*255);  
mycol.setTransform({ra:ca,ga:ca,ba:ca,rb:cb,gb:cb,bb:cb});  
};  
Movieclip.prototype.tracer=function(delay){  
\_x+=(\_root.\_xmouse-\_x)/delay;  
\_y+=(\_root.\_ymouse-\_y)/delay;  
};

it should also be at [http://pastebin.coconut.se/?id=2118](http://pastebin.coconut.se/?id=2118)

Thanks. the .fla is included… take a look at it and see if you can help 🙂
