I have a movie clip (panel2_mc) that I want to move up and down on the press of a button (dropbtn). I have tried applying this code:
onClipEvent(load){
_x=98;
_y=289;
speed=3;
}
dropbtn.on (press) {targety=90;}
dropbtn.on (release) {targety=289;}
onClipEvent(enterFrame){
_y+=(targety-_y)/speed;
}
to the panel2_mc movie clip, and have also tried applying this:
panel2_mc.onClipEvent(load){
_x=98;
_y=289;
speed=3;
}
dropbtn.on (press) {targety=90;}
dropbtn.on (release) {targety=289;}
panel2_mc.onClipEvent(enterFrame){
_y+=(targety-_y)/speed;
}
to the entire frame. Please tell me where I am going wrong?