Go to card [with effects] is slow on Android

J. Landman Gay jacque at hyperactivesw.com
Sun Jan 26 02:06:06 EST 2014


On 1/25/14, 10:38 PM, Roger Eller wrote:
>   I know that "do" is a bad idea sometimes, but in this case, my swipe code
> is in the background image, and that's where the swipe direction is
> determined, then it clicks at the loc of myButton (to show the button is
> being pressed).
>
> The only problem is that it hesitates for about a second before playing the
> transition effect.  What would be a more optimal way?  I like the effects,
> but the lag is killing the experience!
>
> *global* gDirection
>
> *on* mouseUp
>
>     *if* gDirection is not empty *then*
>
>        *put* "visual effect push" && gDirection && "very fast"
> intotShowEffectCommand
>
>        *do* tShowEffectCommand
>
>     *end* *if*
>
>     *go* card "card_three"
>
>     *put* empty into gDirection
>
> *end* mouseUp

You can avoid "do" this way:

   lock screen for visual effect
   go next
   unlock screen with visual effect "push" && gDirection && "very fast"

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list