Belittle?

*Originally posted by senocular *
**just thought Id throw another version of the pixel menu out which I made before kax posted (beating me to it ;))

What you can do is just takes kax’s file and throw this code in it (I also stole kax’s array - I just had the mc actions stringed out equaling each other :beam: )

Now this versions shorter but the onEnterFrame events are constant. Kax went to the trouble of deleting them when not needed and I commend that :slight_smile: - this is just another take on whats doing the same thing.**


inx = 40;
outx = 100;
ease = 3;
clips = [menu1, menu2, menu3, menu4, menu5, menu6];
selected = null;

clicked = function(){
	selected.targ = inx;
	(selected = this).targ = outx;
}
easeTo = function(){
	this._x += (this.targ-this._x)/ease;
}

for (i=0; i< clips.length; i++){
	clips[**i].onRelease = clicked;
	clips[**i].onEnterFrame = easeTo;
	clips[**i].targ = inx;
}

are you belittling me senocular ?? :-\

i like it =) …

you dont know how long I held off posting that lol
I had that ready when I saw you posted so I waited… then it was in best of and I figured it was ok since was ‘archived’ there to be forgotten

:holds head down in shame:

sorry :frowning:

he always do that! :stuck_out_tongue:

huh???

yeah ! shame on you !! :stuck_out_tongue: [size=1]just kidding[/size]

it’s ok … i like your code :slight_smile:

guigo:
i know … but i’m getting used to it

*Originally posted by senocular *
then it was in best of and I figured it was ok since was ‘archived’ there to be forgotten

Yes, it seems many people do not like to check the BOK, but I do. I always refer back to it when I need to. People just don’t understand how educational that section is!