PDA

View Full Version : belittle ?



kode
February 18th, 2003, 10:52 AM
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 :) - 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 =) ..

senocular
February 18th, 2003, 10:54 AM
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 :(

Guig0
February 18th, 2003, 10:54 AM
he always do that! :P






huh???

kode
February 18th, 2003, 10:59 AM
yeah ! shame on you !! :P just kidding

it's ok .. i like your code :)


guigo:
i know .. but i'm getting used to it

lostinbeta
February 18th, 2003, 12:46 PM
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!