×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

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

RESIZING DIRECTOR MOVIE ON OUTPUT - URGENT!!!!!!

RESIZING DIRECTOR MOVIE ON OUTPUT - URGENT!!!!!!

RESIZING DIRECTOR MOVIE ON OUTPUT - URGENT!!!!!!

(OP)
Hi Everyone

I have created a Director Movie at a size of 1200 x 900.
I did it this way because my screen is 1680 x 1050 and that size seemed to fit snug inside my monitor.

Stupid me didn't take into consideration that this file will be used on PC's which have a max screen resolution of 1024 x 768. So now that i have finished the job i need to create a projector file for PC which will constrain the exact proportions of my movie into that of the PC's.

I have tried so many different variations of projetor files and cannot find the one that i need to use. The projector files i create do not show the whole stage of my movie. It simply keeps its own pixel proportions so i cant see all of my movie.

I know how to reduce the stage size in the propertires panel but i want it to reduce my whole movie in one hit in the post production process, similarly to how you can resize a .swf file using HTML.

I need URGENT help with this.
Cheers

RE: RESIZING DIRECTOR MOVIE ON OUTPUT - URGENT!!!!!!

You can use lingo to resize the stage, and the drawrect of the stage, which are both subtley different things.

Here's a handler which I often use to maximise a projector, while preserving the ratio of the movie (if it's different to the screen res ratio):

Choose whether you want preserveProportions to be 1 or 0.

--------------------------------------
-- stage resize handler
-- robotduck.com 2006

on resizeToScreen

  preserveProportions = 1

  myW = the stage.rect.width
  myH = the stage.rect.height
  
  myRatio = float(myW)/myH

  screenRect = the desktoprectlist[1]
  sw = screenRect.width
  sh = screenRect.height
 
  screenRatio = float(sw)/sh
  
  (the stage).rect = rect(0,0,sw,sh)
  
  if preserveProportions then

    if myRatio<=screenRatio then
      -- stage is proportionally narrower than screen - maximise height
      drawH = h
      drawW = integer(myW * (h/float(myH)))
      
    else
      -- stage is proportionally narrower than screen - maximise width
      drawH = integer(myH * (w/float(myW)))
      drawW = W
    end if
    
    drawLeft = (w/2)-(drawW/2.0)
    drawRight = (w/2)+(drawW/2.0)
    drawTop = (h/2)-(drawH/2.0)
    drawBottom = (h/2)+(drawH/2.0)
    
    (the stage).drawrect = rect(drawLeft,drawTop,drawRight,drawBottom)
    
  else
    -- expand without preserving movie proportions (simple stretch-to-fill)
    (the stage).drawrect = rect(0,0,w,h)

  end if

end
-----------------------------------------------

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