Flash movememt
Flash movememt
Out of context: Reply #10
- Started
- Last post
- 11 Responses
- unfittoprint0
Note: { and } relate to less than and bigger than. replace them.
images = 6;
i=0;changey=function(targety){
myMC._y += ((targety - myMc._y)/4)*0.8;
}slide = function(targety){
clearinterval(slideLoop)
slideLoop
= setinterval(this,"changey", 30, targety)
}//button actions
up.onPress=function(){
(i{6)? ++i : false
(i{6)?slide(i*120) : false;
}down.onPress=function(){
(i}1)? --i : false
(i}1)?slide(i*120):false;
}