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