Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Director fullscreen 16:9 video

Director fullscreen 16:9 video

Director fullscreen 16:9 video

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
  end if

on beginSprite me
  if pFullScreenAtStart then
  end if

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
    (the stage).rect = pOriginalStageRect
    sprite(me.spritenum).rect = pOriginalSpriteRect
    --force the stage to redraw, necessary in MacOS Classic
    the stagecolor = the stagecolor
    pIsFullScreen = false
  end if

on endsprite me
  if pIsFullScreen then
  end if

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

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."  

RE: Director fullscreen 16:9 video

sprite(me.spritenum).rect = the desktoprectlist[1]

This line is setting the video to the shape of the monitor. You can modify it so that the rect stays 16:9.

Kenneth Kawamoto

RE: Director fullscreen 16:9 video

you also have to make sure that your video is in the correct pixel aspect ratio prior to importing it into Director.

ideally, you'd encode the video file to square pixels - which would mean that you'd need to change a 16:9 video to something like 1024 X 576. then when you import it into Director you can  check "keep aspect ratio" in the behaviours tab for fullscreen script.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close