gotoAndPlay Problem

  • mr_ahmed
  • Born
  • Born
  • mr_ahmed
  • Posts: 1

Post 3+ Months Ago

hi i'm new here and also om new in actionscript

i'm trying to make a menu with submenu and i want when the mouse over the menu or the submenu make an effect it works when the mouse is over the menu but when the mouse go over the submenu nothing happen

Code: [ Select ]
stop();
// the menu effect
_root.mainMovie.navBack.onRollOver = over;
_root.mainMovie.navBack.onRollOut = out;

function over() {
    this.gotoAndPlay(2);
}

function out() {
    this.gotoAndStop(1);
}
// the sub menu audio effect
_root.mainMovie.navBack.audio.onRollOver = overaudio;
_root.mainMovie.navBack.audio.onRollOut = outaudio;

function overaudio() {
    this.gotoAndPlay(2);
}

function outaudio() {
    this.gotoAndPlay(7);
}

// the sub menu vedio effect
_root.mainMovie.navBack.ved.onRollOver = overved;
_root.mainMovie.navBack.ved.onRollOut = outved;

function overved() {
    this.gotoAndPlay(2);
}

function outved() {
    this.gotoAndPlay(7);
}
  1. stop();
  2. // the menu effect
  3. _root.mainMovie.navBack.onRollOver = over;
  4. _root.mainMovie.navBack.onRollOut = out;
  5. function over() {
  6.     this.gotoAndPlay(2);
  7. }
  8. function out() {
  9.     this.gotoAndStop(1);
  10. }
  11. // the sub menu audio effect
  12. _root.mainMovie.navBack.audio.onRollOver = overaudio;
  13. _root.mainMovie.navBack.audio.onRollOut = outaudio;
  14. function overaudio() {
  15.     this.gotoAndPlay(2);
  16. }
  17. function outaudio() {
  18.     this.gotoAndPlay(7);
  19. }
  20. // the sub menu vedio effect
  21. _root.mainMovie.navBack.ved.onRollOver = overved;
  22. _root.mainMovie.navBack.ved.onRollOut = outved;
  23. function overved() {
  24.     this.gotoAndPlay(2);
  25. }
  26. function outved() {
  27.     this.gotoAndPlay(7);
  28. }


thanks for your help
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Tony_Vallad
  • Newbie
  • Newbie
  • User avatar
  • Posts: 9

Post 3+ Months Ago

Are the gotoandplay meant to act on the main scene or on the menu?

- If the main scene:
Try the same thing without the "this." before the goto.

- If on the menu:
Try whith the "tell target" function.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 6 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.