Jiggly splash screens

Roger Eller roger.e.eller at sealedair.com
Sat Oct 26 13:34:51 EDT 2013


Setting the decorations to empty seems to help eliminate jiggle on the top
and left.  Setting the resizable false helps the corner drag icon to not
flicker.  And scaling faster (larger chunks, 8 instead of 2) makes jiggle
less noticeable.  I tried grouping everything and using a dynamic layer
mode, but I didn't see a difference.

on mouseUp
   set the vis of btn "DEMONSTRATE" to false
   put 400 into DIMZ
   set the decorations of this stack to empty
   set the resizable of this stack to false
   repeat until DIMZ=8
      lock screen
      put (DIMZ - 8) into DIMZ
      set the width of stack "SPLASHX" to DIMZ
      set the height of stack "SPLASHX" to DIMZ
      set the width of graphic "g1" to DIMZ
      set the height of graphic "g1" to DIMZ
      set the left of graphic "g1" to 0
      set the top of graphic "g1" to 0
      unlock screen
   end repeat
   repeat until DIMZ=400
      lock screen
      put (DIMZ + 8) into DIMZ
      set the width of stack "SPLASHX" to DIMZ
      set the height of stack "SPLASHX" to DIMZ
      set the width of graphic "g1" to DIMZ
      set the height of graphic "g1" to DIMZ
      set the left of graphic "g1" to 0
      set the top of graphic "g1" to 0
      unlock screen
   end repeat
   set the decorations of this stack to "title,menu,maximize,minimize,close"
   set the vis of btn "DEMONSTRATE" to true
   set the resizable of this stack to true
end mouseUp

~Roger



More information about the use-livecode mailing list