At 1:11 PM +0200 4/8/02, you wrote: >I think you mean, >play butt >on mouseUp >go to frame (2) >end > >stop butt >on mouseUp >go the frame >end
The script for the 'stop butt' described above will only cause the playhead to loop once (when teh mouseUp occurs), & then the playhead will merrily continue forward. You'll need to use a flag ... I called mine 'running' & set the default = TRUE ------------------------------------------------- -- play button global running on beginSprite running = TRUE --> set the default = 'is running' end on mouseUp me if running = FALSE then running = TRUE end on exitFrame me if running = FALSE then go the frame else go the frame + 1 end ------------------------------------------------- -- stop button global running on mouseUp me if running = TRUE then running = FALSE end ------------------------------------------------- hth -Buzz > >>From: nitin sharma <[EMAIL PROTECTED]> >>Reply-To: [EMAIL PROTECTED] >>To: [EMAIL PROTECTED] >>Subject: <lingo-l> Re: PLAY & STOP BUTTON >>Date: Mon, 8 Apr 2002 03:36:26 -0700 (PDT) >> >>HI LIST >> >>CAN ANYBODY TELL ME HOW I CAN CONTROL PLAYBACK HEAD BY >>BUTTON >> >>IF I HAVE TWO BUTTON >> >>1). PLAY >>2). STOP >> >>IF I CLICK ON PLAY THEN PLAY BACK HAD SHOULD PLAY >>IT SHOULD ON PLAY BUTTON (DIRECTOR'S TOOL BAR BUTTON) >> >>IF I CLICK ON STOP THEN PLAY BACK HEAD SHOULD STOP >>IT SHOULD OFF THE PLAY BUTTON (DIRECTOR'S TOOL BAR >>BUTTON) >> >>THANKS IN ADVANCE >>WITH BEST WISHES >> >>NITIN >> >>__________________________________________________ >>Do You Yahoo!? >>Yahoo! Tax Center - online filing with TurboTax >>http://taxes.yahoo.com/ >>[To remove yourself from this list, or to change to digest mode, go >>to http://www.penworks.com/lingo-l.cgi To post messages to the >>list, email [EMAIL PROTECTED] (Problems, email >>[EMAIL PROTECTED]). Lingo-L is for learning and helping with >>programming Lingo. Thanks!] > > >_________________________________________________________________ >MSN Photos is the easiest way to share and print your photos: >http://photos.msn.com/support/worldwide.aspx > >[To remove yourself from this list, or to change to digest mode, go >to http://www.penworks.com/lingo-l.cgi To post messages to the >list, email [EMAIL PROTECTED] (Problems, email >[EMAIL PROTECTED]). Lingo-L is for learning and helping with >programming Lingo. Thanks!] [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
