Visual effect problems in iOS

Graham Samuel livfoss at mac.com
Mon Feb 20 05:15:10 EST 2012


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?

In the document I did find, towards the end there's a list of "specific bug fixes" which includes, unless I drastically misread it:

> Go stack (to different stack) doesn't play visual effects on mobile
> Go stack in window doesn't play visual effects on mobile


Well it doesn't work for me so I accept that as a limitation, and as I said in my original post, I have re-organised my app to avoid this issue by simplifying the structure so that everything the user sees is in one stack and thus I only require card-to-card visual effects. But none of this explains why my plain vanilla card-to-card example works while my attempt to do what I meant to be the exact same plain vanilla thing in my app, doesn't work. I can't see how I have influenced the engine's ability to do visual effects.

Any clues?

TIA

Graham



On Sun, 19 Feb 2012 18:34:59 +0000, John Dixon <dixonja at hotmail.co.uk> wrote:

> Hi... have a look at p.12 in the LC 5.0.2 release notes about the changes to using visual effects...
> 
>> From: livfoss at mac.com
>> Subject: Visual effect problems in iOS
>> Date: Sun, 19 Feb 2012 18:15:50 +0100
>> To: use-livecode at lists.runrev.com
>> 
>> Folks, I have been trying to use 'visual effect' to make transitions between cards and between stacks on an iPad app and I am not getting anywhere.
>> 
>> Firstly I can't get the transition between stacks to do anything. The syntax shown in the dictionary seems a bit ambiguous (I just want to move to another stack in the same window) but I am not seeing any transitions. So I decided to confine my effects to a single stack, just switching between cards.
>> 
>> I built a tiny stack that just moves between cards using buttons that do this kind of thing:
>> 
>> on mouseUp
>>   visual effect "flip left"
>>   go cd "second"
>> end mouseUp
>> 
>> This works fine in the simulator: but when I put the same bit of code into my actual app, the 'go' works but not the visual effect. Here is the actual code, copied from the app
>> 
>> on mouseUp
>>   visual effect "flip left"
>>   go cd "Diagram"
>> end mouseUp 
>> 
>> The card exists and is in the current stack. What can I possibly have done to stop the effect working? Beats me.
>> 
>> FWIW, I'm using LC 5.0.2 on MacOS Lion 10.7.3 with version 4.2.1 of Xcode and version 5.0 of the simulator. The alwaysBuffer of the relevant stack is set to true.
>> 
>> Puzzled
>> 
>> Graham
> 




More information about the use-livecode mailing list