List Info

Thread: Scaling down the stage




<lingo-l> Scaling down the stage
user name
2006-10-17 14:59:03
Try this:

on startMovie
  
  pProportion = float(1200.00/768.00) -- this has to be a
float
  
  pDesktopRect = the desktopRectList[1]
  pCenter =
point(pDesktopRect.width/2,pDesktopRect.height/2)
  
  pWidth = pDesktopRect.width
  pHeight = float(pDesktopRect.height/pProportion)
  
  newRect = rect(0,0,pWidth,pHeight)
  (the stage).drawrect = newRect 
  
  -- offset the rect to fit in the center of the screen 
  newRect =
rect(pCenter[1]-newRect.width/2,pCenter[2]-newRect.height/2,
pCenter[1]+newRe
ct.width/2,pCenter[2]+newRect.height/2)
  
  (the stage).rect = newRect 
  
End

Hope this will help...it's quick and dirty but should do the
job

Pedja



-----Original Message-----
From: lingo-l-bounceslists.fcgnetworks.net
[mailto:lingo-l-bounceslists.fcgnetworks.net] On Behalf Of John
R. Sweeney
Jr
Sent: 17 October 2006 15:06
To: Lingo programming discussion list
Subject: Re: <lingo-l> Scaling down the stage


on 10/16/06 5:02 PM, Jeremy Aker at jeremyuthd.com
wrote:

> John,
> 
> Take a look at drawRect (_movie.Stage.drawRect)
> 
> Also mentioned in TechNote 12609
> (http://www.adobe.com/cfusion/knowledgebase/index
.cfm?id=tn_12609)

Sorry I didn't include that, but I've tried the suggestion
in the help file

(the stage).drawRect = the desktopRecList[]
(the stage).rect = the desktopRecList[]

In every combination, but the image ends up fitting top to
bottom but
everytime the right side get cropped off. :(

Thanks,
John


===================================================
John R. Sweeney Jr.        (jr.sweeneycomcast.net)
Interactive Multimedia Developer/
Digital Media Specialist

OnDemand - Interactive, Inc.
847.651.4469 (cell)      847.310.5959 (office/fax)
=================================================== 

[To remove yourself from this list, or to change to digest
mode, go to
http://www.penwor
ks.com/lingo-l.cgi  To post messages to the list, email
lingo-lpenworks.com  (Problems, email owner-lingopenworks.com). Lingo-L is
for learning and helping with programming Lingo.  Thanks!]




[To remove yourself from this list, or to change to digest
mode, go to http://www.penwor
ks.com/lingo-l.cgi  To post messages to the list, email
lingo-lpenworks.com  (Problems, email owner-lingopenworks.com). Lingo-L is for learning and helping
with programming Lingo.  Thanks!]
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )