The window resizing is simple- the issue is that you have to take into account every sprite on the stage. SO... make sure that every member has their regpoint in the center of the screen. For instance, author at fullscreen (in my case 1600,1200)- during authoring, my movie is set to 1600,1200, ALL sprites loc=800,600- I just adjust their regpoint to get them where I want them (or import using Photocaster, which does the same thing)
OK, here's the pc version (should be x-plat, but NOT tested) (also, most of this is email lingo)
global gScreenWidth,gScreenHeight,gScreenCenterPT on startmovie deskRect = the desktopRectList[1] gScreenWidth=deskRect.right gScreenHeight=deskRect.bottom gScreenCenterPT=point(gscreenwidth/2,gscreenheight/2) end
on goFullScreen (the stage).rect = the desktopRectList[1] sendAllSprites(#reCenter) end
on gosmall w,h --should test to make sure not already small deskRect=the desktopRectList[1] aleft=(deskRect.right-w)/2 atop=(deskRect.bottom-h)/2 (the stage).rect=rect(aleft,atop,aleft+w,atop+h) sendAllSprites(#reCenter) end --------------------------------------- Then, on each sprite, this behavior
global gScreenCenterPT property spr,spritenum
on beginSprite me spr=sprite(spritenum) reCenter(me) end
on reCenter me spr.loc=gScreenCenterPT end
------------------------------------------------------
OK, I didn't change ALL of my sprites' regpoints- for some of them (digital video) I used the following behavior
property spr,spritenum,pofflocx,pofflocy global gScreenCenterPT
on getPropertyDescriptionList me
plist= [#pofflocx:[#comment:"Point X from center",#format:#integer,#default:0],#pofflocy:[#comment:"Point Y from center",#format:#integer,#default:0]]
return plist
end
on beginSprite me spr=sprite(spritenum) reCenter(me) end
on reCenter me spr.loc=gScreenCenterPT+point(pofflocx,pofflocy) end
Thank you,
Stephen Ingrum <mailto:[EMAIL PROTECTED]>
Michael von Aichberger wrote the following on 9/12/2004 9:39 AM:
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]mac or pc? When the window is in "window" mode, do you want to see the
normal title bar with min,max,close buttons?
Hi Stephen!
Thanks for your answer. I am developping on a PC, but I would need that functionality for a cross-platform CD, so if there were a MAC solution, I'd take that too!
But I'd be glad to have your win-only solution.
Window without title bar would do it, yes!
Thanks in advance
Michael Lingo. Thanks!]
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
