This content has been marked as final.
Show 3 replies
-
1. Re: multiple resolution screens without scaling
SeanWilson Mar 23, 2010 12:50 PM (in response to spdorsey6969)You can have your stage fill the available screen by setting its rect, and you can centre your content in it by setting the drawRect:
on prepareMovie aw = _player.activeWindow aw.rect = _system.desktopRectList[1] tRect = mCenterRectInRect(aw.sourceRect, _system.desktopRectList[1]) aw.drawRect = tRect end on mCenterRectInRect r1, r2 mW = r2.width/2 mH = r2.height/2 sw = r1.width/2 sH = r1.height/2 return rect(mW - sw, mH - sH, mW + sw, mH + sH) end
-
2. Re: multiple resolution screens without scaling
spdorsey6969 Mar 30, 2010 9:15 AM (in response to SeanWilson)This is very helpful - I think I understand what it is trying to do. I tlooks similar to the way I would center a DIV on screen using CSS in an HTML doc. Measure the screen width, divide in half, subtract half of the stage's width, then place the item.
Would I place this script in the first frame of the effects channels in the Score? So that ot would be activated when the projector launches and enters the first frame?
Thanks
-
3. Re: multiple resolution screens without scaling
SeanWilson Mar 30, 2010 12:49 PM (in response to spdorsey6969)Would I place this script in the first frame of the effects channels in the Score? So that ot would be activated when the projector launches and enters the first frame?
No, it goes into a movie script (Ctrl + Shift + U) - the #prepareMovie message is the first one sent when a file opens.

