Page 1 of 1

simulator problem with livecode 5.0

Posted: Tue Nov 22, 2011 9:56 am
by fre
hallo,

i use livecode 5.0 with xcode 4.2 and iOS 5 on snow leopard.
my simulator is version 5.

i made an app that uses visual effects when navigating to anohter card:

Code: Select all

on mouseup
  lock screen
  go card "mycard"
  unlock screen with visual effect push left very fast
end mouseup
when i test the app and i push the button to navigate to anohter card the app is gone away, i have to start it again. this problem is new, everything worked fine on livecode 4.5 and xcode 3.2.5.

the problem is this line:

Code: Select all

unlock screen with visual effect push left very fast
when i comment it out everything works fine.

what can i do ?

thank you for your help!

fred.

Re: simulator problem with livecode 5.0

Posted: Tue Nov 22, 2011 10:05 am
by fre
i have found that this solves the problem:

Code: Select all

on mouseup
  visual effect push left very fast
  go card "mycard"
end mouseup
hope it works also on a real device.

fred.

Re: simulator problem with livecode 5.0

Posted: Tue Nov 22, 2011 10:34 am
by bn
Hi Fred,

have a look at "lock screen" in the dictionary. As of 5.0 the syntax is expanded.
lock screen for visual effect
from the dictionary:

Code: Select all

lock screen for visual effect
   show control 1
unlock screen with visual effect "dissolve"
this works in the IDE:

Code: Select all

on mouseUp
   lock screen for visual effect
   go next card
   unlock screen with visual effect "dissolve" very fast
end mouseUp

Kind regards

Bernd