Visual Effect: Curl
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 243
- Joined: Sun Dec 06, 2009 12:24 am
- Location: Fredericktown, MO
- Contact:
Visual Effect: Curl
Thank you for including visual effects in the latest pre-alpha.
Can we ask for a page curl effect that is left to right, or right to left, in addition to the up/down options currently available?
Can we ask for a page curl effect that is left to right, or right to left, in addition to the up/down options currently available?
Re: Visual Effect: Curl
Following up on the previous post, how do you implement the visual effects?
I want to do dissolve from on card when a user presses the "settings" button?
I want to do dissolve from on card when a user presses the "settings" button?
-
- VIP Livecode Opensource Backer
- Posts: 243
- Joined: Sun Dec 06, 2009 12:24 am
- Location: Fredericktown, MO
- Contact:
Re: Visual Effect: Curl
Try this handler on your settings button:
on mouseUp
visual effect dissolve slow
go next card -- or the card you need to transition to
end mouseUp
Note: Some visual effects (like curl) are only viewable in the Simulator or on a device.
Hope this helps.
on mouseUp
visual effect dissolve slow
go next card -- or the card you need to transition to
end mouseUp
Note: Some visual effects (like curl) are only viewable in the Simulator or on a device.
Hope this helps.
Re: Visual Effect: Curl
That is exactly what I was looking for. I looked at all the docs but could not find it.
Thanks a million ctflatt!
Thanks a million ctflatt!
-
- Posts: 106
- Joined: Wed May 31, 2006 9:56 pm
- Location: College Station, Texas
- Contact:
Re: Visual Effect: Curl
Did I miss something here? I tried this and it produced a traditional dissolve transition.
I deployed my attempts as apps and ran them on my iPad and still no curl. I still don't see how to get a page curl transition.
I also tried:
visual effect "curl left"
It would not accept the code without the quotes
But that just produced a new card with no transition (no error was indicated)
Is there some place with a listing of the new code that is available with the iOS developer resources?
I deployed my attempts as apps and ran them on my iPad and still no curl. I still don't see how to get a page curl transition.
I also tried:
visual effect "curl left"
It would not accept the code without the quotes
But that just produced a new card with no transition (no error was indicated)
Is there some place with a listing of the new code that is available with the iOS developer resources?
Re: Visual Effect: Curl
Hi Ron:
Documentation is found in the ios_prerelease_handbook.pdf...included in your download.
Visual effect support
The iOS engine now has support for a range of visual effects – including some specific to iOS. The
following effects are available:
• scroll (up | left | down | right)
• reveal (up | left | down | right)
• push (up | left | down | right)
• dissolve
• curl (up | down)
• flip (left | right)
Speed can be controlled via the usual adjectives very slow, slow, normal, fast or very fast.
Note: Visual effects do not currently work correctly when in landscape orientation.
As you can see, there is no "Curl Left" implementation yet. Only curl up or curl down.
This is the code that I use and it works 100% of the time...
on mouseUp
visual effect flip right normal
go to card "SomeCard"
end mouseUp
Hope this helps.
Documentation is found in the ios_prerelease_handbook.pdf...included in your download.
Visual effect support
The iOS engine now has support for a range of visual effects – including some specific to iOS. The
following effects are available:
• scroll (up | left | down | right)
• reveal (up | left | down | right)
• push (up | left | down | right)
• dissolve
• curl (up | down)
• flip (left | right)
Speed can be controlled via the usual adjectives very slow, slow, normal, fast or very fast.
Note: Visual effects do not currently work correctly when in landscape orientation.
As you can see, there is no "Curl Left" implementation yet. Only curl up or curl down.
This is the code that I use and it works 100% of the time...
on mouseUp
visual effect flip right normal
go to card "SomeCard"
end mouseUp
Hope this helps.
-
- Posts: 106
- Joined: Wed May 31, 2006 9:56 pm
- Location: College Station, Texas
- Contact:
Re: Visual Effect: Curl
Thanks, I thought I did a search in the os_prerelease_handbook.pdf for "curl", but I guess I didn't. The list was there as you said. I knew I had seen it someplace.
Ron
Ron
-
- VIP Livecode Opensource Backer
- Posts: 243
- Joined: Sun Dec 06, 2009 12:24 am
- Location: Fredericktown, MO
- Contact:
Re: Visual Effect: Curl
Have you tried...
on mouseUp
visual effect curl up
go next card
end mouseUp
This works in the simulator only, not in the IDE.
It's working for me... even when deployed to the device.
Let me know.
on mouseUp
visual effect curl up
go next card
end mouseUp
This works in the simulator only, not in the IDE.
It's working for me... even when deployed to the device.
Let me know.