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
Password Field
Inside Macromedia Flash 5.0
simFTPServer Xtra 1.0 Beta
Mouse Up Trigger-Alphamania
Dither Black and White Image - Imaging Lingo
RotateWithSound
Generic behavior to get Key State.
[S] mouse->sprite vector behaviour
Circular Rollover behavior
Custom Check and Radio Buttons
 

 

 

Behavior Toggle Stay On Top-Button

Added on 10/2/2000

 

Compatibilities:
behavior D7 D8 PC

Required Xtras:
Buddy API

This item has not yet been rated

Author: MediaMacros (website)

This is a simple behavior to make the Director stage stay on top of all other windows. This is different from the standard set window state approach as it will even work correctly with full-screen projectors. Use this if you are having problems with projectors in full screen mode ignoring the baSetWindowState command.

property onOff

on getPropertyDescriptionList me
  return [#onOff : [#format : #boolean, #comment : "Hold on top?", #default : true]]
end

on mouseUp me
  if onOff = true then
    hold = "StayOnTop"
  else
    hold = "DontStayOnTop"
  end if
  theWIndow = baGetWindow( baWinHandle() , "parent" )
  if theWindow = 0 then theWindow = baWinHandle()  
  baSetWindowState(theWindow, hold)
end

on getBehaviorDescription me
  describe = "This is a simple behavior to make the Director stage stay on top of all other windows.  This is different from the standard set window state approach as it will even work correctly with full-screen projectors.  Use this if you are having problems with projectors in full screen mode ignoring the baSetWindowState command."
  return describe
end

 


Contact

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

Send e-mail