A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Go to X frame via actionscript

  1. #1
    Member
    Join Date
    Aug 2004
    Location
    slovenia
    Posts
    34

    Go to X frame via actionscript

    Here's what I'm trying to do. I have a a flash movie with dimensions 250 X 200. In first frame I've put a movie clip with this action script, which should take the movie to the second frame:

    var x_mouse = _root._xmouse;
    var y_mouse = _root._ymouse;

    if ( ( y_mouse >= 0 ) and ( y_mouse <= 200 ) ) {

    if ( ( x_mouse >= 100 ) and ( x_mouse <= 250 ) ) {
    _root.gotoAndStop ( 2 );
    }
    }

    But it doesn't. Can anyone tell me what am I doing wrong? THX

  2. #2
    Senior Member
    Join Date
    Jun 2002
    Location
    Southern Cal. USA
    Posts
    136
    This code needs to loop to continously check for your condition.

    Hope this helps,

    D.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center