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-bounces lists.fcgnetworks.net
[mailto:lingo-l-bounces lists.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 jeremy uthd.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.sweeney comcast.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-l penworks.com (Problems, email owner-lingo penworks.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-l penworks.com (Problems, email owner-lingo penworks.com). Lingo-L is for learning and helping
with programming Lingo. Thanks!]
|