Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make projector movie 'stay on top'

Status
Not open for further replies.

aamaker

Programmer
Jan 20, 2002
222
US
I found this article/script that reads as if you can have a button act as a toggle for making the movie stay on the top.

I keep getting an error -- how do I implement this in my movie - Im struggling with learing advanced Lingo - so I appreciate the help!

Thanks....
************* Begin Script/article *************

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

****************** End Script/Article *****************
 
The first thing you need to check is if you have the buddyAPI xtra with you. Also a detailed error message would help.

Mayuresh
 
You probably do not have the BuddyAPI Xtra installed as part of the projector.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top