Visual Effect: Curl

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ctflatt
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 243
Joined: Sun Dec 06, 2009 12:24 am
Location: Fredericktown, MO
Contact:

Visual Effect: Curl

Post by ctflatt » Fri Nov 12, 2010 7:47 pm

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?

RickD
Posts: 31
Joined: Thu Feb 11, 2010 5:47 pm

Re: Visual Effect: Curl

Post by RickD » Mon Nov 15, 2010 3:41 am

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?

ctflatt
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 243
Joined: Sun Dec 06, 2009 12:24 am
Location: Fredericktown, MO
Contact:

Re: Visual Effect: Curl

Post by ctflatt » Mon Nov 15, 2010 10:29 pm

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.

RickD
Posts: 31
Joined: Thu Feb 11, 2010 5:47 pm

Re: Visual Effect: Curl

Post by RickD » Tue Nov 16, 2010 12:45 am

That is exactly what I was looking for. I looked at all the docs but could not find it.

Thanks a million ctflatt!

Ron Zellner
Posts: 106
Joined: Wed May 31, 2006 9:56 pm
Location: College Station, Texas
Contact:

Re: Visual Effect: Curl

Post by Ron Zellner » Tue Nov 30, 2010 11:45 pm

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?

RickD
Posts: 31
Joined: Thu Feb 11, 2010 5:47 pm

Re: Visual Effect: Curl

Post by RickD » Wed Dec 01, 2010 12:51 am

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.

Ron Zellner
Posts: 106
Joined: Wed May 31, 2006 9:56 pm
Location: College Station, Texas
Contact:

Re: Visual Effect: Curl

Post by Ron Zellner » Wed Dec 01, 2010 3:35 am

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

ctflatt
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 243
Joined: Sun Dec 06, 2009 12:24 am
Location: Fredericktown, MO
Contact:

Re: Visual Effect: Curl

Post by ctflatt » Wed Dec 01, 2010 11:12 pm

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.

Post Reply

Return to “iOS Deployment”