Graham,

Not sure if you've ever found a solution for this problem, but I've got a 
couple other suggestions that may help.

First, if you're simply issuing a command like:

        visual effect "whatever"
        go cd "someCard"

then this should work just fine. I've found that if something like this is not 
working, it's usually because I have some kind of error that's occurring in the 
script (usually preOpenCard) of the card I'm trying to go to. Nothing to do in 
this case but debug and try to figure out what's going on. With that said, I 
have actually found, and I believe others have as well, that you get a very 
slight performance boost if you use the "lock screen for visual effect" command 
instead of the above method. So something like:

        lock screen for visual effect
        go cd "someCard"
        unlock screen with visual effect "whatever"

So you might give that a try and see what happens. As I said, it's not 
necessary to do it this way, and the first method should work just fine.

If I remember correctly, your original post also mentioned using a visual 
effect when moving to different stacks. If not, disregard the following. I've 
found a way that works well for me. There are probably others. I was also 
having issues with this at one point, and I found this worked just fine. 
Something like:

        visual effect "whatever"
        go cd "someCard" of stack "theToStack"
        close stack "theFromStack"

It seems to be necessary to specify a card, even if there's only one, when 
using the go command, otherwise the visual effect doesn't happen. And the same 
goes for the close stack command. It's supposedly not necessary to do that, as 
in iOS only one stack is open at a time, but, once again, I found that the 
effect did not work correctly if I didn't issue that command.

Hope some of this helps. Once again, if you find that visual effects are not 
happening like they should, but the code is correct and you *are* moving to the 
desired card, most likely it's a script error somewhere.

Chris


--
Chris Sheffield
Read Naturally, Inc.
www.readnaturally.com

On Feb 20, 2012, at 1:26 PM, Graham Samuel wrote:

> Thanks Paul, stupid of me. I seem always to be looking in the wrong place for 
> information.
> 
> Having finally reviewed that page (12) I notice that the description doesn't 
> apply to my case. I have not locked the screen, and am just doing a 
> card-to-card transition. As I said, my very simple example works (set up a 
> "flip left" visual effect, then go to a different card), but it doesn't work 
> in my app. I am quite prepared to believe it's my fault but I really can't 
> see what I'm doing wrong. Incidentally, locking and unlocking the screen as 
> described in the document doesn't help.
> 
> Thanks for the info, though.
> 
> Graham
> 
> OnMon, 20 Feb 2012 11:21:36 +0000, Paul Hibbert <l...@pbh.on-rev.com> wrote:
> 
>> Hi Graham,
>> 
>>> Thanks - I had not read these notes in detail and indeed it took some time 
>>> to find anything like them on the RunRev web site - they don't seem to have 
>>> stuck around on my Mac after installation. The only notes I could find are 
>>> called "LiveCodeNotes-5_0_0.pdf, revision 7", and there's nothing on Page 
>>> 12, so I still seem to have missed it - maybe you could tell me what it 
>>> says?
>> 
>> The notes John Dixon referred to should be under the Help menu in the 
>> LiveCode application, they are right below the 'User Guide' link.
>> 
>> If you want to access them through the finder, ctrl-click (right click) on 
>> the LiveCode application icon, choose 'Show Package Contents', then navigate 
>> to 'Contents > Tools', the release notes for LiveCode, iOS & Android are all 
>> in that folder.
>> 
>> HTH
>> 
>> Paul
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to