visual effects and iOS SImulator
Thomas McGrath III
mcgrath3 at mac.com
Mon Nov 18 10:29:45 EST 2013
Klaus, on iOS the lock screen did change and will crash or create other problems when used the ‘old’ way. It is more like before hand we lock and set for the effects size and then after we set for unlock and the actual effect itself. Doing it that way avoids all problems on iOS.
Now, for simulating the push effects of iOS (where the NAV bars do not push but the content does) I use a background group/image (which I set to the size of the card minus the Nav bar and set below the Nav bar in my resize scripts), and I then set a flag in the card if the effect is to be applied just to the rect of the background group or to the whole card depending on which type I want.
if exists(group "Background") then
if the cUseVisualEffect of this card then
lock screen for visual effect in rect (the rect of group "Background")
else
lock screen for visual effect in rect (the rect of this card)
end if
else
lock screen for visual effect in rect (the rect of this card)
end if
go next card
unlock screen with visual effect "push left”
Tom
-- Tom McGrath III
http://lazyriver.on-rev.com
mcgrath3 at mac.com
On Nov 18, 2013, at 9:10 AM, Klaus major-k <klaus at major-k.de> wrote:
> Hi friends,
>
> just spent half an hour to get this to work:
> ####################################
> on mouseup
> put the selectedtext of me into tCard
>
> if there is a cd tCard then
> set the effectrate to 500
> visual effect push left very slow
> go to card tCard
> end if
> end mouseup
> ###################################
> No WAY! The app always crashes in the Simulator! :-/
>
> Then I tried this, although the dictionary tells me that the above should definitively work!?
> ########################################
> on mouseup
> put the selectedtext of me into tCard
> if there is a cd tCard then
> set the effectrate to 500
> lock screen for visual effect
> go to card tCard
> unlock screen with visual effect push left very slow
> end if
> end mouseup
> ########################################
> Et voila, no crash in the Simulator and a nice visual effect!
> Hmmm...
>
>
> Best
>
> Klaus
>
> --
> Klaus Major
> http://www.major-k.de
> klaus at major-k.de
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list