> Actually, a better way out is to use 'halt'.
>
> In authoring mode (that is, in Director), quit will also exit
> Director,
> which makes it really annoying for testing.  By using 'halt'
> instead, the
> movie will just stop.

to cover both authoring & runtime modes I have found that this works well.
use this code as a behavior on your Exit button:

 on mouseUp me

  smartQuit

 end

then place this code as a movie script in your movie:

 on smartQuit

  if the runMode <> "Author" then
   QUIT
  else
   HALT
  end if

 end


the reason for the distinction is that QUIT will cause the Director
authoring environment to close, which is not what you want when testing.

hope this helps

Al Hospers
CamberSoft, Inc.
al<at>cambersoft<dot>com
http://www.cambersoft.com

A famous linguist once said:
"There is no language wherein a double
positive can form a negative."

YEAH, RIGHT



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]

Reply via email to