BlueThunder99
Technical User
Hi there,
I'm currently working on a Director project that includes 16:9 video, which initially comes up in a window in the stage, and when the user clicks on the video, it goes fullscreen. My problem is, when the video goes fullscreen, it takes the resolution of the monitor and squashes the video into 4:3 mode. Does anyone know how to fix this? Or if there is a script that can fix this?
I'm using MPEG Advance Xtra, and they have a fullscreen toggle script that I will post below. But I an unable to work out how to fix this for 16:9 vision. Any help would be much appreciated!
-- Mpeg Advance Xtra Full Screen behavior
-- You are free to use, modify and redistribute this code with your Director projects
property pFullScreenAtStart
property pFullScreenOnClick
property pIsFullScreen
property pOriginalStageRect
property pOriginalSpriteRect
on mouseUp me
if pFullScreenOnClick then
me.toggleFullScreen()
end if
end
on beginSprite me
if pFullScreenAtStart then
me.toggleFullScreen()
end if
end
on toggleFullScreen me
if not pIsFullScreen then
pOriginalStageRect = (the stage).rect
pOriginalSpriteRect = sprite(me.spritenum).rect.duplicate()
(the stage).rect = the desktoprectlist[1]
sprite(me.spritenum).rect = the desktoprectlist[1]
pIsFullScreen = true
else
(the stage).rect = pOriginalStageRect
sprite(me.spritenum).rect = pOriginalSpriteRect
updatestage
--force the stage to redraw, necessary in MacOS Classic
the stagecolor = the stagecolor
updatestage
pIsFullScreen = false
end if
end
on endsprite me
if pIsFullScreen then
me.toggleFullScreen()
end if
end
on getPropertyDescriptionList
set description = [:]
addprop description, #pFullScreenAtStart, [#default: false, #format:#boolean, #comment: "Enable full screen at beginsprite:"]
addprop description, #pFullScreenOnClick, [#default: true , #format:#boolean, #comment: "Toggle full screen on click:"]
return description
end
on getBehaviorDescription me
return "Drag to video sprite to enable it to resize the stage and play in full screen mode." & RETURN & "PARAMETERS:" & RETURN & "• Enable full screen at beginsprite - When enabled the movie will go in full screen mode as soon as the video sprite is initialized" & RETURN & "• Toggle full screen on click - Determines if full screen mode will be enabled and disabled when the user clicks on the video sprite."
end
I'm currently working on a Director project that includes 16:9 video, which initially comes up in a window in the stage, and when the user clicks on the video, it goes fullscreen. My problem is, when the video goes fullscreen, it takes the resolution of the monitor and squashes the video into 4:3 mode. Does anyone know how to fix this? Or if there is a script that can fix this?
I'm using MPEG Advance Xtra, and they have a fullscreen toggle script that I will post below. But I an unable to work out how to fix this for 16:9 vision. Any help would be much appreciated!
-- Mpeg Advance Xtra Full Screen behavior
-- You are free to use, modify and redistribute this code with your Director projects
property pFullScreenAtStart
property pFullScreenOnClick
property pIsFullScreen
property pOriginalStageRect
property pOriginalSpriteRect
on mouseUp me
if pFullScreenOnClick then
me.toggleFullScreen()
end if
end
on beginSprite me
if pFullScreenAtStart then
me.toggleFullScreen()
end if
end
on toggleFullScreen me
if not pIsFullScreen then
pOriginalStageRect = (the stage).rect
pOriginalSpriteRect = sprite(me.spritenum).rect.duplicate()
(the stage).rect = the desktoprectlist[1]
sprite(me.spritenum).rect = the desktoprectlist[1]
pIsFullScreen = true
else
(the stage).rect = pOriginalStageRect
sprite(me.spritenum).rect = pOriginalSpriteRect
updatestage
--force the stage to redraw, necessary in MacOS Classic
the stagecolor = the stagecolor
updatestage
pIsFullScreen = false
end if
end
on endsprite me
if pIsFullScreen then
me.toggleFullScreen()
end if
end
on getPropertyDescriptionList
set description = [:]
addprop description, #pFullScreenAtStart, [#default: false, #format:#boolean, #comment: "Enable full screen at beginsprite:"]
addprop description, #pFullScreenOnClick, [#default: true , #format:#boolean, #comment: "Toggle full screen on click:"]
return description
end
on getBehaviorDescription me
return "Drag to video sprite to enable it to resize the stage and play in full screen mode." & RETURN & "PARAMETERS:" & RETURN & "• Enable full screen at beginsprite - When enabled the movie will go in full screen mode as soon as the video sprite is initialized" & RETURN & "• Toggle full screen on click - Determines if full screen mode will be enabled and disabled when the user clicks on the video sprite."
end