Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
UpDown Timer
27 Sum Game-Numbers
Import from Access - Valentina
AnySaver
Asteroids game behaviour
Auto Save and Load Text
Button With Rollover Effect
Blend Mode Algorithms - Imaging Lingo
myDialog
PostScript Xtra
 

 

 

Behavior To activate previous instance and quit

Added on 6/12/2000

 

Compatibilities:
behavior D7 D8 PC

Required Xtras:
Buddy API

This item has not yet been rated

Author: KumarK

To activate previous instance and quit(this script should be used in moviescript of a projector)

---- written for Director 8 ---
---- Kumar.K kumark@icode.com ----

-- Get Behavior description --
on getBehaviorDescription
  return "This Behavior checks wheteher previous instance of the same application running. " & RETURN &
"If yes it activates the previous instance and exits to windows" & RETURN & RETURN &
  "This Behavior needs Buddy API Xtra to work, so please ensure You Have Buddy API Xtra." & RETURN & RETURN &
  "* Please use this script in movie script of the projector file"
end
-- Get Behavior description --

-- activate previous instance --
on activateprevious
  set wnd = baPrevious( false )
  if wnd <> 0 then    
    baWindowToFront( wnd )
    quit    
  end if
end activateprevious
-- activate previous instance --

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail