buttons and movie clips..Help!

  • sanel
  • Born
  • Born
  • sanel
  • Posts: 1

Post 3+ Months Ago

I´m newbie here, so any help would be appreciated. My problem is that I don´t know which action to use to get my buttons and movie clips to work.
I have five buttons and five movie clips, so when I click on a button it calls a specific movie clip, but when I click on the next button, next movie clip appears, but the previous movie clip stays on the scene..How can I make it disappear?

here is a buttons code
Code: [ Select ]
on (rollOver) {
this._alpha=100;

}

on (rollOut) {
this._alpha=100;

}

on (release) {
tellTarget ("_root.bart1") {
gotoAndPlay(2);
_x=200;
_y=220;
}
}



onClipEvent (mouseMove) {


dist=Math.sqrt(Math.pow(Math.abs(_xmouse),2)+Math.pow(Math.abs(_ymouse), 2));


if (dist<=_root.menutriggerdist) {
currscale=(1-(dist/(_root.menumultiplier*_root.menutriggerdist)))*(_root.menumaxscale-100);
this._xscale = currscale;
this._yscale = currscale;


} else {
this._xscale = 100;
this._yscale = 100;
}
}
  1. on (rollOver) {
  2. this._alpha=100;
  3. }
  4. on (rollOut) {
  5. this._alpha=100;
  6. }
  7. on (release) {
  8. tellTarget ("_root.bart1") {
  9. gotoAndPlay(2);
  10. _x=200;
  11. _y=220;
  12. }
  13. }
  14. onClipEvent (mouseMove) {
  15. dist=Math.sqrt(Math.pow(Math.abs(_xmouse),2)+Math.pow(Math.abs(_ymouse), 2));
  16. if (dist<=_root.menutriggerdist) {
  17. currscale=(1-(dist/(_root.menumultiplier*_root.menutriggerdist)))*(_root.menumaxscale-100);
  18. this._xscale = currscale;
  19. this._yscale = currscale;
  20. } else {
  21. this._xscale = 100;
  22. this._yscale = 100;
  23. }
  24. }


..and here is a movie clips code
Code: [ Select ]
onClipEvent (load) {
_xscale = 100;
_yscale = 100;
}
  1. onClipEvent (load) {
  2. _xscale = 100;
  3. _yscale = 100;
  4. }

In the first frame of the movie clips i´ve put stop(); action, and in the second frame play();
  • c0rpz
  • Newbie
  • Newbie
  • User avatar
  • Posts: 7
  • Loc: Perú

Post 3+ Months Ago

mmm... try to make an unload function that change MC´s _alpha set to 0

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 3 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.