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
Odd levels cause audio to play incorrectly
Set actionsEnabled Property of a Flash Sprite
Xtras Mall From MediaMacros
Amplitude Xtra Review
Retrun Properties on a Sprite
Format Image
Color Fader-Alphamania
xMedia
Random Integer - Shuffle
Authoring Xtras
 

 

 

Behavior Disable/Enable-Disk Errors,Task Switching,Screen saver,Task Bar

Added on 6/8/2000

 

Compatibilities:
behavior D7 D8 PC

Required Xtras:
Buddy API

This item has not yet been rated

Author: KumarK

Disable/Enable ---- Disk Errors,Task Switching,Screen saver,Task Bar

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

-- custom properties --
property diskerrors,screensaver,taskswitching,Taskbar,whereto,

------ Get Behavior Description List ------
on getPropertyDescriptionList me
  set description = [:]
  addProp description, #diskerrors, [#format:#boolean, #comment: "Disable Disk Errors :",#default:True]
  addProp description, #screensaver, [#format:#boolean, #comment: "Disable ScreenSaver :",#default:True]
  addProp description, #taskswitching, [#format:#boolean, #comment: "Disable Task Switching :",#default:True]  
  addProp description, #Taskbar, [#format:#boolean, #comment: "Disable TaskBar :",#default:True]  
  if the currentspritenum = 0 then
    addProp description, #WhereTo, [#comment: "Where To Attach ?" ,#format:#String,
    #range:["On EnterFrame","On ExitFrame"],#default:"On EnterFrame"]
  else
    addProp description, #WhereTo, [#comment: "Where To Attach ?" ,#format:#String,
    #range:["On MouseUp","On MouseDown","On MouseEnter","On MouseLeave"],#default:"On MouseUp"]    
  end if    
  return description
end getPropertyDescriptionList
------ Get Behavior Description List ------

-- Get Behavior description --
on getBehaviorDescription
  return "This Behavior Disables/Enables" & RETURN &
  "* Disk Errors" & RETURN &
  "* Task Switching" & RETURN &
  "* ScreenSaver" & RETURN &
  "This Behavior requires Buddy API Xtra to work, so please ensure You Have Buddy API Xtra." & RETURN & RETURN &
  "Parameters" & RETURN &
  "* Sound Option and Level." & RETURN &
  "* Where to attach this Script"
end
-- Get Behavior description --

-- Events --
on EnterFrame me
  if WhereTo = "On EnterFrame" then
    Disablecontrols
  end if
end EnterFrame

on ExitFrame me
  if WhereTo = "On EnterFrame" then
    Disablecontrols
  end if
end ExitFrame

on MouseUp
  if WhereTo = "On MouseUp" then
    Disablecontrols
  end if
end MouseUp

on MouseDown
  if WhereTo = "On MouseDown" then
    Disablecontrols
  end if
end MouseDown

on MouseEnter
  if WhereTo = "On MouseEnter" then
    Disablecontrols
  end if
end MouseEnter

on MouseLeave
  if WhereTo = "On MouseLeave" then
    Disablecontrols
  end if
end MouseLeave
------ Events ------

-- Set Disbale Controls --
on Disablecontrols
  baDisableDiskErrors( diskerrors )
  set Result = baDisableScreenSaver( screensaver )  
  baDisableSwitching( taskswitching )
  set showing = baHideTaskBar( TaskBar )    
end
-- Set Disbale Controls --

 


Contact

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

Send e-mail