gotoAndPlay causes problems with mouse

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Joaquin
    New Member
    • Oct 2007
    • 2

    gotoAndPlay causes problems with mouse

    Hi,

    I'm a newbie on this, I've been hours with this and I can't find where is my problem.

    The 1st scene in my movie has this script on the last frame:

    Code:
    gotoAndPlay("Scene2",1);
    The 2nd scene has several Movie Clips that are programmed to listen the PRESS action of the mouse:

    Code:
    on(press)
    {
    code...
    }
    But when I play the movie, the mouse action is no longer listened by Flash. It appears the "hand" pointer, but when I click on the objects it has no effect.

    If I set this 2nd scene as the first one to be played, the scripts works OK. So, I don't understand why after a gotoAndPlay the scripts stop working.

    Thanks in advance everyone.
  • Joaquin
    New Member
    • Oct 2007
    • 2

    #2
    I forgot to say:

    The "code" inside the 2nd Scene Movie Clips scripts is another gotoAndPlay, which makes the timeline's Movie Clips jump to another of their own frames.

    I'll put it clear: it's a door open animation. 1st frame contains door closed and frames from 10 to 100 the animation of the door when opens.

    So, the "code" inside the 2nd Scene Movie Clips scripts is the gotoAndPlay to the frame number 10.

    If you want I can upload the full Flash application.

    Thanks!!

    Comment

    Working...