Page 1 of 1

Field Animation

Posted: Sun Dec 01, 2013 2:00 pm
by itay1023
Hi all,
I would like to make in my app a field that when i click on it, it moves the field to another location on the screen and opens the keyboard. I want the space around the field will be white (Transparent).
How can i do it?

Best reagrds,
Itay

Re: Field Animation

Posted: Sun Dec 01, 2013 3:51 pm
by Mark
Hi Itay,

The easiest way to do this is to have two cards. One card with the default lay-out of your app and another card with the field at the top. The field on the first card would have its locktext set to true and contain the following script:

Code: Select all

on mouseUp
  lock screen for visual effect
  go cd 2
  unlock screen with visual effect dissolve
end mouseUp
The second card would contain this script:

Code: Select all

on keyboardDeactivated
  go back
end keyboardDeactivated
on closeCard
  put fld 1 into fld 1 of cd 1
end closeCard
and you might want to add a button with

Code: Select all

on mouseUp
  go back
end mouseUp
All very simple.

Kind regards,

Mark