But Al, there is no need to do this extra work.  As Tab pointed out, 
the beauty of "halt" is that it does this check for you.  At 
author-time, halt will just stop the movie and keep you in Director. 
At execution-time, it will quit the executable.  I've been using it 
for years this way.

Irv

At 9:57 AM -0400 6/13/01, Al Hospers wrote:
>  > 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
>

-- 

Lingo / Director / Shockwave development for all occasions. 
          
   (Home-made Lingo cooked up fresh every day just for you.)

[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